Re: [PATCH rdma-core] librdmacm: Make rdma_create_qp_ex() report proper errno

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

 



On Wed, Dec 16, 2020 at 09:54:59AM +0800, Xiao Yang wrote:
> Current rdma_create_qp_ex() reports fixed ENOMEM when calling
> ibv_create_qp_ex() fails, so it's hard for user to know which
> actual error happens on ibv_create_qp_ex().
>
> Signed-off-by: Xiao Yang <yangx.jy@xxxxxxxxxxxxxx>
> ---
>  librdmacm/cma.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

The same change should be done for the ibv_alloc_pd() call.

   635         if (!cma_dev->pd)
   636                 cma_dev->pd = ibv_alloc_pd(cma_dev->verbs);
   637         if (!cma_dev->pd) {
   638                 ret = ERR(ENOMEM);
   639                 goto out;
   640         }


And please add Fixes line.

Thanks



[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