The rte_flow_action structure is used to define actions for a flow rule which contains information about the specific actions on frames that match the rule's pattern.
Action types in rte_flow_action
This table shows which action types are supported on Napatech SmartNICs running Link-Inline™ Software. This table also includes the related section in the DPDK Programmer's Guide for each field.
Note: Table legend:
- X: Supported.
- –: Not supported.
| Action type | Field | Support | Section in DPDK Programmer's Guide |
|---|---|---|---|
| END | X | 13.2.8.1 | |
| VOID | – | 13.2.8.2 | |
| PASSTHRU | – | 13.2.8.3 | |
| JUMP | conf.group | X | 13.2.8.4 |
| MARK | conf.id | – | 13.2.8.5 |
| FLAG | – | 13.2.8.6 | |
| QUEUE | conf.index | X | 13.2.8.7 |
| DROP | X | 13.2.8.8 | |
| COUNT | conf.id | – | 13.2.8.9 |
| RSS | conf.func | – | 13.2.8.10 |
| conf.level | – | ||
| conf.types | – | ||
| conf.key_len | – | ||
| conf.queue_num | X | ||
| conf.key | – | ||
| conf.queue | X | ||
| PF | – | 13.2.8.11 | |
| VF | – | 13.2.8.12 | |
| PORT_ID | conf.original | – | 13.2.8.13 |
| conf.id | X | ||
| METER | conf.mtr_id | X | 13.2.8.14 |
| SECURITY | – | 13.2.8.15 | |
| OF_DEC_NW_TTL | – | 13.2.8.16 | |
| OF_POP_VLAN | – | 13.2.8.17 | |
| OF_PUSH_VLAN | conf.ethertype | – | 13.2.8.18 |
| OF_SET_VLAN_VID | conf.vlan_vid | – | 13.2.8.19 |
| OF_SET_VLAN_PCP | conf.vlan_pcp | – | 13.2.8.20 |
| OF_POP_MPLS | – | 13.2.8.21 | |
| OF_PUSH_MPLS | – | 13.2.8.22 | |
| VXLAN_ENCAP | conf.definition | – | 13.2.8.23 |
| VXLAN_DECAP | – | 13.2.8.24 | |
| NVGRE_ENCAP | – | 13.2.8.25 | |
| NVGRE_DECAP | – | 13.2.8.26 | |
| RAW_ENCAP | conf.data | X | 13.2.8.27 |
| conf.preserve | – | ||
| conf.size | X | ||
| RAW_DECAP | conf.data | X | 13.2.8.28 |
| conf.size | X | ||
| SET_IPV4_SRC | – | 13.2.8.29 | |
| SET_IPV4_DST | – | 13.2.8.30 | |
| SET_IPV6_SRC | – | 13.2.8.31 | |
| SET_IPV6_DST | – | 13.2.8.32 | |
| SET_TP_SRC | – | 13.2.8.33 | |
| SET_TP_DST | – | 13.2.8.34 | |
| MAC_SWAP | – | 13.2.8.35 | |
| DEC_TTL | – | 13.2.8.36 | |
| SET_TTL | – | 13.2.8.37 | |
| SET_MAC_SRC | – | 13.2.8.38 | |
| SET_MAC_DST | – | 13.2.8.39 | |
| INC_TCP_SEQ | – | 13.2.8.40 | |
| DEC_TCP_SEQ | – | 13.2.8.41 | |
| INC_TCP_ACK | – | 13.2.8.42 | |
| DEC_TCP_ACK | – | 13.2.8.43 | |
| SET_TAG | conf.data | – | 13.2.8.44 |
| conf.mask | – | ||
| conf.index | – | ||
| SET_META | – | 13.2.8.45 | |
| SET_IPV4_DSCP | – | 13.2.8.46 | |
| SET_IPV6_DSCP | – | 13.2.8.47 | |
| AGE | – | 13.2.8.48 | |
| SAMPLE | – | 13.2.8.49 | |
| INDIRECT | – | 13.2.8.50 | |
| MODIFY_FIELD | conf.op | X | 13.2.8.50 |
| conf.dst | X | ||
| conf.src | X | ||
| conf.width | X | ||
| CONNTRACK | – | 13.2.8.51 | |
| METER_COLOR | – | 13.2.8.52 | |
| PORT_REPRESENTOR | – | 13.2.8.53 | |
| REPRESENTED_PORT | – | 13.2.8.54 | |
| METER_MARK | X | 13.2.8.55 |
Related links:
- Generic flow API (rte_flow) in the DPDK Programmer's Guide
- rte_flow_action Struct Reference