Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e451ae8e authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by David S. Miller
Browse files

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: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 7c90584c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -190,7 +190,7 @@ struct neigh_hash_table {

struct neigh_table {
	int			family;
	int			entry_size;
	unsigned int		entry_size;
	int			key_len;
	__be16			protocol;
	__u32			(*hash)(const void *pkey,