On Thu, Sep 18, 2008 at 2:46 AM, David Miller <davem@davemloft.net> wrote:I redefined qdisc->dequeue to be set to smart_dequeue in sch_generic.c: @@ -475,7 +491,7 @@ struct Qdisc *qdisc_alloc(struct netdev_queue *dev_queue, skb_queue_head_init(&sch->q); sch->ops = ops; sch->enqueue = ops->enqueue; - sch->dequeue = ops->dequeue; + sch->dequeue = ops->smart_dequeue; sch->dev_queue = dev_queue; dev_hold(qdisc_dev(sch)); atomic_set(&sch->refcnt, 1); Most of the changes from qdisc->dequeue to qdisc->ops->dequeue are to have the standard dequeue call use nothing but standard dequeue calls in it's path. I needed to maintain qdisc->ops->dequeue because there are several functions throughout the qdisc code that require the ability to dequeue a packet regardless of hw queue state. Thanks, Alex -- To unsubscribe from this list: send the line "unsubscribe netdev" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Eric W. Biederman | [PATCH 02/10] sysfs: Support for preventing unmounts. |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Bart Van Assche | Integration of SCST in the mainstream Linux kernel |
| david | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Antonio Almeida | HTB accuracy for high speed |
| Jarek Poplawski | [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 26/37] dccp: Integration of dynamic feature activation - part 1 (socket set... |
| David Miller | [GIT]: Networking |
