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

Message ID 1515790887-64502-2-git-send-email-george.dit@gmail.com (mailing list archive)
State Rejected, archived
Delegated to: Thomas Monjalon
Headers

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/Intel-compilation fail apply patch file failure

Commit Message

Georgios Katsikas Jan. 12, 2018, 9:01 p.m. UTC
  Signed-off-by: Georgios Katsikas <george.dit@gmail.com>
---
 lib/librte_cmdline/cmdline_flow.h | 2 +-
 lib/librte_ether/rte_flow.h       | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
  

Patch

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, \
 	}