diff options
author | Julian Wiedmann | 2018-02-09 11:03:50 +0100 |
---|---|---|
committer | David S. Miller | 2018-02-09 20:30:23 +0100 |
commit | 1c5b2216fbb973a9410e0b06389740b5c1289171 (patch) | |
tree | 577be160ca8f5a410d2d10eeb911c0c7286eb36a /drivers/s390/net/qeth_core.h | |
parent | s390/qeth: fix underestimated count of buffer elements (diff) | |
download | kernel-qcow2-linux-1c5b2216fbb973a9410e0b06389740b5c1289171.tar.gz kernel-qcow2-linux-1c5b2216fbb973a9410e0b06389740b5c1289171.tar.xz kernel-qcow2-linux-1c5b2216fbb973a9410e0b06389740b5c1289171.zip |
s390/qeth: fix SETIP command handling
send_control_data() applies some special handling to SETIP v4 IPA
commands. But current code parses *all* command types for the SETIP
command code. Limit the command code check to IPA commands.
Fixes: 5b54e16f1a54 ("qeth: do not spin for SETIP ip assist command")
Signed-off-by: Julian Wiedmann <jwi@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_core.h')
-rw-r--r-- | drivers/s390/net/qeth_core.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/s390/net/qeth_core.h b/drivers/s390/net/qeth_core.h index c33fbc4c2e91..959c65cf75d9 100644 --- a/drivers/s390/net/qeth_core.h +++ b/drivers/s390/net/qeth_core.h @@ -591,6 +591,11 @@ struct qeth_cmd_buffer { void (*callback) (struct qeth_channel *, struct qeth_cmd_buffer *); }; +static inline struct qeth_ipa_cmd *__ipa_cmd(struct qeth_cmd_buffer *iob) +{ + return (struct qeth_ipa_cmd *)(iob->data + IPA_PDU_HEADER_SIZE); +} + /** * definition of a qeth channel, used for read and write */ |