aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/neighbour.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/core/neighbour.c')
-rw-r--r--net/core/neighbour.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/net/core/neighbour.c b/net/core/neighbour.c
index f35377b643e4..6cee6434da67 100644
--- a/net/core/neighbour.c
+++ b/net/core/neighbour.c
@@ -771,6 +771,8 @@ static __inline__ int neigh_max_probes(struct neighbour *n)
771} 771}
772 772
773static void neigh_invalidate(struct neighbour *neigh) 773static void neigh_invalidate(struct neighbour *neigh)
774 __releases(neigh->lock)
775 __acquires(neigh->lock)
774{ 776{
775 struct sk_buff *skb; 777 struct sk_buff *skb;
776 778
@@ -2417,8 +2419,7 @@ EXPORT_SYMBOL(neigh_seq_stop);
2417 2419
2418static void *neigh_stat_seq_start(struct seq_file *seq, loff_t *pos) 2420static void *neigh_stat_seq_start(struct seq_file *seq, loff_t *pos)
2419{ 2421{
2420 struct proc_dir_entry *pde = seq->private; 2422 struct neigh_table *tbl = seq->private;
2421 struct neigh_table *tbl = pde->data;
2422 int cpu; 2423 int cpu;
2423 2424
2424 if (*pos == 0) 2425 if (*pos == 0)
@@ -2435,8 +2436,7 @@ static void *neigh_stat_seq_start(struct seq_file *seq, loff_t *pos)
2435 2436
2436static void *neigh_stat_seq_next(struct seq_file *seq, void *v, loff_t *pos) 2437static void *neigh_stat_seq_next(struct seq_file *seq, void *v, loff_t *pos)
2437{ 2438{
2438 struct proc_dir_entry *pde = seq->private; 2439 struct neigh_table *tbl = seq->private;
2439 struct neigh_table *tbl = pde->data;
2440 int cpu; 2440 int cpu;
2441 2441
2442 for (cpu = *pos; cpu < nr_cpu_ids; ++cpu) { 2442 for (cpu = *pos; cpu < nr_cpu_ids; ++cpu) {
@@ -2455,8 +2455,7 @@ static void neigh_stat_seq_stop(struct seq_file *seq, void *v)
2455 2455
2456static int neigh_stat_seq_show(struct seq_file *seq, void *v) 2456static int neigh_stat_seq_show(struct seq_file *seq, void *v)
2457{ 2457{
2458 struct proc_dir_entry *pde = seq->private; 2458 struct neigh_table *tbl = seq->private;
2459 struct neigh_table *tbl = pde->data;
2460 struct neigh_statistics *st = v; 2459 struct neigh_statistics *st = v;
2461 2460
2462 if (v == SEQ_START_TOKEN) { 2461 if (v == SEQ_START_TOKEN) {
@@ -2501,7 +2500,7 @@ static int neigh_stat_seq_open(struct inode *inode, struct file *file)
2501 2500
2502 if (!ret) { 2501 if (!ret) {
2503 struct seq_file *sf = file->private_data; 2502 struct seq_file *sf = file->private_data;
2504 sf->private = PDE(inode); 2503 sf->private = PDE(inode)->data;
2505 } 2504 }
2506 return ret; 2505 return ret;
2507}; 2506};
@@ -2559,9 +2558,11 @@ EXPORT_SYMBOL(neigh_app_ns);
2559 2558
2560#ifdef CONFIG_SYSCTL 2559#ifdef CONFIG_SYSCTL
2561 2560
2561#define NEIGH_VARS_MAX 19
2562
2562static struct neigh_sysctl_table { 2563static struct neigh_sysctl_table {
2563 struct ctl_table_header *sysctl_header; 2564 struct ctl_table_header *sysctl_header;
2564 struct ctl_table neigh_vars[__NET_NEIGH_MAX]; 2565 struct ctl_table neigh_vars[NEIGH_VARS_MAX];
2565 char *dev_name; 2566 char *dev_name;
2566} neigh_sysctl_template __read_mostly = { 2567} neigh_sysctl_template __read_mostly = {
2567 .neigh_vars = { 2568 .neigh_vars = {
@@ -2678,8 +2679,7 @@ static struct neigh_sysctl_table {
2678}; 2679};
2679 2680
2680int neigh_sysctl_register(struct net_device *dev, struct neigh_parms *p, 2681int neigh_sysctl_register(struct net_device *dev, struct neigh_parms *p,
2681 int p_id, int pdev_id, char *p_name, 2682 char *p_name, proc_handler *handler)
2682 proc_handler *handler)
2683{ 2683{
2684 struct neigh_sysctl_table *t; 2684 struct neigh_sysctl_table *t;
2685 const char *dev_name_source = NULL; 2685 const char *dev_name_source = NULL;