make netlayer re-entrant
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest5 patches 9 repliesIn review
- v13 patches 17 repliesSuperseded
Changes in v2 from the cover letter
Because the NetQueue is exposed not just from qemu_send_queue_xx(), so separating locks -- use NetQueue(NetQueue->lock) to protect the queue, and use nc->send_lock for the access of nc->peer so we can protect the sender from the remover.
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | net: spread hub on AioContextshw/ include/ include/ +5 more | +59 | 3 replies | |
| 2/5 | net: hub use lock to protect ports listnet/ | +26 | 1 reply | |
| 3/5 | net: introduce lock to protect NetQueuenet/ | +11 | 0 replies | |
| 4/5 | net: introduce lock to protect NetClientState's peer's accessinclude/ net/ net/ +1 more | +97 | 4 replies | |
| 5/5 | net: make netclient re-entrant with refcnthw/ include/ net/ +2 more | +65 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.
Cover letter [Qemu-devel] [PATCH v2 0/5] make netlayer re-entrant
From: Liu Ping Fan <[email protected]>
changes v1->v2
Because the NetQueue is exposed not just from qemu_send_queue_xx(), so separating locks -- use NetQueue(NetQueue->lock) to protect the queue, and use nc->send_lock for the access of nc->peer so we can protect the sender from the remover.
Question:
Use AioContexts for hub or the raw GSource
Liu Ping Fan (5):
net: spread hub on AioContexts
net: hub use lock to protect ports list
net: introduce lock to protect NetQueue
net: introduce lock to protect NetClientState's peer's access
net: make netclient re-entrant with refcnt
hw/qdev-properties-system.c | 15 +++++ include/block/aio.h | 1 + include/net/net.h | 12 ++++ include/net/queue.h | 14 +++++ main-loop.c | 5 ++ net/hub.c | 81 +++++++++++++++++++++++++++-- net/net.c | 122 ++++++++++++++++++++++++++++++++++++++++-- net/queue.c | 19 +++++-- net/slirp.c | 3 +- 9 files changed, 257 insertions(+), 15 deletions(-)
Signature · 1 line
1.7.4.4