diff options
author | Alexey Dobriyan <adobriyan@gmail.com> | 2017-09-23 23:03:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-09-25 20:36:17 -0700 |
commit | 01ccdf126ca5f9d4fe0889f65ee67afac910f19c (patch) | |
tree | a2f0a5d22825671199402771eb22f0c2e1321707 /include | |
parent | e451ae8e4f6b3f6bd3b83a5595657b5421b3bf69 (diff) |
neigh: make strucrt neigh_table::entry_size unsigned int
Key length can't be negative.
Leave comparisons against nla_len() signed just in case truncated attribute
can sneak in there.
Space savings:
add/remove: 0/0 grow/shrink: 0/7 up/down: 0/-7 (-7)
function old new delta
pneigh_delete 273 272 -1
mlx5e_rep_netevent_event 1415 1414 -1
mlx5e_create_encap_header_ipv6 1194 1193 -1
mlx5e_create_encap_header_ipv4 1071 1070 -1
cxgb4_l2t_get 1104 1103 -1
__pneigh_lookup 69 68 -1
__neigh_create 2452 2451 -1
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r-- | include/net/neighbour.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/net/neighbour.h b/include/net/neighbour.h index 9a25512e0a6e..2492000e1035 100644 --- a/include/net/neighbour.h +++ b/include/net/neighbour.h @@ -191,7 +191,7 @@ struct neigh_hash_table { struct neigh_table { int family; unsigned int entry_size; - int key_len; + unsigned int key_len; __be16 protocol; __u32 (*hash)(const void *pkey, const struct net_device *dev, |