Skip to content

RFC port network layer onto glib

Liu Ping Fan qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v3 RFC Latest5 patches 8 repliesIn review

Changes in v3 from the cover letter

1.drop hub and the frontend(virtio net)
2.split the patch for NetClientSource

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5net: introduce glib function for networkinclude/net/net.h net/net.c+76 -01 reply
2/5net: port tap onto glibnet/tap.c+47 -110 replies
3/5net: resolve race of tap backend and its peernet/tap.c+5 -00 replies
4/5net: port vde onto glibnet/vde.c+14 -10 replies
5/5net: port socket to glibnet/socket.c+116 -360 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [Qemu-devel] [RFC PATCH v3 0/5] port network layer onto glib

This series focus on network backend (excluding slirp). The related patch for core's re-entrant (queue.c net.c) will be sent out separatelly.

The choice between GSource or AioContext is not decided yet. If we choose AioContext, I think we need to expand extra interface for readable() and writable(). readable() is different from io_flush, which causes block for sync, but this sync is not neccessary for NetWork.

v2->v3:
1.drop hub and the frontend(virtio net)
2.split the patch for NetClientSource

v1->v2:
1.NetClientState can associate with up to 2 GSource, for virtio net, one for tx, one for rx,
so vq can run on different threads.
2.make network front-end onto glib, currently virtio net dataplane

Liu Ping Fan (5):
net: introduce glib function for network
net: port tap onto glib
net: resolve race of tap backend and its peer
net: port vde onto glib
net: port socket to glib

 include/net/net.h |   15 +++++
 net/net.c         |   61 +++++++++++++++++++++
 net/socket.c      |  152 ++++++++++++++++++++++++++++++++++++++++-------------
 net/tap.c         |   63 ++++++++++++++++++----
 net/vde.c         |   15 +++++-
 5 files changed, 258 insertions(+), 48 deletions(-)
Signature · 1 line
1.7.4.4