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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: wenxu <wenxu@xxxxxxxxx>

Add nf_conn_acct counter for the software act_ct flowtable offload

Signed-off-by: wenxu <wenxu@xxxxxxxxx>
---
 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




[Index of Archives]     [Netfitler Users]     [Berkeley Packet Filter]     [LARTC]     [Bugtraq]     [Yosemite Forum]

  Powered by Linux