From: wenxu Date: Mon, 20 Apr 2020 23:55:43 +0000 (+0800) Subject: net/sched: act_ct: update nf_conn_acct for act_ct SW offload in flowtable X-Git-Tag: v5.15~3723^2~463 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=beb97d3a3192c00575580af9073921c6283cf93d;p=platform%2Fkernel%2Flinux-starfive.git net/sched: act_ct: update nf_conn_acct for act_ct SW offload in flowtable When the act_ct SW offload in flowtable, The counter of the conntrack entry will never update. So update the nf_conn_acct conuter in act_ct flowtable software offload. Signed-off-by: wenxu Reviewed-by: Roi Dayan Signed-off-by: David S. Miller --- diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c index 1a76639..9adff83 100644 --- a/net/sched/act_ct.c +++ b/net/sched/act_ct.c @@ -30,6 +30,7 @@ #include #include #include +#include #include #include @@ -536,6 +537,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); + nf_ct_acct_update(ct, dir, skb->len); return true; }