]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: introduce gsi_trans_tx_committed()
authorAlex Elder <elder@linaro.org>
Mon, 13 Jun 2022 17:17:56 +0000 (12:17 -0500)
committerDavid S. Miller <davem@davemloft.net>
Wed, 15 Jun 2022 08:07:58 +0000 (09:07 +0100)
commitdb050a5ec742add5472156966c698f210ee65869
treee2558615379c83a257ddcd2cfd8df8c4c4316d4a
parenta3b0c1b046abceb1b661722e8b877b0621933fb7
net: ipa: introduce gsi_trans_tx_committed()

Create a new function that encapsulates recording information needed
for TX channel statistics when a transaction is committed.

Record the accumulated length in the transaction before the call
(for both RX and TX), so it can be used when updating TX statistics.

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