mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
220a884642
commit
f56fc2d319
2 changed files with 16 additions and 12 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue