1 From: Felix Fietkau <nbd@nbd.name>
2 Date: Thu, 23 Mar 2023 11:19:14 +0100
3 Subject: [PATCH] net: ethernet: mtk_eth_soc: add missing ppe cache flush when
6 The cache needs to be flushed to ensure that the hardware stops offloading
9 Signed-off-by: Felix Fietkau <nbd@nbd.name>
12 --- a/drivers/net/ethernet/mediatek/mtk_ppe.c
13 +++ b/drivers/net/ethernet/mediatek/mtk_ppe.c
14 @@ -464,6 +464,7 @@ __mtk_foe_entry_clear(struct mtk_ppe *pp
15 hwe->ib1 &= ~MTK_FOE_IB1_STATE;
16 hwe->ib1 |= FIELD_PREP(MTK_FOE_IB1_STATE, MTK_FOE_STATE_INVALID);
18 + mtk_ppe_cache_clear(ppe);