DPDK
20.08.0
|
#include <rte_flow.h>
Data Fields | |
uint32_t | shared:1 |
uint32_t | reserved:31 |
uint32_t | id |
RTE_FLOW_ACTION_TYPE_COUNT
Adds a counter action to a matched flow.
If more than one count action is specified in a single flow rule, then each action must specify a unique id.
Counters can be retrieved and reset through rte_flow_query()
, see struct rte_flow_query_count
.
The shared flag indicates whether the counter is unique to the flow rule the action is specified with, or whether it is a shared counter.
For a count action with the shared flag set, then then a global device namespace is assumed for the counter id, so that any matched flow rules using a count action with the same counter id on the same port will contribute to that counter.
For ports within the same switch domain then the counter id namespace extends to all ports within that switch domain.
Definition at line 2221 of file rte_flow.h.
uint32_t shared |
Share counter ID with other flow rules.
Definition at line 2222 of file rte_flow.h.
uint32_t reserved |
Reserved, must be zero.
Definition at line 2223 of file rte_flow.h.
uint32_t id |
Counter ID.
Definition at line 2224 of file rte_flow.h.