zrlio / disni

DiSNI: Direct Storage and Networking Interface
Apache License 2.0
186 stars 66 forks source link

Fix error messages for ibv_post_recv and ibv_post_send. #24

Closed lynus closed 6 years ago

lynus commented 6 years ago

As man pages state, these two functions returns 0 on success, or the value of errno on failure (which indicates the failure reason). In ubuntu 16.04 inbox OFED, if the call fails, errno would not set to corresponding value, but returning value does. This patch complies to the documents.