From: Intel Date: Fri, 8 Nov 2013 02:00:00 +0000 (+0100) Subject: app/testpmd: more help X-Git-Tag: spdx-start~11064 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=5e2ee19641e7e914749ced01933413228c244fd3;p=dpdk.git app/testpmd: more help Signed-off-by: Intel --- diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c index 435d6e4b50..5e347755f3 100644 --- a/app/test-pmd/cmdline.c +++ b/app/test-pmd/cmdline.c @@ -233,6 +233,9 @@ static void cmd_help_long_parsed(void *parsed_result, "vlan set strip (on|off) (port_id)\n" " Set the VLAN strip on a port.\n\n" + "vlan set stripq (on|off) (port_id,queue_id)\n" + " Set the VLAN strip for a queue on a port.\n\n" + "vlan set filter (on|off) (port_id)\n" " Set the VLAN filter on a port.\n\n" @@ -347,8 +350,8 @@ static void cmd_help_long_parsed(void *parsed_result, " to pool 0.\n\n" "set port (port_id) mirror-rule (rule_id)" - "(uplink-mirror|downlink-mirror) dst-pool" - "(pool_id) (on|off)\n" + " (uplink-mirror|downlink-mirror) dst-pool" + " (pool_id) (on|off)\n" " Set uplink or downlink type mirror rule on a port.\n" " e.g., 'set port 0 mirror-rule 0 uplink-mirror dst-pool" " 0 on' enable mirror income traffic to pool 0.\n\n" @@ -1280,7 +1283,7 @@ cmdline_parse_inst_t cmd_config_rss_reta = { }, }; -/* *** SHOW PORT INFO *** */ +/* *** SHOW PORT RETA INFO *** */ struct cmd_showport_reta { cmdline_fixed_string_t show; cmdline_fixed_string_t port; @@ -2004,8 +2007,10 @@ cmd_vlan_offload_parsed(void *parsed_result, uint16_t queue_id = 0; /* No queue_id, return */ - if(i + 1 >= len) + if(i + 1 >= len) { + printf("must specify (port,queue_id)\n"); return; + } tmp = strtoul(str + i + 1, NULL, 0); /* If queue_id greater that what 16-bits can represent, return */ if(tmp > 0xffff) diff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c index dbcc113068..685922aad5 100644 --- a/app/test-pmd/parameters.c +++ b/app/test-pmd/parameters.c @@ -112,7 +112,7 @@ usage(char* progname) "specify the socket on which the TX/RX rings for " "the port will be allocated " "(flag: 1 for RX; 2 for TX; 3 for RX and TX).\n"); - printf(" --socket-num=N: set socket from which all memory is allocated " + printf(" --socket-num=N: set socket from which all memory is allocated " "in NUMA mode.\n"); printf(" --mbuf-size=N: set the data size of mbuf to N bytes.\n"); printf(" --total-num-mbufs=N: set the number of mbufs to be allocated " @@ -178,8 +178,8 @@ usage(char* progname) printf(" --rx-queue-stats-mapping=(port,queue,mapping)[,(port,queue,mapping]: " "rx queues statistics counters mapping " "(0 <= mapping <= %d).\n", RTE_ETHDEV_QUEUE_STAT_CNTRS - 1); - printf(" --no-flush-rx: avoids flushing all rx streams before" - " starts forwarding\n"); + printf(" --no-flush-rx: Don't flush RX streams before forwarding." + " Used mainly with PCAP drivers.\n"); } static int