]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
neigh: make struct neigh_table::entry_size unsigned int
authorAlexey Dobriyan <adobriyan@gmail.com>
Sat, 23 Sep 2017 20:01:06 +0000 (23:01 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 26 Sep 2017 03:36:17 +0000 (20:36 -0700)
commite451ae8e4f6b3f6bd3b83a5595657b5421b3bf69
tree1f89baee0025f07a34f2bff21b8194486f28fc3b
parent7c90584c66cc4b033a3b684b0e0950f79e7b7166
neigh: make struct neigh_table::entry_size unsigned int

Neigh entry size can't be negative.

Space savings:

add/remove: 0/0 grow/shrink: 0/5 up/down: 0/-7 (-7)
function                                     old     new   delta
lowpan_neigh_construct                        25      24      -1
clip_seq_sub_iter                            152     151      -1
clip_ioctl                                  1475    1474      -1
clip_constructor                              93      92      -1
__neigh_create                              2455    2452      -3

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/neighbour.h