]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: consolidate completion of pending TX buffers
authorJulian Wiedmann <jwi@linux.ibm.com>
Fri, 11 Jun 2021 07:33:37 +0000 (09:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Fri, 11 Jun 2021 19:49:15 +0000 (12:49 -0700)
commitd01fb95093385c88dd4e9ba58dbe80b6eb649583
treee06a5089a51f53e14ad784e7d15036da5d2d0730
parent9c0c787ee2b1668e75cdf776b234141d1c01726e
s390/qeth: consolidate completion of pending TX buffers

With commit 850df83fb93a ("s390/qdio: let driver manage the QAOB")
a pending TX buffer now has access to its associated QAOB during
TX completion processing. We can thus reduce the amount of work & state
propagation that needs to be done by qeth_qdio_handle_aob().

Move all this logic into the respective TX completion paths. Doing so
even allows us to determine more precise TX_NOTIFY_* values via
qeth_compute_cq_notification(aob->aorc, ...).

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