[PATCH 1/2] net: ethernet: mtk_eth_soc: fix wrong use of new helper function
Lorenzo Bianconi
lorenzo at kernel.org
Sun Sep 25 14:19:38 PDT 2022
> 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 by
> mtk_prep_ib1_vlan_layer(eth, entry->ib1)
>
> Use correct helper function mtk_get_ib1_vlan_layer instead.
Acked-by: Lorenzo Bianconi <lorenzo at kernel.org>
>
> Reported-by: Chen Minqiang <ptpt52 at gmail.com>
> Fixes: 03a3180e5c09e1 ("net: ethernet: mtk_eth_soc: introduce flow offloading support for mt7986")
> Signed-off-by: Daniel Golle <daniel at makrotopia.org>
> ---
> drivers/net/ethernet/mediatek/mtk_ppe.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/net/ethernet/mediatek/mtk_ppe.c b/drivers/net/ethernet/mediatek/mtk_ppe.c
> index 25f8738a062bd0..4ea2b342f252ac 100644
> --- a/drivers/net/ethernet/mediatek/mtk_ppe.c
> +++ b/drivers/net/ethernet/mediatek/mtk_ppe.c
> @@ -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);
> --
> 2.37.3
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-mediatek/attachments/20220925/1638e164/attachment.sig>
More information about the Linux-mediatek
mailing list