diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2015-07-01 11:36:57 +0200 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2015-07-08 10:09:56 +0300 |
commit | f56fc2d319b18d5e510988374929188867a5f930 (patch) | |
tree | c3a971d9a2374d11ab341bfe68e1e8bacb8326f8 /include/hw/virtio/virtio-net.h | |
parent | 220a8846429ac954932e16010efb07af0aba4529 (diff) | |
download | qemu-f56fc2d319b18d5e510988374929188867a5f930.zip qemu-f56fc2d319b18d5e510988374929188867a5f930.tar.gz qemu-f56fc2d319b18d5e510988374929188867a5f930.tar.bz2 |
virtio_net: reuse constants from linux
VIRTIO_NET_F_CTRL_GUEST_OFFLOADS now appears in the
linux header, let's reuse it.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'include/hw/virtio/virtio-net.h')
-rw-r--r-- | include/hw/virtio/virtio-net.h | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/include/hw/virtio/virtio-net.h b/include/hw/virtio/virtio-net.h index 280dacf..60b11d5 100644 --- a/include/hw/virtio/virtio-net.h +++ b/include/hw/virtio/virtio-net.h @@ -21,9 +21,6 @@ #define VIRTIO_NET(obj) \ OBJECT_CHECK(VirtIONet, (obj), TYPE_VIRTIO_NET) -#define VIRTIO_NET_F_CTRL_GUEST_OFFLOADS 2 /* Control channel offload - * configuration support */ - #define TX_TIMER_INTERVAL 150000 /* 150 us */ /* Limit the number of packets that can be sent via a single flush @@ -100,15 +97,6 @@ typedef struct VirtIONet { int announce_counter; } VirtIONet; -/* - * Control network offloads - * - * Dynamic offloads are available with the - * VIRTIO_NET_F_CTRL_GUEST_OFFLOADS feature bit. - */ -#define VIRTIO_NET_CTRL_GUEST_OFFLOADS 5 -#define VIRTIO_NET_CTRL_GUEST_OFFLOADS_SET 0 - void virtio_net_set_netclient_name(VirtIONet *n, const char *name, const char *type); |