|
@@ -427,6 +427,9 @@ static int netdev_uevent(struct device *d, struct kobj_uevent_env *env)
|
|
struct net_device *dev = to_net_dev(d);
|
|
struct net_device *dev = to_net_dev(d);
|
|
int retval;
|
|
int retval;
|
|
|
|
|
|
|
|
+ if (!net_eq(dev_net(dev), &init_net))
|
|
|
|
+ return 0;
|
|
|
|
+
|
|
/* pass interface to uevent. */
|
|
/* pass interface to uevent. */
|
|
retval = add_uevent_var(env, "INTERFACE=%s", dev->name);
|
|
retval = add_uevent_var(env, "INTERFACE=%s", dev->name);
|
|
if (retval)
|
|
if (retval)
|