Skip to content

Commit 5a124b1

Browse files
LorenzoBianconidavem330
authored andcommitted
net: ethernet: mtk_eth_soc: fix pse_port configuration for MT7988
MT7988 SoC support 3 NICs. Fix pse_port configuration in mtk_flow_set_output_device routine if the traffic is offloaded to eth2. Rely on mtk_pse_port definitions. Fixes: 88efedf ("net: ethernet: mtk_eth_soc: enable nft hw flowtable_offload for MT7988 SoC") Signed-off-by: Lorenzo Bianconi <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e10a35a commit 5a124b1

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

drivers/net/ethernet/mediatek/mtk_ppe_offload.c

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,9 +214,11 @@ mtk_flow_set_output_device(struct mtk_eth *eth, struct mtk_foe_entry *foe,
214214
dsa_port = mtk_flow_get_dsa_port(&dev);
215215

216216
if (dev == eth->netdev[0])
217-
pse_port = 1;
217+
pse_port = PSE_GDM1_PORT;
218218
else if (dev == eth->netdev[1])
219-
pse_port = 2;
219+
pse_port = PSE_GDM2_PORT;
220+
else if (dev == eth->netdev[2])
221+
pse_port = PSE_GDM3_PORT;
220222
else
221223
return -EOPNOTSUPP;
222224

0 commit comments

Comments
 (0)