net: ethernet: mtk_eth_soc: fix pse_port configuration for MT7988
authorLorenzo Bianconi <lorenzo@kernel.org>
Sat, 9 Sep 2023 18:41:56 +0000 (20:41 +0200)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Sep 2023 09:40:49 +0000 (10:40 +0100)
commit5a124b1fd3e6cb15a943f0cdfe96aa8f6d3d2f39
tree6bf920d39a3f07a42a25510c03fb4a8b222122ce
parente10a35abb3da12b812cfb6fc6137926a0c81e39a
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: 88efedf517e6 ("net: ethernet: mtk_eth_soc: enable nft hw flowtable_offload for MT7988 SoC")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_ppe_offload.c