mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
pkt_sched: Add qdisc_tx_is_noop() helper and use in IPV6.
This indicates if the NOOP scheduler is what is active for TX on a given device. Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6fa9864b53
commit
052979499c
2 changed files with 10 additions and 3 deletions
|
|
@ -250,6 +250,14 @@ static inline bool qdisc_tx_changing(struct net_device *dev)
|
|||
return (txq->qdisc != txq->qdisc_sleeping);
|
||||
}
|
||||
|
||||
/* Is the device using the noop qdisc? */
|
||||
static inline bool qdisc_tx_is_noop(const struct net_device *dev)
|
||||
{
|
||||
const struct netdev_queue *txq = &dev->tx_queue;
|
||||
|
||||
return (txq->qdisc == &noop_qdisc);
|
||||
}
|
||||
|
||||
static inline int __qdisc_enqueue_tail(struct sk_buff *skb, struct Qdisc *sch,
|
||||
struct sk_buff_head *list)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue