]> 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)
commitbad849f53206dc081a1152b95bad7650a1401476
tree3eb002149563610279593eaa4d64865348471cea
parent955775f1f45881a3e978b7efdf51c0bfb82cc27d
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