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:
Zhe Weng 2023-11-29 14:36:26 +08:00 committed by Xiang Xiao
parent 53beaf1a67
commit bd19065933
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}