linux/drivers/net/ethernet/sfc
Íñigo Huguet ddaf96f695 sfc: correctly advertise tunneled IPv6 segmentation
[ Upstream commit ffffd2454a ]

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: 24b2c3751a ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-02-09 11:28:05 +01:00
..
falcon
siena
bitfield.h
ef10_regs.h
ef10_sriov.c
ef10_sriov.h
ef10.c
ef100_ethtool.c
ef100_ethtool.h
ef100_netdev.c
ef100_netdev.h
ef100_nic.c
ef100_nic.h
ef100_regs.h
ef100_rep.c
ef100_rep.h
ef100_rx.c
ef100_rx.h
ef100_sriov.c
ef100_sriov.h
ef100_tx.c
ef100_tx.h
ef100.c
ef100.h
efx_channels.c
efx_channels.h
efx_common.c
efx_common.h
efx.c sfc: correctly advertise tunneled IPv6 segmentation 2023-02-09 11:28:05 +01:00
efx.h
enum.h
ethtool_common.c
ethtool_common.h
ethtool.c
farch_regs.h
filter.h
io.h
Kconfig
mae.c
mae.h
Makefile
mcdi_filters.c
mcdi_filters.h
mcdi_functions.c
mcdi_functions.h
mcdi_mon.c
mcdi_pcol_mae.h
mcdi_pcol.h
mcdi_port_common.c
mcdi_port_common.h
mcdi_port.c
mcdi_port.h
mcdi.c
mcdi.h
mtd.c
net_driver.h
nic_common.h
nic.c
nic.h
ptp.c
ptp.h
rx_common.c
rx_common.h
rx.c
selftest.c
selftest.h
sriov.c
sriov.h
tc_bindings.c
tc_bindings.h
tc.c
tc.h
tx_common.c
tx_common.h
tx_tso.c
tx.c
tx.h
vfdi.h
workarounds.h