summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorBeilei Xing <beilei.xing@intel.com>2016-06-27 22:26:48 +0800
committerThomas Monjalon <thomas.monjalon@6wind.com>2016-07-11 17:21:21 +0200
commit54659744c2e6c9cce0ba8777de52ae9896298871 (patch)
tree02aaf8e2e6ccddce42c6955d808cba8d8347de02 /examples
parent572f0779c2dc88c3c225fc06ff5d062f6f425c31 (diff)
downloaddpdk-54659744c2e6c9cce0ba8777de52ae9896298871.zip
dpdk-54659744c2e6c9cce0ba8777de52ae9896298871.tar.gz
dpdk-54659744c2e6c9cce0ba8777de52ae9896298871.tar.xz
examples/l3fwd: update usage and documentation
Update l3fwd example usage and documentation with missing options. Signed-off-by: Beilei Xing <beilei.xing@intel.com> Acked-by: John McNamara <john.mcnamara@intel.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/l3fwd/main.c40
1 files changed, 26 insertions, 14 deletions
diff --git a/examples/l3fwd/main.c b/examples/l3fwd/main.c
index 7a79cd2..acedd20 100644
--- a/examples/l3fwd/main.c
+++ b/examples/l3fwd/main.c
@@ -311,20 +311,32 @@ init_lcore_rx_queues(void)
static void
print_usage(const char *prgname)
{
- printf ("%s [EAL options] -- -p PORTMASK -P"
- " [--config (port,queue,lcore)[,(port,queue,lcore]]"
- " [--enable-jumbo [--max-pkt-len PKTLEN]]\n"
- " -p PORTMASK: hexadecimal bitmask of ports to configure\n"
- " -P : enable promiscuous mode\n"
- " -E : enable exact match\n"
- " -L : enable longest prefix match\n"
- " --config (port,queue,lcore): rx queues configuration\n"
- " --eth-dest=X,MM:MM:MM:MM:MM:MM: optional, ethernet destination for port X\n"
- " --no-numa: optional, disable numa awareness\n"
- " --ipv6: optional, specify it if running ipv6 packets\n"
- " --enable-jumbo: enable jumbo frame"
- " which max packet len is PKTLEN in decimal (64-9600)\n"
- " --hash-entry-num: specify the hash entry number in hexadecimal to be setup\n",
+ printf("%s [EAL options] --"
+ " -p PORTMASK"
+ " [-P]"
+ " [-E]"
+ " [-L]"
+ " --config (port,queue,lcore)[,(port,queue,lcore)]"
+ " [--eth-dest=X,MM:MM:MM:MM:MM:MM]"
+ " [--enable-jumbo [--max-pkt-len PKTLEN]]"
+ " [--no-numa]"
+ " [--hash-entry-num]"
+ " [--ipv6]"
+ " [--parse-ptype]\n\n"
+
+ " -p PORTMASK: Hexadecimal bitmask of ports to configure\n"
+ " -P : Enable promiscuous mode\n"
+ " -E : Enable exact match\n"
+ " -L : Enable longest prefix match (default)\n"
+ " --config (port,queue,lcore): Rx queue configuration\n"
+ " --eth-dest=X,MM:MM:MM:MM:MM:MM: Ethernet destination for port X\n"
+ " --enable-jumbo: Enable jumbo frames\n"
+ " --max-pkt-len: Under the premise of enabling jumbo,\n"
+ " maximum packet length in decimal (64-9600)\n"
+ " --no-numa: Disable numa awareness\n"
+ " --hash-entry-num: Specify the hash entry number in hexadecimal to be setup\n"
+ " --ipv6: Set if running ipv6 packets\n"
+ " --parse-ptype: Set to use software to analyze packet type\n\n",
prgname);
}