[dpdk-dev] [PATCH 3/3] distributor_app: removed extra spaces

reshmapa reshma.pattan at intel.com
Tue Sep 16 14:13:27 CEST 2014


From: Reshma Pattan <reshma.pattan at intel.com>

Changes in V2:

Signed-off-by: Reshma Pattan <reshma.pattan at 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



More information about the dev mailing list