DPDK  17.11.10
Data Fields
vhost_device_ops Struct Reference

#include <rte_vhost.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)
 
int(* features_changed )(int vid, uint64_t features)
 
void * reserved [2]
 

Detailed Description

Device and vring operations.

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

Definition at line 97 of file rte_vhost.h.

Field Documentation

int(* new_device) (int vid)
void(* destroy_device) (int vid)

Remove device.

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

Definition at line 99 of file rte_vhost.h.

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

triggered when a vring is enabled or disabled

Definition at line 101 of file rte_vhost.h.

int(* features_changed) (int vid, uint64_t features)

Features could be changed after the feature negotiation. For example, VHOST_F_LOG_ALL will be set/cleared at the start/end of live migration, respectively. This callback is used to inform the application on such change.

Definition at line 109 of file rte_vhost.h.

void* reserved[2]

Reserved for future extension

Definition at line 114 of file rte_vhost.h.


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