commit | fdfe157bb97d3c9369bb783cff940a9678e20600 | [log] [tgz] |
---|---|---|
author | developer <developer@mediatek.com> | Mon Sep 13 16:56:33 2021 +0800 |
committer | developer <developer@mediatek.com> | Wed Sep 22 10:07:10 2021 +0800 |
tree | fe6588caca8925e95a9ee7b2886b2756019f0793 | |
parent | 28274fb1ef11e1f8ade671316a7b6c9380cf57b2 [diff] [blame] |
[][Add sanity check for HNAT binding flow] [Description] Add sanity check for HNAT binding flow. It's known that HNAT binding path can be divided into two parts: 1. skb_to_hnat_info(): fill basic acceleration information of a rate-reach session. 2. mtk_sw_nat_hook_tx(): fill WiFi Tx related information if the session is routed to WiFi stations. These two functions are called in sequential order. So it's unnecessary to process the second part if the first one is not properly completed. [Release-log] N/A Change-Id: I20414572f96407369829d1702335c902a46d0447 Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/4995189
diff --git a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_soc.c b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_soc.c index 642f204..ea3ff92 100755 --- a/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_soc.c +++ b/target/linux/mediatek/files-5.4/drivers/net/ethernet/mediatek/mtk_eth_soc.c
@@ -1476,6 +1476,7 @@ *(u32 *)(skb->head) = trxd.rxd4; skb_hnat_alg(skb) = 0; + skb_hnat_filled(skb) = 0; skb_hnat_magic_tag(skb) = HNAT_MAGIC_TAG; if (skb_hnat_reason(skb) == HIT_BIND_FORCE_TO_CPU) {