3c28e835518243149c33f0dbe6b42827eead0e31
[openwrt/staging/thess.git] /
1 From c9daab322313087afde8c46f41df3c628410ae20 Mon Sep 17 00:00:00 2001
2 From: Lorenzo Bianconi <lorenzo@kernel.org>
3 Date: Mon, 5 Sep 2022 14:46:01 +0200
4 Subject: [PATCH] net: ethernet: mtk_eth_soc: remove mtk_foe_entry_timestamp
5
6 Get rid of mtk_foe_entry_timestamp routine since it is no longer used.
7
8 Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
9 Signed-off-by: David S. Miller <davem@davemloft.net>
10 ---
11 drivers/net/ethernet/mediatek/mtk_ppe.h | 11 -----------
12 1 file changed, 11 deletions(-)
13
14 --- a/drivers/net/ethernet/mediatek/mtk_ppe.h
15 +++ b/drivers/net/ethernet/mediatek/mtk_ppe.h
16 @@ -302,17 +302,6 @@ mtk_ppe_check_skb(struct mtk_ppe *ppe, s
17 __mtk_ppe_check_skb(ppe, skb, hash);
18 }
19
20 -static inline int
21 -mtk_foe_entry_timestamp(struct mtk_ppe *ppe, u16 hash)
22 -{
23 - u32 ib1 = READ_ONCE(ppe->foe_table[hash].ib1);
24 -
25 - if (FIELD_GET(MTK_FOE_IB1_STATE, ib1) != MTK_FOE_STATE_BIND)
26 - return -1;
27 -
28 - return FIELD_GET(MTK_FOE_IB1_BIND_TIMESTAMP, ib1);
29 -}
30 -
31 int mtk_foe_entry_prepare(struct mtk_foe_entry *entry, int type, int l4proto,
32 u8 pse_port, u8 *src_mac, u8 *dest_mac);
33 int mtk_foe_entry_set_pse_port(struct mtk_foe_entry *entry, u8 port);