net: move ptype_all into net_hotdata
[linux-2.6-microblaze.git] / net / core / net-procfs.c
index 2e4e96d..a97eceb 100644 (file)
@@ -3,6 +3,7 @@
 #include <linux/proc_fs.h>
 #include <linux/seq_file.h>
 #include <net/wext.h>
+#include <net/hotdata.h>
 
 #include "dev.h"
 
@@ -183,7 +184,7 @@ static void *ptype_get_idx(struct seq_file *seq, loff_t pos)
                }
        }
 
-       list_for_each_entry_rcu(pt, &ptype_all, list) {
+       list_for_each_entry_rcu(pt, &net_hotdata.ptype_all, list) {
                if (i == pos)
                        return pt;
                ++i;
@@ -231,13 +232,13 @@ static void *ptype_seq_next(struct seq_file *seq, void *v, loff_t *pos)
                        }
                }
 
-               nxt = ptype_all.next;
+               nxt = net_hotdata.ptype_all.next;
                goto ptype_all;
        }
 
        if (pt->type == htons(ETH_P_ALL)) {
 ptype_all:
-               if (nxt != &ptype_all)
+               if (nxt != &net_hotdata.ptype_all)
                        goto found;
                hash = 0;
                nxt = ptype_base[0].next;