neigh: Do not set tbl->entry_size in ipv4/ipv6 neigh tables.
Let the core self-size the neigh entry based upon the key length. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
596b9b68ef
commit
76cc714ed5
@@ -126,7 +126,6 @@ static const struct neigh_ops ndisc_direct_ops = {
|
||||
|
||||
struct neigh_table nd_tbl = {
|
||||
.family = AF_INET6,
|
||||
.entry_size = sizeof(struct neighbour) + sizeof(struct in6_addr),
|
||||
.key_len = sizeof(struct in6_addr),
|
||||
.hash = ndisc_hash,
|
||||
.constructor = ndisc_constructor,
|
||||
|
Reference in New Issue
Block a user