]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sched/sch_api.c
[NET]: Make /proc/net per network namespace
[net-next-2.6.git] / net / sched / sch_api.c
index dee0d5fb39c555a5f1f60eaaf4f4dd3df9ae666d..efc383c58f1e4d8bd7b864b6b2d8d469ae87b5a2 100644 (file)
@@ -28,6 +28,7 @@
 #include <linux/list.h>
 #include <linux/hrtimer.h>
 
+#include <net/net_namespace.h>
 #include <net/netlink.h>
 #include <net/pkt_sched.h>
 
@@ -1251,7 +1252,7 @@ static int __init pktsched_init(void)
 {
        register_qdisc(&pfifo_qdisc_ops);
        register_qdisc(&bfifo_qdisc_ops);
-       proc_net_fops_create("psched", 0, &psched_fops);
+       proc_net_fops_create(&init_net, "psched", 0, &psched_fops);
 
        rtnl_register(PF_UNSPEC, RTM_NEWQDISC, tc_modify_qdisc, NULL);
        rtnl_register(PF_UNSPEC, RTM_DELQDISC, tc_get_qdisc, NULL);