]> git.baikalelectronics.ru Git - kernel.git/commit
net: ipa: record proper RX transaction count
authorAlex Elder <elder@linaro.org>
Thu, 12 May 2022 15:10:32 +0000 (10:10 -0500)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2022 11:01:42 +0000 (12:01 +0100)
commitb86ad35a274ce4020c1cd1559a3f217f187ff8ec
tree3b448a52788456b9a10be474fec9087a9336f384
parent6bd22ad605d5cd003347e41e78aa7771004e1d51
net: ipa: record proper RX transaction count

Each time we are notified that some number of transactions on an RX
channel has completed, we record the number of bytes that have been
transferred since the previous notification.  We also track the
number of transactions completed, but that is not currently being
calculated correctly; we're currently counting the number of such
notifications, but each notification can represent many transaction
completions.  Fix this.

Fixes: 31210ccab1a3d ("soc: qcom: ipa: the generic software interface")
Signed-off-by: Alex Elder <elder@linaro.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ipa/gsi.c