s390/qeth: Fix initialization of vnicc cmd masks during set online
authorAlexandra Winter <wintera@linux.ibm.com>
Tue, 8 Oct 2019 16:21:07 +0000 (18:21 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 27 Jan 2020 13:51:18 +0000 (14:51 +0100)
commite4bf36f1e698c8c25a40774f7075a5b346030d7a
tree56c6cff300175600a2d5758f7819c245fa863462
parentcc28f819ad7f42d27cffe8bca66c5516368ee599
s390/qeth: Fix initialization of vnicc cmd masks during set online

[ Upstream commit be40a86c319706f90caca144343c64743c32b953 ]

Without this patch, a command bit in the supported commands mask is only
ever set to unsupported during set online. If a command is ever marked as
unsupported (e.g. because of error during qeth_l2_vnicc_query_cmds),
subsequent successful initialization (offline/online) would not bring it
back.

Fixes: caa1f0b10d18 ("s390/qeth: add VNICC enable/disable support")
Signed-off-by: Alexandra Winter <wintera@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/s390/net/qeth_l2_main.c