mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 10:00:17 +00:00
net: airoha: Do not loopback traffic to GDM2 if it is available on the device
[ Upstream commit8e0a754b08] 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:9cd451d414("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> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0243034486
commit
f0e2a04f0f
@@ -281,7 +281,7 @@ static int airoha_ppe_foe_entry_prepare(struct airoha_eth *eth,
|
|||||||
if (!airoha_is_valid_gdm_port(eth, port))
|
if (!airoha_is_valid_gdm_port(eth, port))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
|
||||||
if (dsa_port >= 0)
|
if (dsa_port >= 0 || eth->ports[1])
|
||||||
pse_port = port->id == 4 ? FE_PSE_PORT_GDM4
|
pse_port = port->id == 4 ? FE_PSE_PORT_GDM4
|
||||||
: port->id;
|
: port->id;
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user