net/mlx5: fix missing RSS expandable items
authorXiaoyu Min <jackmin@nvidia.com>
Wed, 7 Jul 2021 02:32:46 +0000 (10:32 +0800)
committerRaslan Darawsheh <rasland@nvidia.com>
Thu, 15 Jul 2021 14:22:25 +0000 (16:22 +0200)
Some RSS expandable items are missing which leads to the expanded
rte flow rules with wrong patterns.

Fix by adding missed items.

Fixes: d91093b9a2af ("net/mlx5: fix RSS pattern expansion")
Cc: stable@dpdk.org
Signed-off-by: Xiaoyu Min <jackmin@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/net/mlx5/mlx5_flow.c

index 2ede550..f534bf7 100644 (file)
@@ -132,6 +132,8 @@ mlx5_flow_is_rss_expandable_item(const struct rte_flow_item *item)
        case RTE_FLOW_ITEM_TYPE_GRE:
        case RTE_FLOW_ITEM_TYPE_GENEVE:
        case RTE_FLOW_ITEM_TYPE_MPLS:
+       case RTE_FLOW_ITEM_TYPE_VXLAN_GPE:
+       case RTE_FLOW_ITEM_TYPE_GRE_KEY:
                return true;
        default:
                break;