| * This is a bit speed dependent (read it shouldn't be a constant!) |
| * 5 is about right for 28.8 upwards. Below that double for every |
| * halving of speed or so. - ie about 20 for 9600 baud. |
| #define SHAPER_LATENCY (5*HZ) |
| #define SHAPER_BURST (HZ/50) /* Good for >128K then */ |
| struct sk_buff_head sendq; |
| unsigned long recovery; /* Time we can next clock a packet out on |
| struct net_device_stats stats; |
| int (*hard_start_xmit) (struct sk_buff *skb, |
| int (*hard_header) (struct sk_buff *skb, |
| int (*rebuild_header)(struct sk_buff *skb); |
| int (*hard_header_cache)(struct neighbour *neigh, struct hh_cache *hh); |
| void (*header_cache_update)(struct hh_cache *hh, struct net_device *dev, unsigned char * haddr); |
| struct net_device_stats* (*get_stats)(struct net_device *dev); |
| #define SHAPER_SET_DEV 0x0001 |
| #define SHAPER_SET_SPEED 0x0002 |
| #define SHAPER_GET_DEV 0x0003 |
| #define SHAPER_GET_SPEED 0x0004 |
| #define ss_speed ss_u.ssu_speed |
| #define ss_name ss_u.ssu_name |