mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-25 09:21:15 +00:00
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> |
||
---|---|---|
.. | ||
ctrl_queue.rs | ||
lib.rs | ||
mac.rs | ||
open_tap.rs | ||
queue_pair.rs | ||
tap.rs |