]> git.karo-electronics.de Git - linux-beck.git/commit
sch_qfq: accurate wsum handling
authorEric Dumazet <eric.dumazet@gmail.com>
Mon, 2 Jan 2012 11:47:50 +0000 (11:47 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 3 Jan 2012 18:02:19 +0000 (13:02 -0500)
commitd32ae76f2b776347051cf821ebe690602e38dfc7
tree3f17a0c00e2ac7cc982c47e442661517ae010d5c
parentd47a0ac7b66883987275598d6039f902f4410ca9
sch_qfq: accurate wsum handling

We can underestimate q->wsum in case of "tc class replace ... qfq"
and/or qdisc_create_dflt() error.

wsum is not really used in fast path, only at qfq qdisc/class setup,
to catch user error.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
CC: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_qfq.c