Skip to content

Commit 9f9d4c1

Browse files
dangowrtkuba-moo
authored andcommitted
net: ethernet: mtk_eth_soc: always mtk_get_ib1_pkt_type
entries and bind debugfs files would display wrong data on NETSYS_V2 and later because instead of using mtk_get_ib1_pkt_type the driver would use MTK_FOE_IB1_PACKET_TYPE which corresponds to NETSYS_V1(.x) SoCs. Use mtk_get_ib1_pkt_type so entries and bind records display correctly. Fixes: 03a3180 ("net: ethernet: mtk_eth_soc: introduce flow offloading support for mt7986") Signed-off-by: Daniel Golle <daniel@makrotopia.org> Acked-by: Lorenzo Bianconi <lorenzo@kernel.org> Link: https://lore.kernel.org/r/c0ae03d0182f4d27b874cbdf0059bc972c317f3c.1689727134.git.daniel@makrotopia.org Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 88f2e00 commit 9f9d4c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/ethernet/mediatek/mtk_ppe_debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ mtk_ppe_debugfs_foe_show(struct seq_file *m, void *private, bool bind)
9898

9999
acct = mtk_foe_entry_get_mib(ppe, i, NULL);
100100

101-
type = FIELD_GET(MTK_FOE_IB1_PACKET_TYPE, entry->ib1);
101+
type = mtk_get_ib1_pkt_type(ppe->eth, entry->ib1);
102102
seq_printf(m, "%05x %s %7s", i,
103103
mtk_foe_entry_state_str(state),
104104
mtk_foe_pkt_type_str(type));

0 commit comments

Comments
 (0)