]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: propagate length of processed cmd IO data to callback
authorJulian Wiedmann <jwi@linux.ibm.com>
Tue, 20 Aug 2019 14:46:36 +0000 (16:46 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Aug 2019 20:51:46 +0000 (13:51 -0700)
commit5a88be4c993a987662f1a1d04e70865788989b46
tree618583077c5f5bf4c7e5cd28e2479f9e6dc77e1c
parentc3d3f63e4a7a68e664f54c653a492641133f0f93
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>
drivers/s390/net/qeth_core.h
drivers/s390/net/qeth_core_main.c
drivers/s390/net/qeth_l2_main.c