]> git.proxmox.com Git - mirror_qemu.git/commit - net/net.c
net: introduce qemu_get_peer
authorCindy Lu <lulu@redhat.com>
Wed, 1 Jul 2020 14:55:25 +0000 (22:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 3 Jul 2020 11:57:04 +0000 (07:57 -0400)
commit0165daae5c353bd0d2b72fb39993ece8a845ad75
tree9b36d433626c07f9e0792242b6e185554561afcf
parent8bc43f39a911036467b95abcac59f22240ac1957
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>
include/net/net.h
net/net.c