[NET]: Make the device list and device lookups per namespace.
[deliverable/linux.git] / drivers / net / shaper.c
index 4c3d98ff4cd48bab194c6f521e94b1522cd71203..3773b3858bd4a84f5edfbb900a64871b9f7ea646 100644 (file)
@@ -86,6 +86,7 @@
 
 #include <net/dst.h>
 #include <net/arp.h>
+#include <net/net_namespace.h>
 
 struct shaper_cb {
        unsigned long   shapeclock;             /* Time it should go out */
@@ -488,7 +489,7 @@ static int shaper_ioctl(struct net_device *dev,  struct ifreq *ifr, int cmd)
        {
                case SHAPER_SET_DEV:
                {
-                       struct net_device *them=__dev_get_by_name(ss->ss_name);
+                       struct net_device *them=__dev_get_by_name(&init_net, ss->ss_name);
                        if(them==NULL)
                                return -ENODEV;
                        if(sh->dev)
This page took 0.029017 seconds and 5 git commands to generate.