examples/l2fwd-crypto: fix total stats
authorPablo de Lara <pablo.de.lara.guarch@intel.com>
Fri, 12 Feb 2016 09:17:22 +0000 (09:17 +0000)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Wed, 24 Feb 2016 13:50:24 +0000 (14:50 +0100)
commit28523d9a1935f752464ddb68bf304f28b7406616
tree18ba516cceb2f970ccb80921c054fd9fde77c19e
parentc316ed45bde280e54618ff6df2a670e25bd1a308
examples/l2fwd-crypto: fix total stats

Reset total statistics (sum of all port statistics) before
adding up the new accumulated statistics per port.

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

Signed-off-by: Pablo de Lara <pablo.de.lara.guarch@intel.com>
Acked-by: Declan Doherty <declan.doherty@intel.com>
examples/l2fwd-crypto/main.c