[NET_SCHED]: Cleanup L2T macros and handle oversized packets
authorJesper Dangaard Brouer <hawk@comx.dk>
Wed, 12 Sep 2007 14:35:24 +0000 (16:35 +0200)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 10 Oct 2007 23:49:20 +0000 (16:49 -0700)
commite9bef55d3d062ee7a78fde2913ec87ca9305a1e0
treebb772650e7df49e94bd9c383b51f53bbb4e7bcab
parentb6fa1a4d746488a7de95ec16afcaf3247fedb003
[NET_SCHED]: Cleanup L2T macros and handle oversized packets

Change L2T (length to time) macros, in all rate based schedulers, to
call a common function qdisc_l2t() that does the rate table lookup.
This function handles if the packet size lookup is larger than the
rate table, which often occurs with TSO enabled.

Signed-off-by: Jesper Dangaard Brouer <hawk@comx.dk>
Acked-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/sch_generic.h
net/sched/act_police.c
net/sched/sch_cbq.c
net/sched/sch_htb.c
net/sched/sch_tbf.c