]> 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)
commitfc2b691e6a46f7388a0eddc99e9c84ed084c787f
tree3b448a52788456b9a10be474fec9087a9336f384
parent94c0ad2052254b82be6d6327276a950419072b91
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: e00b9408001bc ("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