From: reshmapa <reshma.pattan@intel.com>
To: dev@dpdk.org
Subject: [dpdk-dev] [PATCH 3/3] distributor_app: removed extra spaces
Date: Tue, 16 Sep 2014 13:13:27 +0100 [thread overview]
Message-ID: <1410869607-16842-4-git-send-email-reshma.pattan@intel.com> (raw)
In-Reply-To: <1410869607-16842-1-git-send-email-reshma.pattan@intel.com>
From: Reshma Pattan <reshma.pattan@intel.com>
Changes in V2:
Signed-off-by: Reshma Pattan <reshma.pattan@intel.com>
---
examples/distributor_app/main.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/examples/distributor_app/main.c b/examples/distributor_app/main.c
index fab8199..b064a3a 100644
--- a/examples/distributor_app/main.c
+++ b/examples/distributor_app/main.c
@@ -230,7 +230,7 @@ lcore_rx(struct lcore_params *p)
printf("\nCore %u doing packet RX.\n", rte_lcore_id());
port = 0;
for (;;) {
- /* skip ports that are not enabled */
+ /* skip ports that are not enabled */
if ((enabled_port_mask & (1 << port)) == 0){
if (++port == nb_ports)
port = 0;
@@ -283,7 +283,7 @@ flush_all_ports(struct output_buffer *tx_buffers, uint8_t nb_ports)
for (outp = 0; outp < nb_ports; outp++) {
/* skip ports that are not enabled */
if ((enabled_port_mask & (1 << outp)) == 0){
- continue;
+ continue;
}
if (tx_buffers[outp].count == 0)
@@ -302,7 +302,7 @@ lcore_tx(struct rte_ring *in_r)
uint8_t port;
for (port = 0; port < nb_ports; port++){
- /* skip ports that are not enabled */
+ /* skip ports that are not enabled */
if ((enabled_port_mask & (1 << port)) == 0){
continue;
}
@@ -316,7 +316,7 @@ lcore_tx(struct rte_ring *in_r)
printf("\nCore %u doing packet TX.\n", rte_lcore_id());
for (;;) {
for (port = 0; port < nb_ports; port++) {
- /* skip ports that are not enabled */
+ /* skip ports that are not enabled */
if ((enabled_port_mask & (1 << port)) == 0){
continue;
}
@@ -431,16 +431,16 @@ parse_portmask(const char *portmask)
}
/* Parse the argument given in the command line of the application */
-static int
+static int
parse_args(int argc, char **argv)
{
int opt;
char **argvopt;
int option_index;
char *prgname = argv[0];
- static struct option lgopts[] = {
+ static struct option lgopts[] = {
{NULL, 0, 0, 0}
- };
+ };
argvopt = argv;
@@ -454,8 +454,8 @@ parse_args(int argc, char **argv)
if (enabled_port_mask == 0) {
printf("invalid portmask\n");
print_usage(prgname);
- return -1;
- }
+ return -1;
+ }
break;
default:
@@ -499,7 +499,7 @@ MAIN(int argc, char *argv[])
/* parse application arguments (after the EAL ones) */
ret = parse_args(argc, argv);
- if (ret < 0)
+ if (ret < 0)
rte_exit(EXIT_FAILURE, "Invalid distributor parameters\n");
if (rte_lcore_count() < 3)
@@ -549,7 +549,7 @@ MAIN(int argc, char *argv[])
if (!nb_ports_available) {
rte_exit(EXIT_FAILURE,
"All available ports are disabled. Please set portmask.\n");
- }
+ }
d = rte_distributor_create("PKT_DIST", rte_socket_id(),
rte_lcore_count() - 2);
--
1.8.3.1
next prev parent reply other threads:[~2014-09-16 12:08 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-16 12:13 [dpdk-dev] [PATCH 0/3] distributor_app: new sample application for distributor library reshmapa
2014-09-16 12:13 ` [dpdk-dev] [PATCH 1/3] distributor_app: new sample app reshmapa
2014-09-16 12:13 ` [dpdk-dev] [PATCH 2/3] distributor_app: code review comments implementation reshmapa
2014-09-16 12:13 ` reshmapa [this message]
2014-09-23 12:55 ` [dpdk-dev] [PATCH 0/3] distributor_app: new sample application for distributor library Bruce Richardson
2014-09-24 14:16 ` [dpdk-dev] [PATCH v2] distributor_app: new sample app reshmapa
2014-09-26 15:11 ` De Lara Guarch, Pablo
2014-09-26 15:51 ` Ananyev, Konstantin
2014-09-29 12:39 ` Pattan, Reshma
2014-09-29 13:06 ` Ananyev, Konstantin
2014-09-29 13:35 ` De Lara Guarch, Pablo
2014-09-29 14:35 ` Neil Horman
2014-09-30 8:02 ` Pattan, Reshma
2014-09-30 9:21 ` Ananyev, Konstantin
2014-09-30 10:39 ` [dpdk-dev] [PATCH v3] " reshmapa
2014-09-30 11:34 ` Neil Horman
2014-09-30 12:18 ` Bruce Richardson
2014-09-30 13:39 ` Neil Horman
2014-10-01 14:47 ` Pattan, Reshma
2014-10-01 14:56 ` Neil Horman
2014-10-01 15:37 ` Bruce Richardson
2014-10-01 16:07 ` Neil Horman
2014-10-06 14:16 ` Pattan, Reshma
2014-10-06 14:44 ` Neil Horman
2014-10-06 17:34 ` Pattan, Reshma
2014-10-06 19:02 ` Neil Horman
2014-10-02 9:04 ` Ananyev, Konstantin
2014-10-01 13:33 ` [dpdk-dev] [PATCH v4] distributor_app: gracefull shutdown of tx/rx threads on SIGINT reshmapa
2014-10-01 13:46 ` Pattan, Reshma
2014-10-01 13:49 ` Thomas Monjalon
2014-10-01 14:33 ` [dpdk-dev] [PATCH v5] distributor_app: new sample app reshmapa
2014-10-17 13:59 ` [dpdk-dev] [PATCH v6] " Reshma Pattan
2014-11-02 20:08 ` De Lara Guarch, Pablo
2014-11-03 15:49 ` [dpdk-dev] [PATCH v7] " Reshma Pattan
2014-11-03 16:03 ` De Lara Guarch, Pablo
2014-11-13 21:30 ` Thomas Monjalon
2014-11-14 8:44 ` Pattan, Reshma
2014-11-16 21:59 ` Thomas Monjalon
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=1410869607-16842-4-git-send-email-reshma.pattan@intel.com \
--to=reshma.pattan@intel.com \
--cc=dev@dpdk.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).