diff options
author | Roman Mashak <mrv@mojatatu.com> | 2020-05-17 14:46:31 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2020-05-19 02:32:19 +0200 |
commit | b15e62631c5f19fea9895f7632dae9c1b27fe0cd (patch) | |
tree | aede4a3797be57d4886a8d3d3b34632c5655db41 /drivers/net/ethernet/apple | |
parent | net: phy: propagate an error back to the callers of phy_sfp_probe (diff) | |
download | linux-b15e62631c5f19fea9895f7632dae9c1b27fe0cd.tar.xz linux-b15e62631c5f19fea9895f7632dae9c1b27fe0cd.zip |
net sched: fix reporting the first-time use timestamp
When a new action is installed, firstuse field of 'tcf_t' is explicitly set
to 0. Value of zero means "new action, not yet used"; as a packet hits the
action, 'firstuse' is stamped with the current jiffies value.
tcf_tm_dump() should return 0 for firstuse if action has not yet been hit.
Fixes: 48d8ee1694dd ("net sched actions: aggregate dumping of actions timeinfo")
Cc: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: Roman Mashak <mrv@mojatatu.com>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/apple')
0 files changed, 0 insertions, 0 deletions