When CT HW offload is enabled, the CT stats does not show the stats of the offloaded flow.
Ex: using
cat /proc/net/nf_conntrack, or conntrack -L
shows only the software CT stats, not the offloaded CT stats
* Brief explanation of fixes
Cherry-pick. No adaptation. First commit for SW, second commit of HW offloaded rules.
ef803b3cf96a netfilter: flowtable: add counter support in HW offload
9312eabab4a6 netfilter: conntrack: add nf_ct_acct_add()
* How to test
Enable nf_conn_acct, enable HW offload using OVS or tc-flower, and check ct stats.
ex:
ovs-vsctl get Open_vSwitch . other_config
{hw-offload="true"}
ovs-appctl dpctl/dump-flows type=offloaded
ovs-appctl dpctl/dump-conntrack
* Explain the bug(s)
When CT HW offload is enabled, the CT stats does not show the stats of the offloaded flow. nf_conntrack, or conntrack -L
Ex: using
cat /proc/net/
shows only the software CT stats, not the offloaded CT stats
* Brief explanation of fixes
Cherry-pick. No adaptation. First commit for SW, second commit of HW offloaded rules.
ef803b3cf96a netfilter: flowtable: add counter support in HW offload
9312eabab4a6 netfilter: conntrack: add nf_ct_acct_add()
* How to test
Enable nf_conn_acct, enable HW offload using OVS or tc-flower, and check ct stats. conntrack
ex:
ovs-vsctl get Open_vSwitch . other_config
{hw-offload="true"}
ovs-appctl dpctl/dump-flows type=offloaded
ovs-appctl dpctl/dump-
* What it could break.
Nothing.