net: ethernet: mtk_eth_soc: fix wrong use of new helper function
Subsystems (4)
PATCH 1/2 net: ethernet: mtk_eth_soc: fix wrong use of new helper function
In function mtk_foe_entry_set_vlan() the call to field accessor macro FIELD_GET(MTK_FOE_IB1_BIND_VLAN_LAYER, entry->ib1)
has been wrongly replaced bymtk_prep_ib1_vlan_layer(eth, entry->ib1)
Use correct helper function mtk_get_ib1_vlan_layer instead.
--- drivers/net/ethernet/mediatek/mtk_ppe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/ethernet/mediatek/mtk_ppe.c +1 -1
@@ -337,7 +337,7 @@ int mtk_foe_entry_set_vlan(struct mtk_eth *eth, struct mtk_foe_entry *entry, {struct mtk_foe_mac_info *l2 =mtk_foe_entry_l2 (eth, entry); -switch (mtk_prep_ib1_vlan_layer (eth, entry->ib1)) { +switch (mtk_get_ib1_vlan_layer (eth, entry->ib1)) {case 0 : entry->ib1 |=mtk_get_ib1_vlan_tag_mask (eth) |mtk_prep_ib1_vlan_layer (eth,1 );
Signature · 1 line
2.37.3
Quoted 6 lines
In function
mtk_foe_entry_set_vlan()the call to field accessor macroFIELD_GET(MTK_FOE_IB1_BIND_VLAN_LAYER, entry->ib1)
has been wrongly replaced bymtk_prep_ib1_vlan_layer(eth, entry->ib1)Use correct helper function
mtk_get_ib1_vlan_layerinstead.
Quoted 24 lines
Reported-by Chen Minqiang <[email protected]>Fixes 03a3180e5c09e1 ("net: ethernet: mtk_eth_soc: introduce flow offloading support for mt7986")Signed-off-by Daniel Golle <[email protected]>--- drivers/net/ethernet/mediatek/mtk_ppe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/net/ethernet/mediatek/mtk_ppe.c +1
-1@@ -337,7 +337,7 @@ int mtk_foe_entry_set_vlan(struct mtk_eth *eth, struct mtk_foe_entry *entry, {struct mtk_foe_mac_info *l2 =mtk_foe_entry_l2 (eth, entry); -switch (mtk_prep_ib1_vlan_layer (eth, entry->ib1)) { +switch (mtk_get_ib1_vlan_layer (eth, entry->ib1)) {case 0 : entry->ib1 |=mtk_get_ib1_vlan_tag_mask (eth) |mtk_prep_ib1_vlan_layer (eth,1 );Signature · 1 line
2.37.3
This series was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Hello:
This series was applied to netdev/net-next.git (master) by Jakub Kicinski <[email protected]>:
Quoted 8 lines · On Sun, 25 Sep 2022 15:47:20 +0100 you wrote:
In function
mtk_foe_entry_set_vlan()the call to field accessor macroFIELD_GET(MTK_FOE_IB1_BIND_VLAN_LAYER, entry->ib1)
has been wrongly replaced bymtk_prep_ib1_vlan_layer(eth, entry->ib1)Use correct helper function
mtk_get_ib1_vlan_layerinstead.[...]
Here is the summary with links:
- [1/2] net: ethernet: mtk_eth_soc: fix wrong use of new helper function
https://git.kernel.org/netdev/net-next/c/fb7da771bc43 - [2/2] net: ethernet: mtk_eth_soc: fix usage of foe_entry_size https://git.kernel.org/netdev/net-next/c/454b20e19322
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html