]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: airoha: Fix TSO support for header cloned skbs
authorLorenzo Bianconi <lorenzo@kernel.org>
Thu, 13 Feb 2025 15:34:20 +0000 (16:34 +0100)
committerJakub Kicinski <kuba@kernel.org>
Fri, 14 Feb 2025 21:35:38 +0000 (13:35 -0800)
commitc6287e1a858e336cc202b484c6138a0fe252c6b3
tree8eb95c3fde475b33fd5dcbb4b3ba873ca99bd85b
parent4671bb1a6b2bfa3ca71b7063748d9f7d65fd0f7d
net: airoha: Fix TSO support for header cloned skbs

For GSO packets, skb_cow_head() will reallocate the skb for TSO header
cloned skbs in airoha_dev_xmit(). For this reason, sinfo pointer can be
no more valid. Fix the issue relying on skb_shinfo() macro directly in
airoha_dev_xmit().

The problem exists since
commit 23020f049327 ("net: airoha: Introduce ethernet support for EN7581 SoC")
but it is not a user visible, since we can't currently enable TSO
for DSA user ports since we are missing to initialize net_device
vlan_features field.

Reviewed-by: Mateusz Polchlopek <mateusz.polchlopek@intel.com>
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20250213-airoha-en7581-flowtable-offload-v4-1-b69ca16d74db@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/mediatek/airoha_eth.c