Re: Positive or negative error return codes in rdma-core?

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

 



On Mon, Mar 02, 2020 at 09:43:03AM -0500, Andrew Boyer wrote:
> Should rdma-core providers return positive or negative errors?

All providers must follow the manual pages.

If the manual pages are unclear they should be fixed.
 
> The siw version of resize_cq returns -EOPNOTSUPP, but the dummy routine returns +EOPNOTSUPP.

siw is wrong:

# NAME

ibv_resize_cq - resize a completion queue (CQ)

# RETURN VALUE

**ibv_resize_cq()** returns 0 on success, or the value of errno on failure
(which indicates the failure reason).

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