]> git.baikalelectronics.ru Git - kernel.git/commit
[NET_SCHED]: Rationalise return value of qdisc_restart
authorHerbert Xu <herbert@gondor.apana.org.au>
Thu, 10 May 2007 11:55:14 +0000 (04:55 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Fri, 11 May 2007 06:47:40 +0000 (23:47 -0700)
commit56e2cd102b3c74ab5d6bf886680444ab7993704b
tree5af931c25932cfad852acb8ddc2ad16a7fa45525
parent71e8cd57918e08ee5d940f46182febd15d1808e6
[NET_SCHED]: Rationalise return value of qdisc_restart

The current return value scheme and associated comment was invented
back in the 20th century when we still had that tbusy flag.  Things
have changed quite a bit since then (even Tony Blair is moving on
now, not to mention the new French president).

All we need to indicate now is whether the caller should continue
processing the queue.  Therefore it's sufficient if we return 0 if
we want to stop and non-zero otherwise.

This is based on a patch by Krishna Kumar.

Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_generic.c