• Alex Elder's avatar
    net: ipa: determine replenish doorbell differently · 9654d8c4
    Alex Elder authored
    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: default avatarAlex Elder <elder@linaro.org>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    9654d8c4
ipa_endpoint.c 53.2 KB