Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
librdmacm: Make rping with external qp compliant to IB spec
[ Upstream commit 3b87263 ] Previously rping with external qp did ibv_post_recv() while qp is still in RESET state. Which would cause rping to fail over an IB spec compliant driver, since it contradicts IB spec 1.5, 10.3.1.1 RESET section, bullet C10-22: "If a Work Request is submitted to a Work Queue while its corresponding QP is in the Reset State, an immediate error shall be returned". Currently simply modified the created qp to INIT state with some default values right after the creation of the qp, this will allow the ibv_post_recv() to succeed. Post of the connection a second initialization is done, in order to overwrite the default values with the real ones. Fixes: 5f88678 ("rping: Add option to create QP independently") Signed-off-by: Patrisious Haddad <phaddad@nvidia.com> Reviewed-by: Mark Zhang <markzhang@nvidia.com> Signed-off-by: Yishai Hadas <yishaih@nvidia.com> Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
- Loading branch information