net_sched: sfb: optimize enqueue on full queue
authorEric Dumazet <eric.dumazet@gmail.com>
Thu, 25 Aug 2011 06:21:32 +0000 (06:21 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2011 16:55:18 +0000 (12:55 -0400)
commit363437f40a23bacdead80bb80d08d8193a20cfce
treee5dce35d8aa3ad364dafc1274b3a4c469dbcdb88
parent18cf1248eca3f1fc38e12b314a6cadd286260e65
net_sched: sfb: optimize enqueue on full queue

In case SFB queue is full (hard limit reached), there is no point
spending time to compute hash and maximum qlen/p_mark.

We instead just early drop packet.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/sched/sch_sfb.c