Hi, > -----Original Message----- > From: Ophir Munk <[email protected]> > Sent: Tuesday, October 27, 2020 12:17 PM > To: [email protected]; Raslan Darawsheh <[email protected]> > Cc: Ophir Munk <[email protected]>; Matan Azrad <[email protected]>; > Slava Ovsiienko <[email protected]>; [email protected] > Subject: [PATCH v1] common/mlx5/linux: replace malloc and free in glue > > This commit replaces mlx5_malloc and mlx5_free calls with Linux calls > malloc and free in file mlx5_glue.c. > The current mlx5_malloc calls have no flags, alignment or socket > selection, so they are equivalent to calling malloc. Rdma core itself > is using malloc. When using mlx5_malloc the glue library is dependent > on common_mlx5 library which must be compiled first. Not doing so and > in case ibverbs_link=dlopen will result in compilation failure: > mlx5_glue.c: undefined reference to `mlx5_malloc'. > To make all of this simpler and remove the common_mlx5 dependency - this > commit does the alloc/free replacements. > > Fixes: 66914d19d135 ("common/mlx5: convert control path memory to > unified malloc") > Cc: [email protected] > > Signed-off-by: Ophir Munk <[email protected]> > Acked-by: Matan Azrad <[email protected]> > --- > drivers/common/mlx5/linux/mlx5_glue.c | 14 ++++++-------- > 1 file changed, 6 insertions(+), 8 deletions(-) >
Patch applied to next-net-mlx, Kindest regards, Raslan Darawsheh

