[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>
Showing
- include/net/sch_generic.h 12 additions, 0 deletionsinclude/net/sch_generic.h
- net/sched/act_police.c 2 additions, 2 deletionsnet/sched/act_police.c
- net/sched/sch_cbq.c 1 addition, 1 deletionnet/sched/sch_cbq.c
- net/sched/sch_htb.c 2 additions, 4 deletionsnet/sched/sch_htb.c
- net/sched/sch_tbf.c 2 additions, 2 deletionsnet/sched/sch_tbf.c
Loading
Please register or sign in to comment