aboutsummaryrefslogtreecommitdiff
path: root/include/net
diff options
context:
space:
mode:
authorJason Wang <jasowang@redhat.com>2021-10-20 12:55:55 +0800
committerMichael S. Tsirkin <mst@redhat.com>2021-10-20 04:44:05 -0400
commit2f849dbdb2ab2c70715520a8129524f197b9a8ba (patch)
tree442dc7b43b2e65a732a4cd5d29b2fa0cb6fb14a2 /include/net
parent654790b65b8435a7d409b1873b566e8db9e91b9b (diff)
downloadqemu-2f849dbdb2ab2c70715520a8129524f197b9a8ba.zip
qemu-2f849dbdb2ab2c70715520a8129524f197b9a8ba.tar.gz
qemu-2f849dbdb2ab2c70715520a8129524f197b9a8ba.tar.bz2
net: introduce control client
This patch introduces a boolean for the device has control queue which can accepts control command via network queue. The first user would be the control virtqueue support for vhost. Signed-off-by: Jason Wang <jasowang@redhat.com> Message-Id: <20211020045600.16082-6-jasowang@redhat.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/net')
-rw-r--r--include/net/net.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/net/net.h b/include/net/net.h
index 986288e..523136c 100644
--- a/include/net/net.h
+++ b/include/net/net.h
@@ -105,6 +105,7 @@ struct NetClientState {
int vnet_hdr_len;
bool is_netdev;
bool do_not_pad; /* do not pad to the minimum ethernet frame length */
+ bool is_datapath;
QTAILQ_HEAD(, NetFilterState) filters;
};
@@ -136,6 +137,10 @@ NetClientState *qemu_new_net_client(NetClientInfo *info,
NetClientState *peer,
const char *model,
const char *name);
+NetClientState *qemu_new_net_control_client(NetClientInfo *info,
+ NetClientState *peer,
+ const char *model,
+ const char *name);
NICState *qemu_new_nic(NetClientInfo *info,
NICConf *conf,
const char *model,