]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: use QUERY OAT for initial link info
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 17 Nov 2020 16:15:19 +0000 (17:15 +0100)
committerJakub Kicinski <kuba@kernel.org>
Thu, 19 Nov 2020 01:34:19 +0000 (17:34 -0800)
commit45b9470267e0fadc941243e6c5a05febdcf32fd9
tree8060abdeb5a77a6865229b96975af098dddc43ca
parentf10944e111f811be6ab3b319ae9a290bc33d874d
s390/qeth: use QUERY OAT for initial link info

Improve the initial link info with data obtained from QUERY OAT.
Doing so _only_ at initialization time avoids
1. dealing with multi-part replies, and
2. sifting through all the data that may get returned at runtime.

This allows us to determine the correct port type for the 1000BT variant
of recent OSA adapter generations (where the .card_type field in
QUERY CARD INFO is no longer sufficient).

Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_core_mpc.h