Hi, > -----Original Message----- > From: Dariusz Sosnowski <[email protected]> > Sent: Friday, August 25, 2023 9:44 PM > To: Matan Azrad <[email protected]>; Slava Ovsiienko > <[email protected]>; Ori Kam <[email protected]>; Suanming Mou > <[email protected]> > Cc: [email protected]; [email protected] > Subject: [PATCH] net/mlx5: fix jump ipool entry size > > In mlx5 PMD, MLX5_IPOOL_JUMP ipool configuration is used to initialize the > ipool containing either: > > - flow table entry when DV flow engine is chosen or, > - group table entry when HW steering flow engine is chosen. > > Default configuration for MLX5_IPOOL_JUMP ipool specified entry size as size > of mlx5_flow_tbl_data_entry struct, used with DV flow engine. > This could lead to memory corruption when mlx5_flow_group struct (used > with HW steering flow engine) would have bigger size than > mlx5_flow_tbl_data_entry. > > This patch fixes that. Entry size for MLX5_IPOOL_JUMP ipool is chosen > dynamically based on device configuration. > > Fixes: d1559d66ed2d ("net/mlx5: add table management") > Cc: [email protected] > Cc: [email protected]
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh

