ethdev: add shared counter to flow API
authorDeclan Doherty <declan.doherty@intel.com>
Thu, 26 Apr 2018 17:29:19 +0000 (18:29 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 27 Apr 2018 17:00:57 +0000 (18:00 +0100)
commitfb8fd96d4251f615a0e7acdb3af8b4546f900b4d
treef9764acf19098793af46a165528254375000cec5
parente05419b3f05615c2b48169bc27049cda3ae584c6
ethdev: add shared counter to flow API

Add rte_flow_action_count action data structure to enable shared
counters across multiple flows on a single port or across multiple
flows on multiple ports within the same switch domain. Also this enables
multiple count actions to be specified in a single flow action.

This patch also modifies the existing rte_flow_query API to take the
rte_flow_action structure as an input parameter instead of the
rte_flow_action_type enumeration to allow querying a specific action
from a flow rule when multiple actions of the same type are specified.

This patch also contains updates for the bonding, failsafe and mlx5 PMDs
and testpmd application which are affected by this API change.

Signed-off-by: Declan Doherty <declan.doherty@intel.com>
12 files changed:
app/test-pmd/cmdline_flow.c
app/test-pmd/config.c
app/test-pmd/testpmd.h
doc/guides/prog_guide/rte_flow.rst
doc/guides/rel_notes/release_18_05.rst
drivers/net/bonding/rte_eth_bond_flow.c
drivers/net/failsafe/failsafe_flow.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow.c
lib/librte_ether/rte_flow.c
lib/librte_ether/rte_flow.h
lib/librte_ether/rte_flow_driver.h