[][MAC80211][hnat][Update conntrack of per flow accounting data lost issue]
[Description]
Fix conntrack of per flow accounting data lost issue.
When the framework detects FIN packets, it will set up the
NF_FLOW_TEARDOWN flag to the flow. Then GC thread intention
clears the hardware entry and releases the software flow immedately.
Therefore, the framework has to issue a FLOW_CLS_STATS command which
updates residue MIB data to the conntrack.
If without this patch, the conntrack might lost some MIB data in the
corner case.
[Release-log]
N/A
Change-Id: I381f847e4ddbf1e0a2e098488a1db03ceaf64dba
Reviewed-on: https://gerrit.mediatek.inc/c/openwrt/feeds/mtk_openwrt_feeds/+/7285620
1 file changed