Skip to content

Commit 76cc714

Browse files
committed
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>
1 parent 596b9b6 commit 76cc714

3 files changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/atm/clip.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,6 @@ static u32 clip_hash(const void *pkey, const struct net_device *dev, __u32 rnd)
322322

323323
static struct neigh_table clip_tbl = {
324324
.family = AF_INET,
325-
.entry_size = sizeof(struct neighbour)+sizeof(struct atmarp_entry),
326325
.key_len = 4,
327326
.hash = clip_hash,
328327
.constructor = clip_constructor,

‎net/ipv4/arp.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ static const struct neigh_ops arp_broken_ops = {
164164

165165
struct neigh_table arp_tbl = {
166166
.family = AF_INET,
167-
.entry_size = sizeof(struct neighbour) + 4,
168167
.key_len = 4,
169168
.hash = arp_hash,
170169
.constructor = arp_constructor,

‎net/ipv6/ndisc.c‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ static const struct neigh_ops ndisc_direct_ops = {
126126

127127
struct neigh_table nd_tbl = {
128128
.family = AF_INET6,
129-
.entry_size = sizeof(struct neighbour) + sizeof(struct in6_addr),
130129
.key_len = sizeof(struct in6_addr),
131130
.hash = ndisc_hash,
132131
.constructor = ndisc_constructor,

0 commit comments

Comments
 (0)