#ifndef _VDPA_DRIVER_H_
#define _VDPA_DRIVER_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include <stdbool.h>
#include <rte_compat.h>
/** Driver close the device (Mandatory) */
int (*dev_close)(int vid);
+ /** Connection closed, clean up resources */
+ int (*dev_cleanup)(int vid);
+
/** Enable/disable this vring (Mandatory) */
int (*set_vring_state)(int vid, int vring, int state);
int
rte_vdpa_relay_vring_used(int vid, uint16_t qid, void *vring_m);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _VDPA_DRIVER_H_ */