DPDK  16.04.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 log_size
uint64_t log_base
struct ether_addr mac
rte_atomic16_t broadcast_rarp
uint64_t reserved [61]
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 132 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 133 of file rte_virtio_net.h.

uint64_t features

Negotiated feature set.

Definition at line 134 of file rte_virtio_net.h.

uint64_t protocol_features

Negotiated protocol feature set.

Definition at line 135 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 136 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 137 of file rte_virtio_net.h.

char ifname[IF_NAME_SZ]

Name of the tap device or socket path.

Definition at line 139 of file rte_virtio_net.h.

uint32_t virt_qp_nb

number of queue pair we have allocated

Definition at line 140 of file rte_virtio_net.h.

void* priv

private context

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

Definition at line 141 of file rte_virtio_net.h.

uint64_t log_size

Size of log area

Definition at line 142 of file rte_virtio_net.h.

uint64_t log_base

Where dirty pages are logged

Definition at line 143 of file rte_virtio_net.h.

struct ether_addr mac

MAC address

Definition at line 144 of file rte_virtio_net.h.

rte_atomic16_t broadcast_rarp

A flag to tell if we need broadcast rarp packet

Definition at line 145 of file rte_virtio_net.h.

uint64_t reserved[61]

Reserve some spaces for future extension.

Definition at line 146 of file rte_virtio_net.h.

struct vhost_virtqueue* virtqueue[VHOST_MAX_QUEUE_PAIRS *2]

Contains all virtqueue information.

Definition at line 147 of file rte_virtio_net.h.


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