summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2017-04-10 11:11:17 +0300
committerDavid S. Miller <davem@davemloft.net>2017-04-12 13:59:21 -0400
commit5b3dc2f37d7daf76a679cd204492ec5dff06bb8a (patch)
tree959c17821a16b655118100cb46f2d468bbc6cec6 /include/linux/netdevice.h
parenteaffadbbb3f2711fc76e7b0ddf37c452ee11b805 (diff)
downloadop-kernel-dev-5b3dc2f37d7daf76a679cd204492ec5dff06bb8a.zip
op-kernel-dev-5b3dc2f37d7daf76a679cd204492ec5dff06bb8a.tar.gz
net: neigh: make ->hh_len 32-bit
Using 16-bit ->hh_len doesn't save any memory, save some .text instead: add/remove: 0/0 grow/shrink: 1/6 up/down: 2/-19 (-17) function old new delta neigh_update 2312 2314 +2 fwnet_header_cache 199 197 -2 eth_header_cache 101 99 -2 ip6_finish_output2 2371 2368 -3 vrf_finish_output6 1522 1518 -4 vrf_finish_output 1413 1409 -4 ip_finish_output2 1627 1623 -4 Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index cc07c3b..8ea8a8b 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -237,8 +237,7 @@ struct netdev_hw_addr_list {
netdev_hw_addr_list_for_each(ha, &(dev)->mc)
struct hh_cache {
- u16 hh_len;
- u16 __pad;
+ unsigned int hh_len;
seqlock_t hh_lock;
/* cached hardware header; allow for machine alignment needs. */
OpenPOWER on IntegriCloud