s390/qeth: use correct length field in SNMP cmd callback
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 20 Aug 2019 14:46:37 +0000 (16:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 20:51:46 +0000 (13:51 -0700)
commit7c5f8ffb335747a8aabd8fb504a66b39aeaf4d21
treee55e8c160d4e9f70c6bc27a049fb54636c295740
parent12fc286f84b19ba61a8f64c80dc683cfb19f0251
s390/qeth: use correct length field in SNMP cmd callback

qeth_snmp_command_cb() is the only cmd callback that pulls the reply's
data length from a low-level transport header field. This requires
additional complexity (ie. reply->offset) to make the header accessible
to what is supposed to be a pure IPA cmd callback.

Adapter cmds have a length field in their sub-cmd header, get the data
length from there instead.

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