]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/netfilter/nfnetlink_queue.c
netns: Use net_eq() to compare net-namespaces for optimization.
[net-next-2.6.git] / net / netfilter / nfnetlink_queue.c
index 04e9c965f8caaa0b06f4e3f336adabd09d5f9a4a..8c860112ce05e85549caf068fb0d670e98d99328 100644 (file)
@@ -555,7 +555,7 @@ nfqnl_rcv_dev_event(struct notifier_block *this,
 {
        struct net_device *dev = ptr;
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 
        /* Drop any packets associated with the downed device */