Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

net: airoha: Do not loopback traffic to GDM2 if it is available on the device

Airoha_eth driver forwards offloaded uplink traffic (packets received
on GDM1 and forwarded to GDM{3,4}) to GDM2 in order to apply hw QoS.
This is correct if the device does not support a dedicated GDM2 port.
In this case, in order to enable hw offloading for uplink traffic,
the packets should be sent to GDM{3,4} directly.

Fixes: 9cd451d414f6 ("net: airoha: Add loopback support for GDM2")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Link: https://patch.msgid.link/20251113-airoha-hw-offload-gdm2-fix-v1-1-7e4ca300872f@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Lorenzo Bianconi and committed by
Jakub Kicinski
8e0a754b bed22c7b

+1 -1
+1 -1
drivers/net/ethernet/airoha/airoha_ppe.c
··· 282 282 if (!airoha_is_valid_gdm_port(eth, port)) 283 283 return -EINVAL; 284 284 285 - if (dsa_port >= 0) 285 + if (dsa_port >= 0 || eth->ports[1]) 286 286 pse_port = port->id == 4 ? FE_PSE_PORT_GDM4 287 287 : port->id; 288 288 else