mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04: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 <[email protected]> Signed-off-by: Cong Wang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
b2e2f0c779
commit
d7480fd3b1
5 changed files with 126 additions and 142 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…
Reference in a new issue