diff options
| author | Alexey Kuznetsov <kuznet@ms2.inr.ac.ru> | 2003-03-19 03:34:55 -0800 |
|---|---|---|
| committer | David S. Miller <davem@nuts.ninka.net> | 2003-03-19 03:34:55 -0800 |
| commit | 689827f084b4f7bf53d98148288226470631a773 (patch) | |
| tree | fc918fbcc8b0787030f273f5d14dc65eb6bb888d /include/linux | |
| parent | 7f2c275429cf7ba253f8064aea71faba9d9f1a82 (diff) | |
[NET]: hard_header reservation.
1. Fix bad reservation in xfrm_state_check_space()
2. Macroize formula for reservation, use the macro over all the places
in IP.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/netdevice.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h index 16c72b0b6610..bd93370ab0a7 100644 --- a/include/linux/netdevice.h +++ b/include/linux/netdevice.h @@ -90,6 +90,11 @@ struct vlan_group; #define MAX_HEADER (LL_MAX_HEADER + 48) #endif +/* Reserve 16byte aligned hard_header_len, but at least 16. + * Alternative is: dev->hard_header_len ? (dev->hard_header_len + 15)&~15 : 0 + */ +#define LL_RESERVED_SPACE(dev) (((dev)->hard_header_len&~15) + 16) + /* * Network device statistics. Akin to the 2.0 ether stats but * with byte counters. |
