DPDK  17.02.1
Data Fields
virtio_net_device_ops Struct Reference

#include <rte_virtio_net.h>

Data Fields

int(* new_device )(int vid)
void(* destroy_device )(int vid)
int(* vring_state_changed )(int vid, uint16_t queue_id, int enable)
void * reserved [5]

Detailed Description

Device and vring operations.

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

Definition at line 64 of file rte_virtio_net.h.

Field Documentation

int(* new_device)(int vid)

Add device.

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

Definition at line 65 of file rte_virtio_net.h.

void(* destroy_device)(int vid)

Remove device.

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

Definition at line 66 of file rte_virtio_net.h.

int(* vring_state_changed)(int vid, uint16_t queue_id, int enable)

triggered when a vring is enabled or disabled

Definition at line 68 of file rte_virtio_net.h.

void* reserved[5]

Reserved for future extension

Definition at line 70 of file rte_virtio_net.h.


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