]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: don't clear the configured isolation mode
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 14 Jul 2020 14:22:59 +0000 (16:22 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Jul 2020 21:53:45 +0000 (14:53 -0700)
commit4fc8afc79f32ccae4aac843c3674cd26c9598810
treee95233dc1cc95657855e2eda62a19b3193e69b1c
parent6420ea8407127d92dc409e26d0ca7b8e5d0b4825
s390/qeth: don't clear the configured isolation mode

When qeth_set_access_ctrl_online() is called during the device's
initialization and discovers that isolation mode isn't supported, don't
clear the user's currently configured mode.
They intentionally choose to operate the device in this specific mode,
and degrading the isolation is not an option.

Only adjust the configuration when called via sysfs (ie. fallback = 1),
and here follow the common pattern and restore it from prev_isolation.

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/qeth_core_main.c