vxlan: allow L4 GRO passthrough
authorPaolo Abeni <pabeni@redhat.com>
Tue, 30 Mar 2021 10:28:53 +0000 (12:28 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 31 Mar 2021 00:06:49 +0000 (17:06 -0700)
commitd18931a92a0b5feddd8a39d097b90ae2867db02f
tree14b3afa1199747e6b479aef19c290b34a226e7d4
parent78352f73dc5047f3f744764cc45912498c52f3c9
vxlan: allow L4 GRO passthrough

When passing up an UDP GSO packet with L4 aggregation, there is
no need to segment it at the vxlan level. We can propagate the
packet untouched and let it be segmented later, if needed.

Introduce an helper to allow let the UDP socket to accept any
L4 aggregation and use it in the vxlan driver.

v1 -> v2:
 - updated to use the newly introduced UDP socket 'accept*' fields

Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/vxlan.c
include/linux/udp.h