aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid S. Miller <davem@davemloft.net>2008-07-09 02:01:27 -0400
committerDavid S. Miller <davem@davemloft.net>2008-07-09 02:01:27 -0400
commit052979499c767268b912d25031ae524c451679d0 (patch)
tree0873da6b42fb8a8b7cdcd033fced0f50731fd824 /net
parent6fa9864b53f0680e432a2c431c2cf2055daa3a88 (diff)
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 <davem@davemloft.net>
Diffstat (limited to 'net')
-rw-r--r--net/ipv6/addrconf.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/addrconf.c b/net/ipv6/addrconf.c
index 5c84c798331d..30184e0dd74c 100644
--- a/net/ipv6/addrconf.c
+++ b/net/ipv6/addrconf.c
@@ -229,10 +229,9 @@ const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_IN
229const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT; 229const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;
230 230
231/* Check if a valid qdisc is available */ 231/* Check if a valid qdisc is available */
232static inline int addrconf_qdisc_ok(struct net_device *dev) 232static inline bool addrconf_qdisc_ok(const struct net_device *dev)
233{ 233{
234 struct netdev_queue *txq = &dev->tx_queue; 234 return !qdisc_tx_is_noop(dev);
235 return (txq->qdisc != &noop_qdisc);
236} 235}
237 236
238/* Check if a route is valid prefix route */ 237/* Check if a route is valid prefix route */