[dpdk-dev] [PATCH 2/3] app/testpmd: Added new line and parenthesized macros

Georgios Katsikas george.dit at gmail.com
Fri Jan 12 22:01:26 CET 2018


Signed-off-by: Georgios Katsikas <george.dit at gmail.com>
---
 lib/librte_cmdline/cmdline_flow.h | 2 +-
 lib/librte_ether/rte_flow.h       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/librte_cmdline/cmdline_flow.h b/lib/librte_cmdline/cmdline_flow.h
index 45219d5..7066254 100644
--- a/lib/librte_cmdline/cmdline_flow.h
+++ b/lib/librte_cmdline/cmdline_flow.h
@@ -1849,4 +1849,4 @@ static const struct token token_list[] = {
 }
 #endif
 
-#endif /* _CMDLINE_FLOW_H_ */
\ No newline at end of file
+#endif /* _CMDLINE_FLOW_H_ */
diff --git a/lib/librte_ether/rte_flow.h b/lib/librte_ether/rte_flow.h
index a63153e..c2184b6 100644
--- a/lib/librte_ether/rte_flow.h
+++ b/lib/librte_ether/rte_flow.h
@@ -854,7 +854,7 @@ struct rte_flow_item {
 
 /** Generate flow_item[] entry. */
 #define MK_FLOW_ITEM(t, s) \
-	[RTE_FLOW_ITEM_TYPE_ ## t] = { \
+	[(RTE_FLOW_ITEM_TYPE_ ## t)] = { \
 		.name = # t, \
 		.size = s, \
 	}
@@ -1167,7 +1167,7 @@ struct rte_flow_action {
 
 /** Generate flow_action[] entry. */
 #define MK_FLOW_ACTION(t, s) \
-	[RTE_FLOW_ACTION_TYPE_ ## t] = { \
+	[(RTE_FLOW_ACTION_TYPE_ ## t)] = { \
 		.name = # t, \
 		.size = s, \
 	}
-- 
2.7.4



More information about the dev mailing list