neighbour: remove neigh_cleanup() method
authorEric Dumazet <edumazet@google.com>
Sat, 7 Dec 2019 20:23:21 +0000 (12:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 31 Dec 2019 15:41:37 +0000 (16:41 +0100)
commita073350c5f3b0b0b3c58e42ccd886fd6450575a9
tree2698103af8296dbdf75da28d82bf992d715a97ee
parent37a56610e96d71d976d989ed70a5a4fc9d07f66a
neighbour: remove neigh_cleanup() method

[ Upstream commit f394722fb0d0f701119368959d7cd0ecbc46363a ]

neigh_cleanup() has not been used for seven years, and was a wrong design.

Messing with shared pointer in bond_neigh_init() without proper
memory barriers would at least trigger syzbot complains eventually.

It is time to remove this stuff.

Fixes: b63b70d87741 ("IPoIB: Use a private hash table for path lookup in xmit path")
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/bonding/bond_main.c
include/net/neighbour.h
net/core/neighbour.c