Re: [PATCH rdma-next] RDMA/mlx5: Set ODP caps only if device profile support ODP

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

 



On Thu, Mar 18, 2021 at 03:52:59PM +0200, Leon Romanovsky wrote:
> From: Shay Drory <shayd@xxxxxxxxxx>
> 
> Currently, ODP caps are set during the init stage of mlx5_ib_dev,
> regardless whether the device profile supports ODP or not.
> There isn't a point to set ODP caps if the device profile doesn't
> supports ODP. Hence, setting the ODP caps in the odp_init stage.
> 
> Reviewed-by: Maor Gottlieb <maorg@xxxxxxxxxx>
> Signed-off-by: Shay Drory <shayd@xxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxx>
> ---
>  drivers/infiniband/hw/mlx5/main.c    | 2 --
>  drivers/infiniband/hw/mlx5/mlx5_ib.h | 6 ------
>  drivers/infiniband/hw/mlx5/odp.c     | 4 +++-
>  3 files changed, 3 insertions(+), 9 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