]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: airoha: Initialize PPE UPDMEM source-mac table
authorLorenzo Bianconi <lorenzo@kernel.org>
Mon, 2 Jun 2025 10:55:37 +0000 (12:55 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 3 Jun 2025 10:55:29 +0000 (12:55 +0200)
commita869d3a5eb011a9cf9bd864f31f5cf27362de8c7
tree881b401978f0a815dbbefb93c6ef318a13129227
parentd3f2a9587ebe68f5067f9ff624f9a83dfb911f60
net: airoha: Initialize PPE UPDMEM source-mac table

UPDMEM source-mac table is a key-value map used to store devices mac
addresses according to the port identifier. UPDMEM source mac table is
used during IPv6 traffic hw acceleration since PPE entries, for space
constraints, do not contain the full source mac address but just the
identifier in the UPDMEM source-mac table.
Configure UPDMEM source-mac table with device mac addresses and set
the source-mac ID field for PPE IPv6 entries in order to select the
proper device mac address as source mac for L3 IPv6 hw accelerated traffic.

Fixes: 00a7678310fe ("net: airoha: Introduce flowtable offload 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-1-3287f8b55214@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/airoha/airoha_eth.c
drivers/net/ethernet/airoha/airoha_eth.h
drivers/net/ethernet/airoha/airoha_ppe.c
drivers/net/ethernet/airoha/airoha_regs.h