sfc: correctly advertise tunneled IPv6 segmentation
authorÍñigo Huguet <ihuguet@redhat.com>
Wed, 25 Jan 2023 14:35:13 +0000 (15:35 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 28 Jan 2023 08:19:48 +0000 (00:19 -0800)
commitffffd2454a7a1bc9f7242b12c4cc0b05c12692b4
tree36ccd3a898b23b878f3b2f78e9e8580bc68c6ace
parent0548c5f26a0fefa721b29be2bfff1c44f15b6d73
sfc: correctly advertise tunneled IPv6 segmentation

Recent sfc NICs are TSO capable for some tunnel protocols. However, it
was not working properly because the feature was not advertised in
hw_enc_features, but in hw_features only.

Setting up a GENEVE tunnel and using iperf3 to send IPv4 and IPv6 traffic
to the tunnel show, with tcpdump, that the IPv4 packets still had ~64k
size but the IPv6 ones had only ~1500 bytes (they had been segmented by
software, not offloaded). With this patch segmentation is offloaded as
expected and the traffic is correctly received at the other end.

Fixes: 24b2c3751aa3 ("sfc: advertise encapsulated offloads on EF10")
Reported-by: Tianhao Zhao <tizhao@redhat.com>
Signed-off-by: Íñigo Huguet <ihuguet@redhat.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Link: https://lore.kernel.org/r/20230125143513.25841-1-ihuguet@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/sfc/efx.c