On 5/23/2023 10:31 PM, Michael Baum wrote: > Add support for MPLS modify header using "RTE_FLOW_FIELD_MPLS" id. > > Since MPLS heaser might appear more the one time in inner/outer/tunnel,
header, fixed while merging. > a new field was added to "rte_flow_action_modify_data" structure in > addition to "level" field. > The "tag_index" field is the index of the header inside encapsulation > level. It is used for modify multiple MPLS headers in same encapsulation > level. > > This addition enables to modify multiple VLAN headers too, so the > description of "RTE_FLOW_FIELD_VLAN_XXXX" was updated. > > Since the "tag_index" field is added, the "RTE_FLOW_FIELD_TAG" type > moves to use it for tag array instead of using "level" field. > Using "level" is still supported for backwards compatibility when > "tag_index" field is zero. > > Signed-off-by: Michael Baum <michae...@nvidia.com> > Acked-by: Ori Kam <or...@nvidia.com> <...>