Skip to contentSkip to conversation

drivers/net: macvtap and tun depend on INET

PATCH In review Ben Hutchings 2 participants 2 messages Oct 31, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers/net: macvtap and tun depend on INET

These drivers now call ipv6_proxy_select_ident(), which is defined only if CONFIG_INET is enabled. However, they have really depended on CONFIG_INET for as long as they have allowed sending GSO packets from userland.

Fixes f43798c27684 ("tun: Allow GSO using virtio_net_hdr")
Fixes b9fb9ee07e67 ("macvtap: add GSO/csum offload support")
Fixes 5188cd44c55d ("drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets")
---
 drivers/net/Kconfig | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/Kconfig +2 -0
index 4706386..f9009be 100644
@@ -135,6 +135,7 @@ config MACVLAN
 config MACVTAP
 	tristate "MAC-VLAN based tap driver"
 	depends on MACVLAN
+	depends on INET
 	help
 	  This adds a specialized tap character device driver that is based
 	  on the MAC-VLAN network interface, called macvtap. A macvtap device
@@ -200,6 +201,7 @@ config RIONET_RX_SIZE
 
 config TUN
 	tristate "Universal TUN/TAP device driver support"
+	depends on INET
 	select CRC32
 	---help---
 	  TUN/TAP provides packet reception and transmission for user space
Signature · 2 lines
Ben Hutchings
The world is coming to an end.	Please log off.
maintainer
#1 lore raw

From: Ben Hutchings <[email protected]>
Date: Fri, 31 Oct 2014 03:10:31 +0000

Quoted 10 lines

These drivers now call ipv6_proxy_select_ident(), which is defined only if CONFIG_INET is enabled. However, they have really depended on CONFIG_INET for as long as they have allowed sending GSO packets from userland.

Fixes f43798c27684 ("tun: Allow GSO using virtio_net_hdr")
Fixes b9fb9ee07e67 ("macvtap: add GSO/csum offload support")
Fixes 5188cd44c55d ("drivers/net, ipv6: Select IPv6 fragment idents for virtio UFO packets")

Applied and queued up for -stable, thanks Ben.