diff options
author | WANG Cong <xiyou.wangcong@gmail.com> | 2014-11-11 02:59:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-11-11 23:23:54 +0300 |
commit | d7480fd3b1738a8eae6a76098b17af318cf9b9cc (patch) | |
tree | 559ba1e8e583fec97c223f31b3657023e71febfb /net/decnet/dn_neigh.c | |
parent | b2e2f0c779fefede3a871781c8827bd8e76c7c0f (diff) | |
download | linux-d7480fd3b1738a8eae6a76098b17af318cf9b9cc.tar.xz |
neigh: remove dynamic neigh table registration support
Currently there are only three neigh tables in the whole kernel:
arp table, ndisc table and decnet neigh table. What's more,
we don't support registering multiple tables per family.
Therefore we can just make these tables statically built-in.
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/decnet/dn_neigh.c')
-rw-r--r-- | net/decnet/dn_neigh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c index c8121ceddb9e..7ca7c3143da3 100644 --- a/net/decnet/dn_neigh.c +++ b/net/decnet/dn_neigh.c @@ -591,7 +591,7 @@ static const struct file_operations dn_neigh_seq_fops = { void __init dn_neigh_init(void) { - neigh_table_init(&dn_neigh_table); + neigh_table_init(NEIGH_DN_TABLE, &dn_neigh_table); proc_create("decnet_neigh", S_IRUGO, init_net.proc_net, &dn_neigh_seq_fops); } @@ -599,5 +599,5 @@ void __init dn_neigh_init(void) void __exit dn_neigh_cleanup(void) { remove_proc_entry("decnet_neigh", init_net.proc_net); - neigh_table_clear(&dn_neigh_table); + neigh_table_clear(NEIGH_DN_TABLE, &dn_neigh_table); } |