]> 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)
commitef809cecb4bcc9a87a87cc83e7a9c4e5a7398f5c
tree15eb02e1f6366f99e3f3ac83dbd67a366c5aa328
parente2c087ecbb39e9388001e5891d254f742a7b797a
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