]> git.baikalelectronics.ru Git - kernel.git/commit
gso: limit udp gso to egress-only virtual devices
authorWillem de Bruijn <willemb@google.com>
Tue, 22 May 2018 15:34:40 +0000 (11:34 -0400)
committerDavid S. Miller <davem@davemloft.net>
Wed, 23 May 2018 18:48:44 +0000 (14:48 -0400)
commit14a69607d3ba432b7c3433144baf11755a74d357
tree2d8e6cc7152b058c03b71eec0673bc97d7f3a46e
parent18ca871eb8add943201eedf70478078ca7c23a5b
gso: limit udp gso to egress-only virtual devices

Until the udp receive stack supports large packets (UDP GRO), GSO
packets must not loop from the egress to the ingress path.

Revert the change that added NETIF_F_GSO_UDP_L4 to various virtual
devices through NETIF_F_GSO_ENCAP_ALL as this included devices that
may loop packets, such as veth and macvlan.

Instead add it to specific devices that forward to another device's
egress path, bonding and team.

Fixes: cbcd84ab1b5e ("udp: add gso support to virtual devices")
CC: Alexander Duyck <alexander.duyck@gmail.com>
Signed-off-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c
drivers/net/team/team.c
include/linux/netdev_features.h