DPDK  2.2.0
Data Fields
virtio_net Struct Reference

#include <rte_virtio_net.h>

Data Fields

struct virtio_memorymem
uint64_t features
uint64_t protocol_features
uint64_t device_fh
uint32_t flags
char ifname [IF_NAME_SZ]
uint32_t virt_qp_nb
void * priv
uint64_t reserved [64]
struct vhost_virtqueuevirtqueue [VHOST_MAX_QUEUE_PAIRS *2]

Detailed Description

Device structure contains all configuration information relating to the device.

Examples:
tep_termination/main.c, tep_termination/vxlan_setup.c, vhost/main.c, vhost_xen/main.c, and vhost_xen/vhost_monitor.c.

Definition at line 122 of file rte_virtio_net.h.

Field Documentation

struct virtio_memory* mem

QEMU memory and memory region information.

Examples:
vhost/main.c.

Definition at line 123 of file rte_virtio_net.h.

uint64_t features

Negotiated feature set.

Definition at line 124 of file rte_virtio_net.h.

uint64_t protocol_features

Negotiated protocol feature set.

Definition at line 125 of file rte_virtio_net.h.

uint64_t device_fh

device identifier.

Examples:
tep_termination/main.c, tep_termination/vxlan_setup.c, vhost/main.c, and vhost_xen/main.c.

Definition at line 126 of file rte_virtio_net.h.

uint32_t flags

Device flags. Only used to check if device is running on data core.

Examples:
tep_termination/main.c, vhost/main.c, and vhost_xen/main.c.

Definition at line 127 of file rte_virtio_net.h.

char ifname[IF_NAME_SZ]

Name of the tap device or socket path.

Definition at line 129 of file rte_virtio_net.h.

uint32_t virt_qp_nb

number of queue pair we have allocated

Definition at line 130 of file rte_virtio_net.h.

void* priv

private context

Examples:
tep_termination/main.c, and vhost/main.c.

Definition at line 131 of file rte_virtio_net.h.

uint64_t reserved[64]

Reserve some spaces for future extension.

Definition at line 132 of file rte_virtio_net.h.

struct vhost_virtqueue* virtqueue[VHOST_MAX_QUEUE_PAIRS *2]

Contains all virtqueue information.

Definition at line 133 of file rte_virtio_net.h.


The documentation for this struct was generated from the following file: