DPDK  16.04.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 180 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 181 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 182 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 184 of file rte_virtio_net.h.


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