50f576d657
Meter suffix subflow only has the port id and tag match item, if VLAN push and set VLAN id actions exist in the suffix subflow, the user defined VLAN items is required for the actions to set a correct VLAN id. Currently, the VLAN item stays in the meter prefix subflow. Without the VLAN item, VLAN id or pcp will not be inherited. Actions require the VLAN item as below: RTE_FLOW_ACTION_TYPE_OF_PUSH_VLAN RTE_FLOW_ACTION_TYPE_OF_SET_VLAN_VID Add a private VLAN item to copy the user defined VLAN item to the meter suffix subflow, so the suffix subflow will have the chance to get the correct original VLAN id and pcp value from the VLAN item. Fixes: 9ea9b049a960 ("net/mlx5: split meter flow") Cc: stable@dpdk.org Signed-off-by: Suanming Mou <suanmingm@mellanox.com> Acked-by: Matan Azrad <matan@mellanox.com>