net_sched: gred: eliminate redundant DP prio comparisons
authorDavid Ward <david.ward@ll.mit.edu>
Thu, 13 Sep 2012 05:22:33 +0000 (05:22 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Sep 2012 20:10:13 +0000 (16:10 -0400)
commitc22e464022f935b0cbd8724b1d99d800d49518a9
tree361fcb9ccd626dff3ab49ac8914bdeca1d73b367
parente29fe837bfa3ca0a9f4ef1d4a90e6e0a74b6b8a0
net_sched: gred: eliminate redundant DP prio comparisons

Each pair of DPs only needs to be compared once when searching for
a non-unique prio value.

Signed-off-by: David Ward <david.ward@ll.mit.edu>
Acked-by: Jamal Hadi Salim <jhs@mojatatu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_gred.c