DPDK  2.2.0
Data Fields
virtio_net_device_ops Struct Reference

#include <rte_virtio_net.h>

Data Fields

int(* new_device )(struct virtio_net *)
void(* destroy_device )(volatile struct virtio_net *)
int(* vring_state_changed )(struct virtio_net *dev, uint16_t queue_id, int enable)

Detailed Description

Device and vring operations.

Make sure to set VIRTIO_DEV_RUNNING to the device flags in new_device and remove it in destroy_device.

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

Definition at line 166 of file rte_virtio_net.h.

Field Documentation

int(* new_device)(struct virtio_net *)

Add device.

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

Definition at line 167 of file rte_virtio_net.h.

void(* destroy_device)(volatile struct virtio_net *)

Remove device.

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

Definition at line 168 of file rte_virtio_net.h.

int(* vring_state_changed)(struct virtio_net *dev, uint16_t queue_id, int enable)

triggered when a vring is enabled or disabled

Definition at line 170 of file rte_virtio_net.h.


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