WSL2-Linux-Kernel/drivers/s390/net
Alexandra Winter 64e3affee2 s390/qeth: Don't call dev_close/dev_open (DOWN/UP)
[ Upstream commit 1cfef80d4c ]

dev_close() and dev_open() are issued to change the interface state to DOWN
or UP (dev->flags IFF_UP). When the netdev is set DOWN it loses e.g its
Ipv6 addresses and routes. We don't want this in cases of device recovery
(triggered by hardware or software) or when the qeth device is set
offline.

Setting a qeth device offline or online and device recovery actions call
netif_device_detach() and/or netif_device_attach(). That will reset or
set the LOWER_UP indication i.e. change the dev->state Bit
__LINK_STATE_PRESENT. That is enough to e.g. cause bond failovers, and
still preserves the interface settings that are handled by the network
stack.

Don't call dev_open() nor dev_close() from the qeth device driver. Let the
network stack handle this.

Fixes: d4560150cb ("s390/qeth: call dev_close() during recovery")
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Reviewed-by: Wenjia Zhang <wenjia@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-08-11 15:13:53 +02:00
..
Kconfig
Makefile
ctcm_dbug.c
ctcm_dbug.h
ctcm_fsms.c
ctcm_fsms.h
ctcm_main.c s390/ctcm: Fix return type of ctc{mp,}m_tx() 2022-12-31 13:14:41 +01:00
ctcm_main.h
ctcm_mpc.c s390/ctcm: fix potential memory leak 2022-05-18 10:26:50 +02:00
ctcm_mpc.h
ctcm_sysfs.c s390/ctcm: fix variable dereferenced before check 2022-05-18 10:26:50 +02:00
fsm.c
fsm.h
ism.h
ism_drv.c
lcs.c s390/lcs: Fix return type of lcs_start_xmit() 2022-12-31 13:14:41 +01:00
lcs.h
netiucv.c s390/netiucv: Fix return type of netiucv_tx() 2022-12-31 13:14:41 +01:00
qeth_core.h s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 15:13:53 +02:00
qeth_core_main.c s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 15:13:53 +02:00
qeth_core_mpc.c
qeth_core_mpc.h
qeth_core_sys.c
qeth_ethtool.c
qeth_l2.h
qeth_l2_main.c s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 15:13:53 +02:00
qeth_l2_sys.c
qeth_l3.h
qeth_l3_main.c s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 15:13:53 +02:00
qeth_l3_sys.c s390/qeth: Fix vipa deletion 2023-07-23 13:47:30 +02:00
smsgiucv.c
smsgiucv.h
smsgiucv_app.c