Skip to content

Commit 8367b3a

Browse files
wenxudavem330
authored andcommitted
net/sched: act_ct: add miss tcf_lastuse_update.
When tcf_ct_act execute the tcf_lastuse_update should be update or the used stats never update filter protocol ip pref 3 flower chain 0 filter protocol ip pref 3 flower chain 0 handle 0x1 eth_type ipv4 dst_ip 1.1.1.1 ip_flags frag/firstfrag skip_hw not_in_hw action order 1: ct zone 1 nat pipe index 1 ref 1 bind 1 installed 103 sec used 103 sec Action statistics: Sent 151500 bytes 101 pkt (dropped 0, overlimits 0 requeues 0) backlog 0b 0p requeues 0 cookie 4519c04dc64a1a295787aab13b6a50fb Signed-off-by: wenxu <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent f0b594d commit 8367b3a

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

net/sched/act_ct.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,8 @@ static int tcf_ct_act(struct sk_buff *skb, const struct tc_action *a,
925925
force = p->ct_action & TCA_CT_ACT_FORCE;
926926
tmpl = p->tmpl;
927927

928+
tcf_lastuse_update(&c->tcf_tm);
929+
928930
if (clear) {
929931
ct = nf_ct_get(skb, &ctinfo);
930932
if (ct) {

0 commit comments

Comments
 (0)