For flow split to several subflows, the match items maybe in the prefix flow, and the actions are split to the suffix flow.
In this case, for the actions need the user defined match item will not create correctly. Copy the item layers flags to the suffix flow from prefix flow to fix the issue. This patch series should be applied after: https://patches.dpdk.org/project/dpdk/list/?series=8613 v2: Remove the actions flag inherit. Get the layer flags accordingly based on the actions in prefix flow. v3: Fix NULL pointer issue. Suanming Mou (2): net/mlx5: fix layer flags missing in metadata net/mlx5: fix lack of match information in meter drivers/net/mlx5/mlx5_flow.c | 74 +++++++++++++++++++++++++++++++++++------ drivers/net/mlx5/mlx5_flow_dv.c | 59 +++++++++++++++++++++++--------- 2 files changed, 107 insertions(+), 26 deletions(-) -- 1.8.3.1