net sched actions: aggregate dumping of actions timeinfo
Signed-off-by: Jamal Hadi Salim <jhs@mojatatu.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
53eb440f4a
commit
48d8ee1694
@@ -80,6 +80,14 @@ static inline void tcf_lastuse_update(struct tcf_t *tm)
|
||||
tm->firstuse = now;
|
||||
}
|
||||
|
||||
static inline void tcf_tm_dump(struct tcf_t *dtm, const struct tcf_t *stm)
|
||||
{
|
||||
dtm->install = jiffies_to_clock_t(jiffies - stm->install);
|
||||
dtm->lastuse = jiffies_to_clock_t(jiffies - stm->lastuse);
|
||||
dtm->firstuse = jiffies_to_clock_t(jiffies - stm->firstuse);
|
||||
dtm->expires = jiffies_to_clock_t(stm->expires);
|
||||
}
|
||||
|
||||
struct tc_action {
|
||||
void *priv;
|
||||
const struct tc_action_ops *ops;
|
||||
|
||||
Reference in New Issue
Block a user