]> git.baikalelectronics.ru Git - kernel.git/commit
macvlan: delay the header check for dodgy packets into lower device
authorJason Wang <jasowang@redhat.com>
Wed, 26 Nov 2014 09:21:14 +0000 (17:21 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 30 Nov 2014 04:44:27 +0000 (20:44 -0800)
commit5890448bf4643db5ce045a3107e5018c5e6b1f3e
tree144d7b5bdd72b0048cbc813422194486bfd15e5f
parent24cb674114420358bb49125cb860d10eb887019a
macvlan: delay the header check for dodgy packets into lower device

We do header check twice for a dodgy packet. One is done before
macvlan_start_xmit(), another is done before lower device's
ndo_start_xmit(). The first one seems redundant so this patch tries to
delay header check until a packet reaches its lower device (or macvtap)
through always enabling NETIF_F_GSO_ROBUST for macvlan device.

Cc: Patrick McHardy <kaber@trash.net>
Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c