net: ipa: determine replenish doorbell differently
authorAlex Elder <elder@linaro.org>
Thu, 3 Feb 2022 17:09:27 +0000 (11:09 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 4 Feb 2022 10:16:08 +0000 (10:16 +0000)
commit9654d8c462ce24fc39bbecccc4c9b972f5c1b5f5
tree3eb002149563610279593eaa4d64865348471cea
parent5d6ac24fb10f04681ff584cd1bb5c2ac22ebe417
net: ipa: determine replenish doorbell differently

Rather than tracking the number of receive buffer transactions that
have been submitted without a doorbell, just track the total number
of transactions that have been issued.  Then ring the doorbell when
that number modulo the replenish batch size is 0.

The effect is roughly the same, but the new count is slightly more
interesting, and this approach will someday allow the replenish
batch size to be tuned at runtime.

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