DPDK
20.05.0
|
#include <rte_flow.h>
RTE_FLOW_ACTION_TYPE_SET_META
Set metadata. Metadata set by mbuf metadata dynamic field with PKT_TX_DYNF_DATA flag on egress will be overridden by this action. On ingress, the metadata will be carried by mbuf metadata dynamic field with PKT_RX_DYNF_METADATA flag if set. The dynamic mbuf field must be registered in advance by rte_flow_dynf_metadata_register().
Altering partial bits is supported with mask. For bits which have never been set, unpredictable value will be seen depending on driver implementation. For loopback/hairpin packet, metadata set on Rx/Tx may or may not be propagated to the other path depending on HW capability.
RTE_FLOW_ITEM_TYPE_META matches metadata.
Definition at line 2647 of file rte_flow.h.