]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite0fce897082281c91470238813d4345b4414eff8
tree15eb02e1f6366f99e3f3ac83dbd67a366c5aa328
parent347eb4985cd02bee35b63c279482e402a44c0329
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