commit | bb816413eafe58c89698d2e313b011a46e8e8c8f | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Fri Jun 11 15:43:44 2021 +0800 |
committer | developer <developer@mediatek.com> | Sun Jun 13 16:39:57 2021 +0800 |
tree | b43abf59fecf6894289f42d8e48c2b152b413a17 | |
parent | b7fefc10463f7ac4d8f7cca4f06abf7948aef255 [diff] |
[][Add support for GMAC1 mape] [Description] Add support for GMAC1 mape [Release-log] N/A Change-Id: I44b0b769504f26554a702797ae5a1627ae79947f Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4635582
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c index 273faa4..1fb7ad2 100644 --- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c +++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_hnat/hnat_nf_hook.c
@@ -1310,7 +1310,10 @@ if (hnat_priv->data->per_flow_accounting) entry.ipv4_hnapt.iblk2.mibf = 1; - entry.ipv4_hnapt.vlan1 = hw_path->vlan_id; + if (IS_GMAC1_MODE) + entry.ipv4_hnapt.vlan1 = 1; + else + entry.ipv4_hnapt.vlan1 = hw_path->vlan_id; entry.ipv4_hnapt.sip = foe->ipv4_hnapt.sip; entry.ipv4_hnapt.dip = foe->ipv4_hnapt.dip;