[NET]: Make the device list and device lookups per namespace.
[deliverable/linux.git] / drivers / net / ifb.c
index f5c3598e59afd928d89085e841e45b62fc6c9b92..b06c6db4383ab4bb56591ea8a83b078e78087705 100644 (file)
@@ -34,6 +34,7 @@
 #include <linux/init.h>
 #include <linux/moduleparam.h>
 #include <net/pkt_sched.h>
+#include <net/net_namespace.h>
 
 #define TX_TIMEOUT  (2*HZ)
 
@@ -97,7 +98,7 @@ static void ri_tasklet(unsigned long dev)
                stats->tx_packets++;
                stats->tx_bytes +=skb->len;
 
-               skb->dev = __dev_get_by_index(skb->iif);
+               skb->dev = __dev_get_by_index(&init_net, skb->iif);
                if (!skb->dev) {
                        dev_kfree_skb(skb);
                        stats->tx_dropped++;
This page took 0.027974 seconds and 5 git commands to generate.