Commit d52e0001 authored by Pavel Emelyanov's avatar Pavel Emelyanov

net: Don't create lo on netns restore

For devices, that are available in netns we have a special
routine, that just restored link params.
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent cc4a922e
...@@ -337,10 +337,8 @@ static int restore_link(NetDeviceEntry *nde, int nlsk) ...@@ -337,10 +337,8 @@ static int restore_link(NetDeviceEntry *nde, int nlsk)
pr_info("Restoring link %s type %d\n", nde->name, nde->type); pr_info("Restoring link %s type %d\n", nde->name, nde->type);
switch (nde->type) { switch (nde->type) {
case ND_TYPE__LOOPBACK: case ND_TYPE__LOOPBACK: /* fallthrough */
return restore_one_link(nde, nlsk, NULL); case ND_TYPE__EXTLINK: /* see comment in protobuf/netdev.proto */
case ND_TYPE__EXTLINK:
/* see comment in protobuf/netdev.proto */
return restore_link_parms(nde, nlsk); return restore_link_parms(nde, nlsk);
case ND_TYPE__VETH: case ND_TYPE__VETH:
return restore_one_link(nde, nlsk, veth_link_info); return restore_one_link(nde, nlsk, veth_link_info);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment