mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-23 07:01:23 +00:00
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>
This commit is contained in:
parent
b2e2f0c779
commit
d7480fd3b1
5 changed files with 133 additions and 149 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue