summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorAlex Elder <elder@linaro.org>2022-02-03 20:09:22 +0300
committerDavid S. Miller <davem@davemloft.net>2022-02-04 13:16:08 +0300
commit6a606b90153b821915daade0b8f253d01d443d75 (patch)
treed0db175c200941713b31ea822a4d9679606ffdd7 /tools/perf/scripts/python/export-to-postgresql.py
parentb9dbabc5ca84087862cc3ea21bb718d2ef99fa2f (diff)
downloadlinux-6a606b90153b821915daade0b8f253d01d443d75.tar.xz
net: ipa: allocate transaction in replenish loop
When replenishing, have ipa_endpoint_replenish() allocate a transaction, and pass that to ipa_endpoint_replenish_one() to fill. Then, if that produces no error, commit the transaction within the replenish loop as well. In this way we can distinguish between transaction failures and buffer allocation/mapping failures. Failure to allocate a transaction simply means the hardware already has as many receive buffers as it can hold. In that case we can break out of the replenish loop because there's nothing more to do. If we fail to allocate or map pages for the receive buffer, just try again later. Signed-off-by: Alex Elder <elder@linaro.org> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions