pkt_sched: Make qdisc_run take a netdev_queue.

This allows us to use this calling convention all the way down into
qdisc_restart().

Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
David S. Miller 2008-07-08 23:12:38 -07:00
parent 86d804e10a
commit eb6aafe3f8
3 changed files with 21 additions and 17 deletions

View file

@ -84,13 +84,15 @@ extern struct qdisc_rate_table *qdisc_get_rtab(struct tc_ratespec *r,
struct nlattr *tab);
extern void qdisc_put_rtab(struct qdisc_rate_table *tab);
extern void __qdisc_run(struct net_device *dev);
extern void __qdisc_run(struct netdev_queue *txq);
static inline void qdisc_run(struct net_device *dev)
static inline void qdisc_run(struct netdev_queue *txq)
{
struct net_device *dev = txq->dev;
if (!netif_queue_stopped(dev) &&
!test_and_set_bit(__LINK_STATE_QDISC_RUNNING, &dev->state))
__qdisc_run(dev);
__qdisc_run(txq);
}
extern int tc_classify_compat(struct sk_buff *skb, struct tcf_proto *tp,