summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIntel <intel.com>2013-11-08 03:00:00 +0100
committerThomas Monjalon <thomas.monjalon@6wind.com>2013-11-24 21:31:36 +0100
commit5e2ee19641e7e914749ced01933413228c244fd3 (patch)
tree32ca6abf4a8e918766d405ca92828a9a41a5d17d
parent588ae1affb42845306c66c0fb0b3a1fb541f7f85 (diff)
downloaddpdk-5e2ee19641e7e914749ced01933413228c244fd3.zip
dpdk-5e2ee19641e7e914749ced01933413228c244fd3.tar.gz
dpdk-5e2ee19641e7e914749ced01933413228c244fd3.tar.xz
app/testpmd: more help
Signed-off-by: Intel
-rw-r--r--app/test-pmd/cmdline.c13
-rw-r--r--app/test-pmd/parameters.c6
2 files changed, 12 insertions, 7 deletions
diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c
index 435d6e4..5e34775 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 dbcc113..685922a 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