]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitad6245da6e85a80dc09ec0a33d58b3bb690a61fd
tree3eb002149563610279593eaa4d64865348471cea
parent51c768747e1e06ea05d437d10adbbda5fb927a42
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