[PATCH] net/mlx5: add GRE as L4 layer for entropy calculation

Raslan Darawsheh rasland at nvidia.com
Mon May 12 08:21:25 CEST 2025


Hi,


On 26/02/2025 11:51 AM, Yaniv Rosner wrote:
> Signed-off-by: Yaniv Rosner <yrosner at nvidia.com>
> Acked-by: Bing Zhao <bingz at 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,
-- 
Kindest regards
Raslan Darawsheh



More information about the dev mailing list