cloud-hypervisor/net_util
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
..
src net_util: queue_pair: Simplify and fix the TX rate limiter 2021-07-01 09:44:10 +01:00
Cargo.toml build: bump libc from 0.2.96 to 0.2.97 2021-06-14 09:50:38 +00:00