[dpdk-stable] [PATCH v2 2/2] net/mlx5: fix lack of match information in meter

Matan Azrad matan at mellanox.com
Thu Feb 20 08:40:36 CET 2020



From: Suanming Mou
> As meter flows are split into three subflows each, the prefix subflow with
> meter action color the packet, the meter subflow filters out the colored
> packets, the suffix subflow applies all the remaining actions to the passed
> packets.
> 
> Currently, all the user defined items are matched in the prefix flow.
> Flow id tag match item is the only item added to the meter suffix subflow.
> Some of the remaining actions to be applied in the suffix subflow require
> more information in the match item, or the suffix subflow will not be created
> successfully.
> 
> Actions require the L3/L4 type in the match items as below:
> RTE_FLOW_ACTION_TYPE_SET_TP_SRC
> RTE_FLOW_ACTION_TYPE_SET_TP_DST
> RTE_FLOW_ACTION_TYPE_DEC_TTL
> RTE_FLOW_ACTION_TYPE_SET_TTL
> RTE_FLOW_ACTION_TYPE_RSS
> RTE_FLOW_ACTION_TYPE_QUEUE
> 
> Inherit the match item flags from meter prefix subflow to make actions in
> suffix subflow get sufficient information.
> 
> 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 stable mailing list