Re: [PATCH rdma-next] IB/mlx5: Use fragmented QP's buffer for in-kernel users

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

 



On Mon, Nov 26, 2018 at 08:15:50AM +0200, Leon Romanovsky wrote:
> From: Guy Levi <guyle@xxxxxxxxxxxx>
> 
> The current implementation of create QP requires contiguous memory, such
> requirement is problematic once the memory is fragmented or the system
> is low in memory, it causes for  failures in dma_zalloc_coherent().
> 
> This patch takes the advantage of mlx5_core new API which lets to allocate
> a fragmented buffer, and makes the QP creation much resilient to memory
> fragmentation. Data-path code was adapted to the fact that WQEs can
> cross buffers.
> 
> We also use the opportunity to fix some cosmetic legacy coding convention
> errors which were in the feature scope.
> 
> Signed-off-by: Guy Levi <guyle@xxxxxxxxxxxx>
> Reviewed-by: Majd Dibbiny <majd@xxxxxxxxxxxx>
> Signed-off-by: Leon Romanovsky <leonro@xxxxxxxxxxxx>
> ---
>  drivers/infiniband/hw/mlx5/mlx5_ib.h |   3 +-
>  drivers/infiniband/hw/mlx5/qp.c      | 405 ++++++++++++++++-----------
>  2 files changed, 241 insertions(+), 167 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