Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 103396
b: refs/heads/master
c: 0529794
h: refs/heads/master
v: v3
  • Loading branch information
David S. Miller committed Jul 9, 2008
1 parent f271308 commit 16512f1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6fa9864b53f0680e432a2c431c2cf2055daa3a88
refs/heads/master: 052979499c767268b912d25031ae524c451679d0
8 changes: 8 additions & 0 deletions trunk/include/net/sch_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down
5 changes: 2 additions & 3 deletions trunk/net/ipv6/addrconf.c
Original file line number Diff line number Diff line change
Expand Up @@ -229,10 +229,9 @@ const struct in6_addr in6addr_linklocal_allnodes = IN6ADDR_LINKLOCAL_ALLNODES_IN
const struct in6_addr in6addr_linklocal_allrouters = IN6ADDR_LINKLOCAL_ALLROUTERS_INIT;

/* Check if a valid qdisc is available */
static inline int addrconf_qdisc_ok(struct net_device *dev)
static inline bool addrconf_qdisc_ok(const struct net_device *dev)
{
struct netdev_queue *txq = &dev->tx_queue;
return (txq->qdisc != &noop_qdisc);
return !qdisc_tx_is_noop(dev);
}

/* Check if a route is valid prefix route */
Expand Down

0 comments on commit 16512f1

Please sign in to comment.