]> git.baikalelectronics.ru Git - kernel.git/commit
macvtap: Correctly set tap features when IFF_VNET_HDR is disabled.
authorVlad Yasevich <vyasevic@redhat.com>
Fri, 16 Aug 2013 19:25:01 +0000 (15:25 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2013 20:09:11 +0000 (13:09 -0700)
commit44adbf1a697400d78b6c521213046e96ebf88d50
tree58650cee572fa50f58d39afffd32abeb13ef6349
parentd615de292ed0c3a6e2f95320817841241fa2583d
macvtap: Correctly set tap features when IFF_VNET_HDR is disabled.

When the user turns off IFF_VNET_HDR flag, attempts to change
offload features via TUNSETOFFLOAD do not work.  This could cause
GSO packets to be delivered to the user when the user is
not prepared to handle them.

To solve, allow processing of TUNSETOFFLOAD when IFF_VNET_HDR is
disabled.

Signed-off-by: Vlad Yasevich <vyasevic@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvtap.c