net_sched: Add size table for qdiscs
Add size table functions for qdiscs and calculate packet size in qdisc_enqueue(). Based on patch by Patrick McHardy http://marc.info/?l=linux-netdev&m=115201979221729&w=2 Signed-off-by: Jussi Kivilinna <jussi.kivilinna@mbnet.fi> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0abf77e55a
commit
175f9c1bba
@ -85,6 +85,26 @@ struct tc_ratespec
|
||||
|
||||
#define TC_RTAB_SIZE 1024
|
||||
|
||||
struct tc_sizespec {
|
||||
unsigned char cell_log;
|
||||
unsigned char size_log;
|
||||
short cell_align;
|
||||
int overhead;
|
||||
unsigned int linklayer;
|
||||
unsigned int mpu;
|
||||
unsigned int mtu;
|
||||
unsigned int tsize;
|
||||
};
|
||||
|
||||
enum {
|
||||
TCA_STAB_UNSPEC,
|
||||
TCA_STAB_BASE,
|
||||
TCA_STAB_DATA,
|
||||
__TCA_STAB_MAX
|
||||
};
|
||||
|
||||
#define TCA_STAB_MAX (__TCA_STAB_MAX - 1)
|
||||
|
||||
/* FIFO section */
|
||||
|
||||
struct tc_fifo_qopt
|
||||
|
Reference in New Issue
Block a user