DPDK  18.11.11
Data Fields
rte_flow_action_count Struct Reference

#include <rte_flow.h>

Data Fields

uint32_t shared:1
 
uint32_t reserved:31
 
uint32_t id
 

Detailed Description

Warning
EXPERIMENTAL: this structure may change without prior notice

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 1721 of file rte_flow.h.

Field Documentation

uint32_t shared

Share counter ID with other flow rules.

Definition at line 1722 of file rte_flow.h.

uint32_t reserved

Reserved, must be zero.

Definition at line 1723 of file rte_flow.h.

uint32_t id

Counter ID.

Definition at line 1724 of file rte_flow.h.


The documentation for this struct was generated from the following file: