mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
b927dceed8
In order to prepare for the support of multithreaded multiqueues, the structure VhostUserNetThread is simplified to hold only one RX queue, one TX queue, and one TAP interface. Following this change, VhostUserNetBackend now holds a list of threads instead of going through each thread to handle multiqueues. These changes decouple neatly the abstraction between the backend and each thread. This allows for a lot of simplification since we now know all threads are identical, hence the handling of events becomes very straightforward. One important point is that each thread can be locked when in use, without causing any contention with other threads since the backend doesn't need to be locked anymore. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |