net/loopback: Fix flags of lo device
netdev_register will set IFF_LOOPBACK in d_flags, we should not just change it into IFF_UP only. Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
parent
53beaf1a67
commit
bd19065933
|
@ -357,7 +357,7 @@ int localhost_initialize(void)
|
|||
|
||||
/* Put the network in the UP state */
|
||||
|
||||
priv->lo_dev.d_flags = IFF_UP;
|
||||
IFF_SET_UP(priv->lo_dev.d_flags);
|
||||
return lo_ifup(&priv->lo_dev);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue