hw/net/e1000: Add readops/writeops typedefs
[qemu/ar7.git] / hw / net / vhost_net-stub.c
blobaac0e9822801a7710790cb0ab494e799f9a3be3f
1 /*
2 * vhost-net support
4 * Copyright Red Hat, Inc. 2010
6 * Authors:
7 * Michael S. Tsirkin <mst@redhat.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
13 #include "qemu/osdep.h"
14 #include "net/net.h"
15 #include "net/tap.h"
16 #include "net/vhost-user.h"
18 #include "hw/virtio/virtio-net.h"
19 #include "net/vhost_net.h"
20 #include "qemu/error-report.h"
23 uint64_t vhost_net_get_max_queues(VHostNetState *net)
25 return 1;
28 struct vhost_net *vhost_net_init(VhostNetOptions *options)
30 error_report("vhost-net support is not compiled in");
31 return NULL;
34 int vhost_net_start(VirtIODevice *dev,
35 NetClientState *ncs,
36 int total_queues)
38 return -ENOSYS;
40 void vhost_net_stop(VirtIODevice *dev,
41 NetClientState *ncs,
42 int total_queues)
46 void vhost_net_cleanup(struct vhost_net *net)
50 uint64_t vhost_net_get_features(struct vhost_net *net, uint64_t features)
52 return features;
55 void vhost_net_ack_features(struct vhost_net *net, uint64_t features)
59 uint64_t vhost_net_get_acked_features(VHostNetState *net)
61 return 0;
64 bool vhost_net_virtqueue_pending(VHostNetState *net, int idx)
66 return false;
69 void vhost_net_virtqueue_mask(VHostNetState *net, VirtIODevice *dev,
70 int idx, bool mask)
74 int vhost_net_notify_migration_done(struct vhost_net *net, char* mac_addr)
76 return -1;
79 VHostNetState *get_vhost_net(NetClientState *nc)
81 return 0;
84 int vhost_set_vring_enable(NetClientState *nc, int enable)
86 return 0;
89 int vhost_net_set_mtu(struct vhost_net *net, uint16_t mtu)
91 return 0;