]> git.baikalelectronics.ru Git - kernel.git/commitdiff
net: ethernet: mtk_eth_soc: fix typo in __mtk_foe_entry_clear
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 6 Sep 2022 14:36:32 +0000 (16:36 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 7 Sep 2022 14:25:03 +0000 (15:25 +0100)
Set ib1 state to MTK_FOE_STATE_UNBIND in __mtk_foe_entry_clear routine.

Fixes: f2f6f03564be9 ("net: ethernet: mtk_eth_soc: support creating mac address based offload entries")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_ppe.c

index dab8f3f771f848079c6858b3491c3a9c98770fd3..cfe804bc8d2055ab8c1eeeff16b5c1b4f7fc2368 100644 (file)
@@ -412,7 +412,7 @@ __mtk_foe_entry_clear(struct mtk_ppe *ppe, struct mtk_flow_entry *entry)
        if (entry->hash != 0xffff) {
                ppe->foe_table[entry->hash].ib1 &= ~MTK_FOE_IB1_STATE;
                ppe->foe_table[entry->hash].ib1 |= FIELD_PREP(MTK_FOE_IB1_STATE,
-                                                             MTK_FOE_STATE_BIND);
+                                                             MTK_FOE_STATE_UNBIND);
                dma_wmb();
        }
        entry->hash = 0xffff;