diff options
author | Jiri Pirko <jiri@resnulli.us> | 2013-02-11 19:12:04 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-02-12 18:59:45 -0500 |
commit | 34c5d292ce05d2bf52e692c44292b0ababba2853 (patch) | |
tree | b9a0e7989792d08c1b33a75c6889697fe97fbe39 /include/net/pkt_sched.h | |
parent | 292f1c7ff6cc10516076ceeea45ed11833bb71c7 (diff) |
sch_api: introduce qdisc_watchdog_schedule_ns()
tbf will need to schedule watchdog in ns. No need to convert it twice.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Acked-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/pkt_sched.h')
-rw-r--r-- | include/net/pkt_sched.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/net/pkt_sched.h b/include/net/pkt_sched.h index 66f5ac370f92..388bf8b6d060 100644 --- a/include/net/pkt_sched.h +++ b/include/net/pkt_sched.h | |||
@@ -65,8 +65,14 @@ struct qdisc_watchdog { | |||
65 | }; | 65 | }; |
66 | 66 | ||
67 | extern void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc); | 67 | extern void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc); |
68 | extern void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, | 68 | extern void qdisc_watchdog_schedule_ns(struct qdisc_watchdog *wd, u64 expires); |
69 | psched_time_t expires); | 69 | |
70 | static inline void qdisc_watchdog_schedule(struct qdisc_watchdog *wd, | ||
71 | psched_time_t expires) | ||
72 | { | ||
73 | qdisc_watchdog_schedule_ns(wd, PSCHED_TICKS2NS(expires)); | ||
74 | } | ||
75 | |||
70 | extern void qdisc_watchdog_cancel(struct qdisc_watchdog *wd); | 76 | extern void qdisc_watchdog_cancel(struct qdisc_watchdog *wd); |
71 | 77 | ||
72 | extern struct Qdisc_ops pfifo_qdisc_ops; | 78 | extern struct Qdisc_ops pfifo_qdisc_ops; |