All of lore.kernel.org
 help / color / mirror / Atom feed
From: Georgios Katsikas <george.dit@gmail.com>
To: olivier.matz@6wind.com
Cc: dev@dpdk.org, Georgios Katsikas <george.dit@gmail.com>
Subject: [PATCH 2/3] app/testpmd: Added new line and parenthesized macros
Date: Fri, 12 Jan 2018 22:01:26 +0100	[thread overview]
Message-ID: <1515790887-64502-2-git-send-email-george.dit@gmail.com> (raw)
In-Reply-To: <1515790887-64502-1-git-send-email-george.dit@gmail.com>

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(-)

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

  reply	other threads:[~2018-01-12 21:02 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-12 21:01 [PATCH 1/3] app/testpmd: Moved cmdline_flow to librte_cmdline Georgios Katsikas
2018-01-12 21:01 ` Georgios Katsikas [this message]
2018-01-12 21:01 ` [PATCH 3/3] lib/cmdline: Cross platform fixes for cmdline_flow Georgios Katsikas
2018-01-15  1:30 ` [PATCH 1/3] app/testpmd: Moved cmdline_flow to librte_cmdline Lu, Wenzhuo
2018-01-16  8:39   ` Olivier Matz
2018-01-16  8:45     ` george.dit
2018-01-16  9:24       ` Olivier Matz
2018-01-16  9:49         ` Gaëtan Rivet
2018-01-16 14:31         ` Adrien Mazarguil
2018-01-16 14:54           ` george.dit
2018-01-16 17:54             ` Adrien Mazarguil
2018-01-24 11:57               ` george.dit

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1515790887-64502-2-git-send-email-george.dit@gmail.com \
    --to=george.dit@gmail.com \
    --cc=dev@dpdk.org \
    --cc=olivier.matz@6wind.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.