* [PATCH 2.6 2/4]: mirred: convert jiffie values to USER_HZ when dumping
@ 2004-11-04 23:25 Patrick McHardy
0 siblings, 0 replies; only message in thread
From: Patrick McHardy @ 2004-11-04 23:25 UTC (permalink / raw)
To: David S. Miller; +Cc: netdev, jamal
[-- Attachment #1: Type: text/plain, Size: 53 bytes --]
Convert jiffie values to USER_HZ in mirred action.
[-- Attachment #2: 2.diff --]
[-- Type: text/x-patch, Size: 1173 bytes --]
# This is a BitKeeper generated diff -Nru style patch.
#
# ChangeSet
# 2004/11/04 20:21:35+01:00 kaber@coreworks.de
# [PKT_SCHED]: mirred: convert jiffie values to USER_HZ when dumping
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
# net/sched/mirred.c
# 2004/11/04 20:21:29+01:00 kaber@coreworks.de +3 -3
# [PKT_SCHED]: mirred: convert jiffie values to USER_HZ when dumping
#
# Signed-off-by: Patrick McHardy <kaber@trash.net>
#
diff -Nru a/net/sched/mirred.c b/net/sched/mirred.c
--- a/net/sched/mirred.c 2004-11-05 00:18:51 +01:00
+++ b/net/sched/mirred.c 2004-11-05 00:18:51 +01:00
@@ -257,9 +257,9 @@
opt.ifindex = p->ifindex;
DPRINTK(" tcf_mirred_dump index %d action %d eaction %d ifndex %d\n",p->index,p->action,p->eaction,p->ifindex);
RTA_PUT(skb, TCA_MIRRED_PARMS, sizeof (opt), &opt);
- t.install = jiffies - p->tm.install;
- t.lastuse = jiffies - p->tm.lastuse;
- t.expires = p->tm.expires;
+ t.install = jiffies_to_clock_t(jiffies - p->tm.install);
+ t.lastuse = jiffies_to_clock_t(jiffies - p->tm.lastuse);
+ t.expires = jiffies_to_clock_t(p->tm.expires);
RTA_PUT(skb, TCA_MIRRED_TM, sizeof (t), &t);
return skb->len;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-11-04 23:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-11-04 23:25 [PATCH 2.6 2/4]: mirred: convert jiffie values to USER_HZ when dumping Patrick McHardy
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).