From mboxrd@z Thu Jan 1 00:00:00 1970 From: reshmapa Subject: [PATCH 3/3] distributor_app: removed extra spaces Date: Tue, 16 Sep 2014 13:13:27 +0100 Message-ID: <1410869607-16842-4-git-send-email-reshma.pattan@intel.com> References: <1410869607-16842-1-git-send-email-reshma.pattan@intel.com> To: dev-VfR2kkLFssw@public.gmane.org Return-path: In-Reply-To: <1410869607-16842-1-git-send-email-reshma.pattan-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces-VfR2kkLFssw@public.gmane.org Sender: "dev" From: Reshma Pattan Changes in V2: Signed-off-by: Reshma Pattan --- 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