diff mbox series

[nf-next,3/3] net/sched: act_ct: add nf_conn_acct for SW act_ct flowtable offload

Message ID 1584790158-9752-4-git-send-email-wenxu@ucloud.cn
State New
Headers show
Series [nf-next,1/3] netfilter: nf_flow_table: add nf_conn_acct for SW flowtable offload | expand

Commit Message

wenxu March 21, 2020, 11:29 a.m. UTC
From: wenxu <wenxu@ucloud.cn>

Add nf_conn_acct counter for the software act_ct flowtable offload

Signed-off-by: wenxu <wenxu@ucloud.cn>
---
 net/sched/act_ct.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index 56b66d2..0386c6b 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -536,6 +536,7 @@  static bool tcf_ct_flow_table_lookup(struct tcf_ct_params *p,
 	flow_offload_refresh(nf_ft, flow);
 	nf_conntrack_get(&ct->ct_general);
 	nf_ct_set(skb, ct, ctinfo);
+	flow_offload_update_acct(flow, 1, skb->len, dir);
 
 	return true;
 }