OSDN Git Service

s390/qeth: set TX IRQ marker on last buffer in a group
authorJulian Wiedmann <jwi@linux.ibm.com>
Wed, 6 May 2020 08:09:47 +0000 (10:09 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 May 2020 21:11:26 +0000 (14:11 -0700)
commit6ee091efa7b59829448d0f9287ea62c1f448a318
tree15eb02e1f6366f99e3f3ac83dbd67a366c5aa328
parenta875fd1620ffb65f4e0d488f7fe1fba62cf9fedd
s390/qeth: set TX IRQ marker on last buffer in a group

When qeth_flush_buffers() gets called for a group of TX buffers
(currently up to 2 for OSA-style devices), the code iterates over each
buffer for some final processing.

During this processing, it sets the TX IRQ marker on the leading buffer
rather than the last one. This can result in delayed TX completion of
the trailing buffers. So pull the IRQ marker code out of the loop, and
apply it to the final buffer.

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