[PATCH] net/mlx5: remove non constant size from type cast

Raslan Darawsheh rasland at nvidia.com
Sun Feb 25 15:42:49 CET 2024


Hi,

> -----Original Message-----
> From: Tyler Retzlaff <roretzla at linux.microsoft.com>
> Sent: Monday, November 13, 2023 7:21 PM
> To: dev at dpdk.org
> Cc: Matan Azrad <matan at nvidia.com>; Ori Kam <orika at nvidia.com>;
> Suanming Mou <suanmingm at nvidia.com>; Slava Ovsiienko
> <viacheslavo at nvidia.com>; Tyler Retzlaff <roretzla at linux.microsoft.com>
> Subject: [PATCH] net/mlx5: remove non constant size from type cast
> 
> Placing a non-constant size in the subscript [size] of a type cast is causing
> unnecessary generation of a VLA. Remove size and just provide [] indicating
> the type is an array of unspecified size.
> 
> Signed-off-by: Tyler Retzlaff <roretzla at linux.microsoft.com>

Patch applied to next-net-mlx,

Kindest regards
Raslan Darawsheh


More information about the dev mailing list