[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <1584790158-9752-4-git-send-email-wenxu@ucloud.cn>
Date:   Sat, 21 Mar 2020 19:29:18 +0800
From:   wenxu@...oud.cn
To:     pablo@...filter.org, paulb@...lanox.com
Cc:     netfilter-devel@...r.kernel.org, netdev@...r.kernel.org
Subject: [PATCH nf-next 3/3] net/sched: act_ct: add nf_conn_acct for SW act_ct flowtable offload
From: wenxu <wenxu@...oud.cn>
Add nf_conn_acct counter for the software act_ct flowtable offload
Signed-off-by: wenxu <wenxu@...oud.cn>
---
 net/sched/act_ct.c | 1 +
 1 file changed, 1 insertion(+)
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;
 }
-- 
1.8.3.1
Powered by blists - more mailing lists
 
