]> err.no Git - linux-2.6/blobdiff - net/xfrm/xfrm_policy.c
net: use software GSO for SG+CSUM capable netdevices
[linux-2.6] / net / xfrm / xfrm_policy.c
index cae9fd81554350eb1893aa1da37ada7f646b5a08..841b32a2e680818aae4b3eb6d8d3d5504acb616c 100644 (file)
@@ -2360,7 +2360,7 @@ static int xfrm_dev_event(struct notifier_block *this, unsigned long event, void
 {
        struct net_device *dev = ptr;
 
-       if (dev_net(dev) != &init_net)
+       if (!net_eq(dev_net(dev), &init_net))
                return NOTIFY_DONE;
 
        switch (event) {