]> git.baikalelectronics.ru Git - kernel.git/commit
net-loopback: set lo dev initial state to UP
authorJian Yang <jianyang@google.com>
Mon, 1 Feb 2021 23:34:45 +0000 (15:34 -0800)
committerJakub Kicinski <kuba@kernel.org>
Fri, 5 Feb 2021 02:37:08 +0000 (18:37 -0800)
commit7803977d05b9c707aeba50f910c7c8db7d63d00a
treed8ced9584683d96f1c0ce1ea4fb6df319c2e4dcc
parent4b8c0ec7bf9927932246e51f77eb0c19ecbaeabf
net-loopback: set lo dev initial state to UP

Traditionally loopback devices come up with initial state as DOWN for
any new network-namespace. This would mean that anyone needing this
device would have to bring this UP by issuing something like 'ip link
set lo up'. This can be avoided if the initial state is set as UP.

Signed-off-by: Mahesh Bandewar <maheshb@google.com>
Signed-off-by: Jian Yang <jianyang@google.com>
Link: https://lore.kernel.org/r/20210201233445.2044327-1-jianyang.kernel@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/loopback.c