summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrien Mazarguil <adrien.mazarguil@6wind.com>2017-08-04 13:56:21 +0200
committerThomas Monjalon <thomas@monjalon.net>2017-08-05 01:18:21 +0200
commit4f28b83c451b4e458fa422971bfccf1b9197d168 (patch)
treef5a8866c4598c70a72bed47199655e199cc7abdf
parent92ac1d5a13859e5dc65c94aaa94559680f2e26c9 (diff)
downloaddpdk-4f28b83c451b4e458fa422971bfccf1b9197d168.zip
dpdk-4f28b83c451b4e458fa422971bfccf1b9197d168.tar.gz
dpdk-4f28b83c451b4e458fa422971bfccf1b9197d168.tar.xz
ethdev: fix C11 extensions in exported TM header
Fix issues reported by check-includes.sh: rte_tm.h:473:2: error: anonymous unions are a C11 extension [-Werror,-Wc11-extensions] rte_tm.h:696:2: error: anonymous unions are a C11 extension [-Werror,-Wc11-extensions] rte_tm.h:904:2: error: anonymous unions are a C11 extension [-Werror,-Wc11-extensions] Fixes: 5d109deffa87 ("ethdev: add traffic management API") Signed-off-by: Adrien Mazarguil <adrien.mazarguil@6wind.com> Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
-rw-r--r--lib/librte_ether/rte_tm.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/librte_ether/rte_tm.h b/lib/librte_ether/rte_tm.h
index a632b5c..ebbfa1e 100644
--- a/lib/librte_ether/rte_tm.h
+++ b/lib/librte_ether/rte_tm.h
@@ -50,6 +50,8 @@
#include <stdint.h>
+#include <rte_common.h>
+
#ifdef __cplusplus
extern "C" {
#endif
@@ -470,6 +472,7 @@ struct rte_tm_level_capabilities {
*/
int leaf_nodes_identical;
+ RTE_STD_C11
union {
/** Items valid only for the non-leaf nodes on this level. */
struct {
@@ -693,6 +696,7 @@ struct rte_tm_node_capabilities {
*/
uint32_t shaper_shared_n_max;
+ RTE_STD_C11
union {
/** Items valid only for non-leaf nodes. */
struct {
@@ -901,6 +905,7 @@ struct rte_tm_node_params {
/** Number of shared shaper IDs in the *shared_shaper_id* array. */
uint32_t n_shared_shapers;
+ RTE_STD_C11
union {
/** Parameters only valid for non-leaf nodes. */
struct {