test: avoid hang if queues are full and Tx fails
[dpdk.git] / drivers / bus / vdev / rte_bus_vdev.h
index fc315d1..5af6be0 100644 (file)
 extern "C" {
 #endif
 
-#include <sys/queue.h>
 #include <rte_dev.h>
 #include <rte_devargs.h>
 
 struct rte_vdev_device {
-       TAILQ_ENTRY(rte_vdev_device) next;      /**< Next attached vdev */
+       RTE_TAILQ_ENTRY(rte_vdev_device) next;      /**< Next attached vdev */
        struct rte_device device;               /**< Inherit core device */
 };
 
@@ -53,7 +52,7 @@ rte_vdev_device_args(const struct rte_vdev_device *dev)
 }
 
 /** Double linked list of virtual device drivers. */
-TAILQ_HEAD(vdev_driver_list, rte_vdev_driver);
+RTE_TAILQ_HEAD(vdev_driver_list, rte_vdev_driver);
 
 /**
  * Probe function called for each virtual device driver once.
@@ -107,7 +106,7 @@ typedef int (rte_vdev_dma_unmap_t)(struct rte_vdev_device *dev, void *addr,
  * A virtual device driver abstraction.
  */
 struct rte_vdev_driver {
-       TAILQ_ENTRY(rte_vdev_driver) next; /**< Next in list. */
+       RTE_TAILQ_ENTRY(rte_vdev_driver) next; /**< Next in list. */
        struct rte_driver driver;        /**< Inherited general driver. */
        rte_vdev_probe_t *probe;         /**< Virtual device probe function. */
        rte_vdev_remove_t *remove;       /**< Virtual device remove function. */
@@ -198,7 +197,7 @@ rte_vdev_remove_custom_scan(rte_vdev_scan_callback callback, void *user_arg);
 int rte_vdev_init(const char *name, const char *args);
 
 /**
- * Uninitalize a driver specified by name.
+ * Uninitialize a driver specified by name.
  *
  * @param name
  *   The pointer to a driver name to be uninitialized.