examples/l2fwd-crypto: fix option -t
authorDeclan Doherty <declan.doherty@intel.com>
Wed, 2 Dec 2015 17:16:44 +0000 (17:16 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 7 Dec 2015 02:21:13 +0000 (03:21 +0100)
commitad509b4ae3e303bddba070d18dec8cfcade463f6
tree1a53738aa4333b5810ad68005498ab33077850a6
parent80c634d1cd9cade3f7f3fc5576bf74374bc041db
examples/l2fwd-crypto: fix option -t

passing -t 0 as a command line argument causes the application
to exit with an "invalid refresh period specified" error  which is
contrary to applications help text.

This patch removes the unnecessary option "--no-stats" and fixes the
behaviour of the -t parameter.

Fixes: 387259bd6c67 ("examples/l2fwd-crypto: add sample application")

Reported-by: Min Cao <min.cao@intel.com>
Signed-off-by: Declan Doherty <declan.doherty@intel.com>
examples/l2fwd-crypto/main.c