mirror of
https://github.com/team-infusion-developers/android_kernel_samsung_msm8976.git
synced 2024-09-22 04:15:02 +00:00
[NETNS]: Fix loopback network namespace initialization.
The core patchset of the network namespace sent by Eric Biederman does not do dynamic loopback creation. So there is no call to alloc_netdev_mq which fills the network namespace field of the netdevice. This patch assign the loopback to the init network namespace. Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
36ac3135f5
commit
abf07acbb9
1 changed files with 1 additions and 0 deletions
|
@ -225,6 +225,7 @@ struct net_device loopback_dev = {
|
|||
| NETIF_F_LLTX
|
||||
| NETIF_F_NETNS_LOCAL,
|
||||
.ethtool_ops = &loopback_ethtool_ops,
|
||||
.nd_net = &init_net,
|
||||
};
|
||||
|
||||
/* Setup and register the loopback device. */
|
||||
|
|
Loading…
Reference in a new issue