DPDK  1.6.0r2
rte_tailq_elem.h File Reference

Detailed Description

This file contains the type of the tailq elem recognised by DPDK, which can be used to fill out an array of structures describing the tailq.

In order to populate an array, the user of this file must define this macro: rte_tailq_elem(idx, name). For example:

enum rte_tailq_t {
#define rte_tailq_elem(idx, name) idx,
#define rte_tailq_end(idx) idx
#include <rte_tailq_elem.h>
};
const char* rte_tailq_names[RTE_MAX_TAILQ] = {
#define rte_tailq_elem(idx, name) name,
#include <rte_tailq_elem.h>
};

Note that this file can be included multiple times within the same file.