summary refs log tree commit diff stats
path: root/hw/net/vhost_net-stub.c
diff options
context:
space:
mode:
authorCindy Lu <lulu@redhat.com>2020-07-01 22:55:36 +0800
committerMichael S. Tsirkin <mst@redhat.com>2020-07-03 07:57:04 -0400
commit38140cc4d9713dc9af78090503105bf9c82b6bff (patch)
treee1fe32d1b9891a0f9febba6cd6438331f5a790a5 /hw/net/vhost_net-stub.c
parent7a471694a19d692bd68872d7d256d2086c9c72d4 (diff)
downloadfocaccia-qemu-38140cc4d9713dc9af78090503105bf9c82b6bff.tar.gz
focaccia-qemu-38140cc4d9713dc9af78090503105bf9c82b6bff.zip
vhost_net: introduce set_config & get_config
This patch introduces set_config & get_config  method which allows
vhost_net set/get the config to backend

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20200701145538.22333-13-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 'hw/net/vhost_net-stub.c')
-rw-r--r--hw/net/vhost_net-stub.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/hw/net/vhost_net-stub.c b/hw/net/vhost_net-stub.c
index aac0e98228..a7f4252630 100644
--- a/hw/net/vhost_net-stub.c
+++ b/hw/net/vhost_net-stub.c
@@ -52,6 +52,17 @@ uint64_t vhost_net_get_features(struct vhost_net *net, uint64_t features)
     return features;
 }
 
+int vhost_net_get_config(struct vhost_net *net,  uint8_t *config,
+                         uint32_t config_len)
+{
+    return 0;
+}
+int vhost_net_set_config(struct vhost_net *net, const uint8_t *data,
+                         uint32_t offset, uint32_t size, uint32_t flags)
+{
+    return 0;
+}
+
 void vhost_net_ack_features(struct vhost_net *net, uint64_t features)
 {
 }