X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=examples%2Fqos_sched%2Fargs.c;h=99469fecc0a80ec8332acedec1315d48a3c25ea5;hb=3031749c2df04a63cdcef186dcce3781e61436e8;hp=97383fbe5def7f22d31fbb08c74c30932405f55e;hpb=d10296d7ea9c7e4f0da51ff2fb9c89b838e06940;p=dpdk.git diff --git a/examples/qos_sched/args.c b/examples/qos_sched/args.c index 97383fbe5d..99469fecc0 100755 --- a/examples/qos_sched/args.c +++ b/examples/qos_sched/args.c @@ -1,13 +1,13 @@ /*- * BSD LICENSE - * + * * Copyright(c) 2010-2014 Intel Corporation. All rights reserved. * All rights reserved. - * + * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: - * + * * * Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * Redistributions in binary form must reproduce the above copyright @@ -17,7 +17,7 @@ * * Neither the name of Intel Corporation nor the names of its * contributors may be used to endorse or promote products derived * from this software without specific prior written permission. - * + * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR @@ -69,7 +69,7 @@ static const char usage[] = " \n" "Application optional parameters: \n" " --i : run in interactive mode (default value is %u) \n" - " --mst I : master core index (default value is %u) \n" + " --mst I : master core index (default value is %u) \n" " --rsz \"A, B, C\" : Ring sizes \n" " A = Size (in number of buffer descriptors) of each of the NIC RX \n" " rings read by the I/O RX lcores (default value is %u) \n" @@ -178,7 +178,7 @@ app_parse_opt_vals(const char *conf_str, char separator, uint32_t n_vals, uint32 for(i = 0; i < n_tokens; i++) { opt_vals[i] = (uint32_t)atol(tokens[i]); } - + free(string); return n_tokens; @@ -191,7 +191,7 @@ app_parse_ring_conf(const char *conf_str) uint32_t vals[3]; ret = app_parse_opt_vals(conf_str, ',', 3, vals); - if (ret != 3) + if (ret != 3) return ret; ring_conf.rx_size = vals[0]; @@ -208,7 +208,7 @@ app_parse_rth_conf(const char *conf_str) uint32_t vals[3]; ret = app_parse_opt_vals(conf_str, ',', 3, vals); - if (ret != 3) + if (ret != 3) return ret; rx_thresh.pthresh = (uint8_t)vals[0]; @@ -225,7 +225,7 @@ app_parse_tth_conf(const char *conf_str) uint32_t vals[3]; ret = app_parse_opt_vals(conf_str, ',', 3, vals); - if (ret != 3) + if (ret != 3) return ret; tx_thresh.pthresh = (uint8_t)vals[0]; @@ -320,7 +320,7 @@ app_parse_burst_conf(const char *conf_str) return 0; } -/* +/* * Parses the argument given in the command line of the application, * calculates mask for used cores and initializes EAL with calculated core mask */