]> git.ipfire.org Git - thirdparty/qemu.git/commit
net: asynchronous send/receive infrastructure for net/socket.c
authorStefan Hajnoczi <stefanha@linux.vnet.ibm.com>
Mon, 20 Aug 2012 09:21:54 +0000 (10:21 +0100)
committerStefan Hajnoczi <stefanha@gmail.com>
Fri, 14 Sep 2012 07:40:33 +0000 (08:40 +0100)
commit863f678fba4191f3b695620f41056cb7c124425d
tree930c9a15af27bf313ca7749793a5e655afb471a2
parent61518a74ca98870e8ff132f91dd5dda252e31f58
net: asynchronous send/receive infrastructure for net/socket.c

The net/socket.c net client is not truly asynchronous.  This patch
borrows the qemu_set_fd_handler2() code from net/tap.c as the basis for
proper asynchronous send/receive.

Only read packets from the socket when the peer is able to receive.
This avoids needless queuing.

Later patches implement asynchronous send.

Signed-off-by: Stefan Hajnoczi <stefanha@linux.vnet.ibm.com>
net/socket.c