[dpdk-dev] [PATCH] net/mlx5: fix VLAN actions in meter

Matan Azrad matan at mellanox.com
Thu Feb 20 08:52:02 CET 2020



From: Suanming Mou
> 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 at dpdk.org
> 
> Signed-off-by: Suanming Mou <suanmingm at mellanox.com>
Acked-by: Matan Azrad <matan at mellanox.com>


More information about the dev mailing list