]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: airoha: Fix PPE cpu port configuration for GDM2 loopback path
authorLorenzo Bianconi <lorenzo@kernel.org>
Fri, 17 Apr 2026 15:24:41 +0000 (17:24 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 21 Apr 2026 12:46:22 +0000 (14:46 +0200)
commitd647f2545219754603b2064de948425cdfd93fba
treec00cf0e65c63e6ff0deb903c3b3b4bc140948ff1
parentedaa48dc2c071cf2ab0611ee504bbd4c544fc178
net: airoha: Fix PPE cpu port configuration for GDM2 loopback path

When QoS loopback is enabled for GDM3 or GDM4, incoming packets are
forwarded to GDM2. However, the PPE cpu port for GDM2 is not configured
in this path, causing traffic originating from GDM3/GDM4, which may
be set up as WAN ports backed by QDMA1, to be incorrectly directed
to QDMA0 instead.
Configure the PPE cpu port for GDM2 when QoS loopback is active on
GDM3 or GDM4 to ensure traffic is routed to the correct QDMA instance.

Fixes: 9cd451d414f6 ("net: airoha: Add loopback support for GDM2")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20260417-airoha-ppe-cpu-port-for-gdm2-loopback-v1-1-c7a9de0f6f57@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