net/mlx5: add GRE as L4 layer for entropy calculation
Checks
Commit Message
Signed-off-by: Yaniv Rosner <yrosner@nvidia.com>
Acked-by: Bing Zhao <bingz@nvidia.com>
---
drivers/net/mlx5/mlx5_flow_hw.c | 3 +++
1 file changed, 3 insertions(+)
Comments
Hi,
On 26/02/2025 11:51 AM, Yaniv Rosner wrote:
> Signed-off-by: Yaniv Rosner <yrosner@nvidia.com>
> Acked-by: Bing Zhao <bingz@nvidia.com>
> ---
> drivers/net/mlx5/mlx5_flow_hw.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/net/mlx5/mlx5_flow_hw.c b/drivers/net/mlx5/mlx5_flow_hw.c
> index e72b87d70f..27ee9d6cd3 100644
> --- a/drivers/net/mlx5/mlx5_flow_hw.c
> +++ b/drivers/net/mlx5/mlx5_flow_hw.c
> @@ -14875,6 +14875,9 @@ flow_hw_calc_encap_hash(struct rte_eth_dev *dev,
> case RTE_FLOW_ITEM_TYPE_ICMP6:
> data.next_protocol = IPPROTO_ICMPV6;
> break;
> + case RTE_FLOW_ITEM_TYPE_GRE:
> + data.next_protocol = IPPROTO_GRE;
> + break;
> default:
> break;
> }
Patch applied to next-net-mlx,
@@ -14875,6 +14875,9 @@ flow_hw_calc_encap_hash(struct rte_eth_dev *dev,
case RTE_FLOW_ITEM_TYPE_ICMP6:
data.next_protocol = IPPROTO_ICMPV6;
break;
+ case RTE_FLOW_ITEM_TYPE_GRE:
+ data.next_protocol = IPPROTO_GRE;
+ break;
default:
break;
}