diff options
author | Julian Wiedmann <jwi@linux.ibm.com> | 2019-08-20 17:46:36 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2019-08-20 23:51:46 +0300 |
commit | 12fc286f84b19ba61a8f64c80dc683cfb19f0251 (patch) | |
tree | 618583077c5f5bf4c7e5cd28e2479f9e6dc77e1c /drivers/s390/net/qeth_l2_main.c | |
parent | afc1f67b99d59c4ddd29013fbb404032b4b6d08e (diff) | |
download | linux-12fc286f84b19ba61a8f64c80dc683cfb19f0251.tar.xz |
s390/qeth: propagate length of processed cmd IO data to callback
When an cmd IO completes in qeth_irq(), calculate how much data was
processed by the device and pass this value to the cmd's callback.
This allows cmds that retrieve data from the device to check whether
sufficient data was received, so we do that in qeth_read_conf_data_cb().
Suggested-by: Jens Remus <jremus@linux.ibm.com>
Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/s390/net/qeth_l2_main.c')
-rw-r--r-- | drivers/s390/net/qeth_l2_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/s390/net/qeth_l2_main.c b/drivers/s390/net/qeth_l2_main.c index cbead3d1b2fd..c524c8bff3c7 100644 --- a/drivers/s390/net/qeth_l2_main.c +++ b/drivers/s390/net/qeth_l2_main.c @@ -1000,7 +1000,8 @@ struct qeth_discipline qeth_l2_discipline = { EXPORT_SYMBOL_GPL(qeth_l2_discipline); static void qeth_osn_assist_cb(struct qeth_card *card, - struct qeth_cmd_buffer *iob) + struct qeth_cmd_buffer *iob, + unsigned int data_length) { qeth_notify_reply(iob->reply, 0); qeth_put_cmd(iob); |