android_kernel_samsung_sm8650/drivers/s390/net
Alexandra Winter 86818409f9 s390/qeth: Don't call dev_close/dev_open (DOWN/UP)
[ Upstream commit 1cfef80d4c2b2c599189f36f36320b205d9447d9 ]

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 12:08:17 +02:00
..
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:33:01 +01:00
ctcm_main.h
ctcm_mpc.c
ctcm_mpc.h
ctcm_sysfs.c
fsm.c s390: move from strlcpy with unused retval to strscpy 2022-08-30 22:00:33 +02:00
fsm.h
ism_drv.c net/smc: Pass on DMBE bit mask in IRQ handler 2022-07-27 13:24:42 +01:00
ism.h
Kconfig
lcs.c s390/lcs: Fix return type of lcs_start_xmit() 2022-12-31 13:33:01 +01:00
lcs.h
Makefile
netiucv.c s390/netiucv: Fix return type of netiucv_tx() 2022-12-31 13:33:01 +01:00
qeth_core_main.c s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 12:08:17 +02:00
qeth_core_mpc.c
qeth_core_mpc.h
qeth_core_sys.c
qeth_core.h s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 12:08:17 +02:00
qeth_ethtool.c s390: move from strlcpy with unused retval to strscpy 2022-08-30 22:00:33 +02:00
qeth_l2_main.c s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 12:08:17 +02:00
qeth_l2_sys.c
qeth_l2.h
qeth_l3_main.c s390/qeth: Don't call dev_close/dev_open (DOWN/UP) 2023-08-11 12:08:17 +02:00
qeth_l3_sys.c s390/qeth: Fix vipa deletion 2023-07-19 16:22:06 +02:00
qeth_l3.h
smsgiucv_app.c
smsgiucv.c
smsgiucv.h