Skip to content

Commit 9245313

Browse files
nbd168kuba-moo
authored andcommitted
net: ethernet: mtk_eth_soc: add missing ppe cache flush when deleting a flow
The cache needs to be flushed to ensure that the hardware stops offloading the flow immediately. Fixes: 33fc42d ("net: ethernet: mtk_eth_soc: support creating mac address based offload entries") Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Felix Fietkau <[email protected]> Reviewed-by: Leon Romanovsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 5f36ca1 commit 9245313

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/mediatek/mtk_ppe.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -459,6 +459,7 @@ __mtk_foe_entry_clear(struct mtk_ppe *ppe, struct mtk_flow_entry *entry)
459459
hwe->ib1 &= ~MTK_FOE_IB1_STATE;
460460
hwe->ib1 |= FIELD_PREP(MTK_FOE_IB1_STATE, MTK_FOE_STATE_INVALID);
461461
dma_wmb();
462+
mtk_ppe_cache_clear(ppe);
462463
}
463464
entry->hash = 0xffff;
464465

0 commit comments

Comments
 (0)