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)
commit4e0f28e9ee4b6d690ba6d617e5d0524327d0d610
treee2558615379c83a257ddcd2cfd8df8c4c4316d4a
parent3eeabea6c895ee9f3f155fede65904d9bd54238a
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