sfq: fix slot_dequeue_head()
authorEric Dumazet <eric.dumazet@gmail.com>
Fri, 31 Dec 2010 20:48:55 +0000 (12:48 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 31 Dec 2010 20:48:55 +0000 (12:48 -0800)
commit18c8d82ae5b802c5d82e0dfbcc08b1b568955f46
tree6a9ff2bc889e63494b5636e9dbe8b8c9a5e296af
parenteeaeb068f1393b4db4861481bf594bcd1c3eda7a
sfq: fix slot_dequeue_head()

slot_dequeue_head() should make sure slot skb chain is correct in both
ways, or we can crash if all possible flows are in use.

Jarek pointed out slot_queue_init() can now be done in sfq_init() once,
instead each time a flow is setup.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_sfq.c