diff options
author | Jussi Kivilinna <jussi.kivilinna@mbnet.fi> | 2008-07-20 03:08:04 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-07-20 03:08:04 -0400 |
commit | 5f86173bdf15981ca49d0434f638b68f70a35644 (patch) | |
tree | e6792339e577ed4a8261358e56df9f1a2b87f655 /include/net | |
parent | db7a94d60f871ce6a52e97d82dea476cee0c4ea0 (diff) |
net_sched: Add qdisc_enqueue wrapper
Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net')
-rw-r--r-- | include/net/sch_generic.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/net/sch_generic.h b/include/net/sch_generic.h index 8a44386b35c..f396dff335a 100644 --- a/include/net/sch_generic.h +++ b/include/net/sch_generic.h | |||
@@ -306,6 +306,16 @@ static inline bool qdisc_tx_is_noop(const struct net_device *dev) | |||
306 | return true; | 306 | return true; |
307 | } | 307 | } |
308 | 308 | ||
309 | static inline int qdisc_enqueue(struct sk_buff *skb, struct Qdisc *sch) | ||
310 | { | ||
311 | return sch->enqueue(skb, sch); | ||
312 | } | ||
313 | |||
314 | static inline int qdisc_enqueue_root(struct sk_buff *skb, struct Qdisc *sch) | ||
315 | { | ||
316 | return qdisc_enqueue(skb, sch); | ||
317 | } | ||
318 | |||
309 | static inline int __qdisc_enqueue_tail(struct sk_buff *skb, struct Qdisc *sch, | 319 | static inline int __qdisc_enqueue_tail(struct sk_buff *skb, struct Qdisc *sch, |
310 | struct sk_buff_head *list) | 320 | struct sk_buff_head *list) |
311 | { | 321 | { |