cloud-hypervisor/net_util/src
Bo Chen 97b3c9b7b6 net_util: queue_pair: Simplify and fix the TX rate limiter
The TX rate limiter didn't correctly handle the `-EAGAIN` situation
where it should replenish the rate-limiter tokens. This patch simplifies
the TX rate-limiter code path by following the similar trade-off made in
the TX rate limiter, where we always let the `last` descriptor
go-through (even if it was over the rate limit. We simply stop
processing the oncoming `descriptors` if any.

Fixes: #2817

Signed-off-by: Bo Chen <chen.bo@intel.com>
2021-07-01 09:44:10 +01:00
..
ctrl_queue.rs clippy: Address the issue 'needless-borrow' 2021-06-24 08:55:43 +02:00
lib.rs misc: Upgrade to use the vm-memory crate w/ dirty-page-tracking 2021-06-03 08:34:45 +01:00
mac.rs clippy: Address the issue 'needless-borrow' 2021-06-24 08:55:43 +02:00
open_tap.rs misc: Remove unused errors from public interface 2021-05-11 13:37:19 +02:00
queue_pair.rs net_util: queue_pair: Simplify and fix the TX rate limiter 2021-07-01 09:44:10 +01:00
tap.rs clippy: Address the issue 'needless-borrow' 2021-06-24 08:55:43 +02:00