app/flow-perf: refactor flows handler
authorWisam Jaddo <wisamm@nvidia.com>
Thu, 26 Nov 2020 11:15:40 +0000 (13:15 +0200)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 7 Jan 2021 14:13:58 +0000 (15:13 +0100)
commit8ccb4e3ef15e1e786ecb96e84b21128a0fad518b
tree9641508a79273203b3d026104ded39606e911bc2
parentb031e13d7f0dc7cba9bc5befe968b67832021a59
app/flow-perf: refactor flows handler

Provide the flows_handler() function the ability to control
flow performance processes. It is made possible after the
introduction of the insert_flows() function.

Also provide to the flows_handler() function the ability to print
the DPDK layer memory consumption of rte_flow rule, regardless
if deletion feature is enabled or not, while in previous
solution it was printing all memory changes after flows_handler().
Thus if deletion is there, it will not provide any memory that
represents the rte_flow rule size.

Also current design is easier to read and understand.

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/main.c