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)
commitd8290cbe1111105f92f0c8ab455bec8bf98d0630
tree3b448a52788456b9a10be474fec9087a9336f384
parent30b338ff7998b6ed7a90815870cd5db725f87168
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: 650d1603825d8 ("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