Re: [PATCH rdma-next v1] RDMA/mlx5: Create ODP EQ only when ODP MR is created

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux