]> 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)
commitc1bd1ff76045f6d71a292a999461d9ba9b97c23a
treebf1b23bee76cf5f2f8591527f1559360dfa8b485
parentbc04d431b3f20640679078765a8da15e83fcc5f0
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