From patchwork Tue Sep 16 12:13:27 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Pattan, Reshma" X-Patchwork-Id: 388 Return-Path: X-Original-To: patchwork@dpdk.org Delivered-To: patchwork@dpdk.org Received: from [92.243.14.124] (localhost [IPv6:::1]) by dpdk.org (Postfix) with ESMTP id 931DAB3A9; Tue, 16 Sep 2014 14:08:34 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 83EB8B39E for ; Tue, 16 Sep 2014 14:08:32 +0200 (CEST) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga101.fm.intel.com with ESMTP; 16 Sep 2014 05:13:41 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.97,862,1389772800"; d="scan'208";a="386781461" Received: from irvmail001.ir.intel.com ([163.33.26.43]) by FMSMGA003.fm.intel.com with ESMTP; 16 Sep 2014 05:08:14 -0700 Received: from sivswdev02.ir.intel.com (sivswdev02.ir.intel.com [10.237.217.46]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id s8GCDb4j020139; Tue, 16 Sep 2014 13:13:37 +0100 Received: from sivswdev02.ir.intel.com (localhost [127.0.0.1]) by sivswdev02.ir.intel.com with ESMTP id s8GCDbL1016922; Tue, 16 Sep 2014 13:13:37 +0100 Received: (from reshmapa@localhost) by sivswdev02.ir.intel.com with id s8GCDbOx016916; Tue, 16 Sep 2014 13:13:37 +0100 From: reshmapa To: dev@dpdk.org Date: Tue, 16 Sep 2014 13:13:27 +0100 Message-Id: <1410869607-16842-4-git-send-email-reshma.pattan@intel.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1410869607-16842-1-git-send-email-reshma.pattan@intel.com> References: <1410869607-16842-1-git-send-email-reshma.pattan@intel.com> Subject: [dpdk-dev] [PATCH 3/3] distributor_app: removed extra spaces X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.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);