app/flow-perf: simplify objects initialization
authorWisam Jaddo <wisamm@nvidia.com>
Thu, 26 Nov 2020 11:15:43 +0000 (13:15 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 7 Jan 2021 14:52:29 +0000 (15:52 +0100)
commit97544f85bd269d4be9e6e9b022a3682e1eb61a7b
tree94f3b15ec0b382b3d65af8af51accb8569533e86
parentb9a9404fa9906ce744f14d9b01b5d5bdf6adf51e
app/flow-perf: simplify objects initialization

Since items are static then the default values will be zero,
thus the memset to zero value is just a redundant code.

Also remove the all not needed variables, that can be replaced
with direct set to the structure itself.

Fixes: bf3688f1e816 ("app/flow-perf: add insertion rate calculation")
Cc: stable@dpdk.org
Signed-off-by: Wisam Jaddo <wisamm@nvidia.com>
Reviewed-by: Alexander Kozyrev <akozyrev@nvidia.com>
Reviewed-by: Suanming Mou <suanmingm@nvidia.com>
app/test-flow-perf/actions_gen.c
app/test-flow-perf/items_gen.c