DPDK
24.11.0-rc3
|
#include <rte_flow.h>
RTE_FLOW_ACTION_TYPE_SET_META
Set metadata. Metadata set by mbuf metadata dynamic field with RTE_MBUF_DYNFLAG_TX_METADATA flag on egress will be overridden by this action. On ingress, the metadata will be carried by mbuf metadata dynamic field with RTE_MBUF_DYNFLAG_RX_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 3915 of file rte_flow.h.