Skip to content

Commit 8e0a754

Browse files
LorenzoBianconikuba-moo
authored andcommitted
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: 9cd451d ("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>
1 parent bed22c7 commit 8e0a754

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/airoha/airoha_ppe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ static int airoha_ppe_foe_entry_prepare(struct airoha_eth *eth,
282282
if (!airoha_is_valid_gdm_port(eth, port))
283283
return -EINVAL;
284284

285-
if (dsa_port >= 0)
285+
if (dsa_port >= 0 || eth->ports[1])
286286
pse_port = port->id == 4 ? FE_PSE_PORT_GDM4
287287
: port->id;
288288
else

0 commit comments

Comments
 (0)