mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05:35:20 +00:00
97b3c9b7b6
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> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |