aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2017-04-10 11:25:26 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-12 13:59:21 -0400
commitd92be7a41ef15463eb816a4a2d42bf094b56dfce (patch)
tree0836d0005942438fc753a88d23a2dcc96b551084
parentnet: neigh: make ->hh_len 32-bit (diff)
downloadlinux-dev-d92be7a41ef15463eb816a4a2d42bf094b56dfce.tar.xz
linux-dev-d92be7a41ef15463eb816a4a2d42bf094b56dfce.zip
net: make struct net_device::min_header_len 8-bit
This field is never big enough to warrant 16-bitness. 8-bit accesses enjoy shorted encoding on i386/x86_64 than 16-bit accesses: add/remove: 0/0 grow/shrink: 0/2 up/down: 0/-10 (-10) function old new delta loopback_setup 169 164 -5 ether_setup 148 143 -5 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--include/linux/netdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 8ea8a8b70755..b0aa089ce67f 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -1715,7 +1715,7 @@ struct net_device {
unsigned int max_mtu;
unsigned short type;
unsigned short hard_header_len;
- unsigned short min_header_len;
+ unsigned char min_header_len;
unsigned short needed_headroom;
unsigned short needed_tailroom;