]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
pkt_sched: sch_htb: Optimize htb_find_next_upper()
authorJarek Poplawski <jarkao2@gmail.com>
Wed, 10 Dec 2008 06:34:40 +0000 (22:34 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 10 Dec 2008 06:34:40 +0000 (22:34 -0800)
commit1b5c0077e1615bb16e777a10ec1fc1195ba059ac
tree9f00035466fbdb8b41d360730bc0be99a91b1148
parentdbb7a95d810ab76aac42e1a5cefdf069dcd014a1
pkt_sched: sch_htb: Optimize htb_find_next_upper()

htb_id_find_next_upper() is usually called to find a class with next
id after some previously removed class, so let's move a check for
equality to the end: it's the least likely here.

Signed-off-by: Jarek Poplawski <jarkao2@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_htb.c