|
|
@@ -8599,6 +8599,9 @@ int init_dummy_netdev(struct net_device *dev)
|
|
|
set_bit(__LINK_STATE_PRESENT, &dev->state);
|
|
|
set_bit(__LINK_STATE_START, &dev->state);
|
|
|
|
|
|
+ /* napi_busy_loop stats accounting wants this */
|
|
|
+ dev_net_set(dev, &init_net);
|
|
|
+
|
|
|
/* Note : We dont allocate pcpu_refcnt for dummy devices,
|
|
|
* because users of this 'device' dont need to change
|
|
|
* its refcount.
|