summaryrefslogtreecommitdiffstats
path: root/include/net/net.h
diff options
context:
space:
mode:
authorCindy Lu2020-07-01 16:55:25 +0200
committerMichael S. Tsirkin2020-07-03 13:57:04 +0200
commit0165daae5c353bd0d2b72fb39993ece8a845ad75 (patch)
tree9b36d433626c07f9e0792242b6e185554561afcf /include/net/net.h
parentMAINTAINERS: add VT-d entry (diff)
downloadqemu-0165daae5c353bd0d2b72fb39993ece8a845ad75.tar.gz
qemu-0165daae5c353bd0d2b72fb39993ece8a845ad75.tar.xz
qemu-0165daae5c353bd0d2b72fb39993ece8a845ad75.zip
net: introduce qemu_get_peer
This is a small function that can get the peer from given NetClientState and queue_index Signed-off-by: Cindy Lu <lulu@redhat.com> Message-Id: <20200701145538.22333-2-lulu@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'include/net/net.h')
-rw-r--r--include/net/net.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/net/net.h b/include/net/net.h
index 39085d9444..e7ef42d62b 100644
--- a/include/net/net.h
+++ b/include/net/net.h
@@ -176,6 +176,7 @@ void hmp_info_network(Monitor *mon, const QDict *qdict);
void net_socket_rs_init(SocketReadState *rs,
SocketReadStateFinalize *finalize,
bool vnet_hdr);
+NetClientState *qemu_get_peer(NetClientState *nc, int queue_index);
/* NIC info */