summaryrefslogtreecommitdiffstats
path: root/net/sched
diff options
context:
space:
mode:
authorwenxu <wenxu@ucloud.cn>2020-07-04 15:42:47 +0800
committerDavid S. Miller <davem@davemloft.net>2020-07-07 15:29:44 -0700
commit8367b3ab6e9a26dec5d5d07ea3eae17a21035322 (patch)
tree8b4d73e2ffdd18a822cdb66d357a2c0b8e7ba716 /net/sched
parentf0b594dfa47555d8d69e6865c882d65a9054cb81 (diff)
downloadlinux-8367b3ab6e9a26dec5d5d07ea3eae17a21035322.tar.gz
linux-8367b3ab6e9a26dec5d5d07ea3eae17a21035322.tar.bz2
linux-8367b3ab6e9a26dec5d5d07ea3eae17a21035322.zip
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 <wenxu@ucloud.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched')
-rw-r--r--net/sched/act_ct.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/net/sched/act_ct.c b/net/sched/act_ct.c
index 86ed02487467..67504aece9ae 100644
--- a/net/sched/act_ct.c
+++ b/net/sched/act_ct.c
@@ -925,6 +925,8 @@ static int tcf_ct_act(struct sk_buff *skb, const struct tc_action *a,
force = p->ct_action & TCA_CT_ACT_FORCE;
tmpl = p->tmpl;
+ tcf_lastuse_update(&c->tcf_tm);
+
if (clear) {
ct = nf_ct_get(skb, &ctinfo);
if (ct) {