]> git.baikalelectronics.ru Git - kernel.git/commit
s390/qeth: fix packing buffer statistics
authorJulian Wiedmann <jwi@linux.vnet.ibm.com>
Tue, 20 Jun 2017 14:00:32 +0000 (16:00 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 20 Jun 2017 19:44:03 +0000 (15:44 -0400)
commitef705b6e5d30ab14cd99662affa6e9757d10e7cc
treebf1b23bee76cf5f2f8591527f1559360dfa8b485
parentfbabf78702e4831e706d808515fc5a49fdc1f2a4
s390/qeth: fix packing buffer statistics

There's two spots in qeth_send_packet() where we don't accurately
account for transmitted packing buffers in qeth's performance
statistics:

1) when flushing the current buffer due to insufficient size,
   and the next buffer is not EMPTY, we need to account for that
   flushed buffer.
2) when synchronizing with the TX completion code, we reset
   flush_count and thus forget to account for any previously
   flushed buffers.

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