mirror of
https://github.com/mii443/qemu.git
synced 2025-12-16 17:18:49 +00:00
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>
This commit is contained in:
committed by
Michael S. Tsirkin
parent
8bc43f39a9
commit
0165daae5c
@@ -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 */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user