summaryrefslogtreecommitdiffstats
path: root/net/sched/act_connmark.c
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2016-06-07 15:53:44 -0700
committerDavid S. Miller <davem@davemloft.net>2016-06-07 15:53:44 -0700
commitbe119913689724b6fe84caa779c2508547c4e8d5 (patch)
tree175c3ca36e719394ab7f882e2030d0c55b4487c8 /net/sched/act_connmark.c
parente69985c67c33f1d981a87986237366e83a8f0e13 (diff)
parent48d8ee1694dd1ab25614b58f968123a4598f887e (diff)
downloadtalos-op-linux-be119913689724b6fe84caa779c2508547c4e8d5.tar.gz
talos-op-linux-be119913689724b6fe84caa779c2508547c4e8d5.zip
Merge branch 'sch-action-tstamp'
Jamal Hadi Salim says: ==================== net sched action timestamp improvements Various aggregations of duplicated code, fixes and introduction of firstused timestamp v2: add const for source time info per suggestion from Cong ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sched/act_connmark.c')
-rw-r--r--net/sched/act_connmark.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/net/sched/act_connmark.c b/net/sched/act_connmark.c
index 2ba700c765e0..35a5270f289d 100644
--- a/net/sched/act_connmark.c
+++ b/net/sched/act_connmark.c
@@ -44,7 +44,7 @@ static int tcf_connmark(struct sk_buff *skb, const struct tc_action *a,
int proto;
spin_lock(&ca->tcf_lock);
- ca->tcf_tm.lastuse = jiffies;
+ tcf_lastuse_update(&ca->tcf_tm);
bstats_update(&ca->tcf_bstats, skb);
if (skb->protocol == htons(ETH_P_IP)) {
@@ -160,9 +160,7 @@ static inline int tcf_connmark_dump(struct sk_buff *skb, struct tc_action *a,
if (nla_put(skb, TCA_CONNMARK_PARMS, sizeof(opt), &opt))
goto nla_put_failure;
- t.install = jiffies_to_clock_t(jiffies - ci->tcf_tm.install);
- t.lastuse = jiffies_to_clock_t(jiffies - ci->tcf_tm.lastuse);
- t.expires = jiffies_to_clock_t(ci->tcf_tm.expires);
+ tcf_tm_dump(&t, &ci->tcf_tm);
if (nla_put_64bit(skb, TCA_CONNMARK_TM, sizeof(t), &t,
TCA_CONNMARK_PAD))
goto nla_put_failure;
OpenPOWER on IntegriCloud