]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: airoha: Fix IPv6 hw acceleration in bridge mode
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 2 Jun 2025 10:55:38 +0000 (12:55 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Jun 2025 10:55:29 +0000 (12:55 +0200)
commit504a577c9b000f9e0e99e1b28616fb4eb369e1ef
tree8892ea8338571c2343ec91ab893e425b67364932
parenta869d3a5eb011a9cf9bd864f31f5cf27362de8c7
net: airoha: Fix IPv6 hw acceleration in bridge mode

ib2 and airoha_foe_mac_info_common have not the same offsets in
airoha_foe_bridge and airoha_foe_ipv6 structures. Current codebase does
not accelerate IPv6 traffic in bridge mode since ib2 and l2 info are not
set properly copying airoha_foe_bridge struct into airoha_foe_ipv6 one
in airoha_ppe_foe_commit_subflow_entry routine.
Fix IPv6 hw acceleration in bridge mode resolving ib2 and
airoha_foe_mac_info_common overwrite in
airoha_ppe_foe_commit_subflow_entry() and configuring them with proper
values.

Fixes: cd53f622611f ("net: airoha: Add L2 hw acceleration support")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20250602-airoha-flowtable-ipv6-fix-v2-2-3287f8b55214@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_ppe.c