]> asedeno.scripts.mit.edu Git - linux.git/commit
sch_hhf: fix comparison of qlen and limit
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 9 May 2014 08:49:05 +0000 (16:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 May 2014 18:55:21 +0000 (14:55 -0400)
commitb2ce49e7375ff5b9b133c474875dfbd97ef00ef7
treee1c5b1a6c071392ac646e74b5c29bb30f649628c
parentf06c7f9f92295faf701a9628b383156c4efb6119
sch_hhf: fix comparison of qlen and limit

When I use the following command, eth0 cannot send any packets.
 #tc qdisc add dev eth0 root handle 1: hhf limit 1

Because qlen need be smaller than limit, all packets were dropped.
Fix this by qlen *<=* limit.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_hhf.c