]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: simplify TX completion statistics
authorAlex Elder <elder@linaro.org>
Mon, 13 Jun 2022 17:17:57 +0000 (12:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2022 08:07:58 +0000 (09:07 +0100)
commitf72a23949cc1f0188f12c9ed8683bc5658619b9a
treea3ce7db8a414bbbe0ad7bf9cf16a1ea10380c412
parent5b872f27c1624348c21c19976c910b9c170fc806
net: ipa: simplify TX completion statistics

When a TX request is issued, its channel's accumulated byte and
transaction counts are recorded.  This currently does *not* take
into account the transaction being committed.

Later, when the transaction completes, the number of bytes and
transactions that have completed since the transaction was committed
are reported to the network stack.  The transaction and its byte
count are accounted for at that time.

Instead, record the transaction and its bytes in the counts recorded
at commit time.  This avoids the need to do so when the transaction
completes, and provides a (small) simplification of that code.

Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.c