neigh: make strucrt neigh_table::entry_size unsigned int
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 23 Sep 2017 20:03:04 +0000 (23:03 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Sep 2017 03:36:17 +0000 (20:36 -0700)
commit01ccdf126ca5f9d4fe0889f65ee67afac910f19c
treea2f0a5d22825671199402771eb22f0c2e1321707
parente451ae8e4f6b3f6bd3b83a5595657b5421b3bf69
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>
drivers/net/ethernet/chelsio/cxgb4/l2t.c
include/net/neighbour.h
net/core/neighbour.c