]> git.baikalelectronics.ru Git - kernel.git/commit
nfp: support VxLAN inner TSO with GSO_PARTIAL offload
authorFei Qin <fei.qin@corigine.com>
Sat, 30 Apr 2022 23:11:50 +0000 (08:11 +0900)
committerPaolo Abeni <pabeni@redhat.com>
Mon, 2 May 2022 10:42:03 +0000 (12:42 +0200)
commitbc7f02519ea731e7cb6d6567df7e8fb6672ef79c
tree2e2f5fa93a84d063bb6f21eb9f7dbbe55db77b26
parent1543e7b9f8834c6bf3b959f89ca87b84a68b45bf
nfp: support VxLAN inner TSO with GSO_PARTIAL offload

VxLAN belongs to UDP-based encapsulation protocol. Inner TSO for VxLAN
packet with udpcsum requires offloading of outer header csum.

The device doesn't support outer header csum offload. However, inner TSO
for VxLAN with udpcsum can still work with GSO_PARTIAL offload, which
means outer udp csum computed by stack and inner tcp segmentation finished
by hardware. Thus, the patch enable features "NETIF_F_GSO_UDP_TUNNEL_CSUM"
and "NETIF_F_GSO_PARTIAL" and set gso_partial_features.

Signed-off-by: Fei Qin <fei.qin@corigine.com>
Signed-off-by: Yinjun Zhang <yinjun.zhang@corigine.com>
Signed-off-by: Louis Peens <louis.peens@corigine.com>
Signed-off-by: Simon Horman <simon.horman@corigine.com>
Link: https://lore.kernel.org/r/20220430231150.175270-1-simon.horman@corigine.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/netronome/nfp/nfp_net_common.c