On Sun, Mar 14, 2021 at 02:54:18PM +0200, Leon Romanovsky wrote: > From: Shay Drory <shayd@xxxxxxxxxx> > > There is no need to create the ODP EQ if the user doesn't use ODP MRs. > Hence, create it only when the first ODP MR is created. This EQ will be > destroyed only when the device is unloaded. > This will decrease the number of EQs created per device. for example: If > we creates 1K devices (SF/VF/etc'), than we will decrease the num of EQs > by 1K. > > Signed-off-by: Shay Drory <shayd@xxxxxxxxxx> > Reviewed-by: Maor Gottlieb <maorg@xxxxxxxxxx> > Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx> > --- > Changelog: > v1: > * Delete optimization > --- > drivers/infiniband/hw/mlx5/mlx5_ib.h | 7 +++++++ > drivers/infiniband/hw/mlx5/mr.c | 3 +++ > drivers/infiniband/hw/mlx5/odp.c | 29 ++++++++++++++++++---------- > 3 files changed, 29 insertions(+), 10 deletions(-) Applied to for-next, thanks Jason