Go to the documentation of this file. 1 #ifndef __NET_PKT_SCHED_H
2 #define __NET_PKT_SCHED_H
15 #define QDISC_ALIGNTO 64
16 #define QDISC_ALIGN(len) (((len) + QDISC_ALIGNTO-1) & ~(QDISC_ALIGNTO-1))
18 static inline void *qdisc_priv(
struct Qdisc *
q)
44 #define PSCHED_SHIFT 6
45 #define PSCHED_TICKS2NS(x) ((s64)(x) << PSCHED_SHIFT)
46 #define PSCHED_NS2TICKS(x) ((x) >> PSCHED_SHIFT)
48 #define PSCHED_TICKS_PER_SEC PSCHED_NS2TICKS(NSEC_PER_SEC)
49 #define PSCHED_PASTPERFECT 0
59 return min(tv1 - tv2, bound);
96 static inline void qdisc_run(
struct Qdisc *
q)
98 if (qdisc_run_begin(q))
110 static inline unsigned int psched_mtu(
const struct net_device *
dev)