On 11/1/2017 6:39 PM, Jason Gunthorpe wrote:
On Wed, Nov 01, 2017 at 12:07:07PM +0000, Amrani, Ram wrote:
Hi All,
I've installed rdma-core-15 on kernel 4.3 and ran into issues.
It seems this kernel doesn't include the following patch:
https://github.com/torvalds/linux/commit/aa744cc01fe0f21dfbe2744d3fd5f2fb3244c9b3
So IB_QP_SMAC is present in kernel 4.3 but not in rdma-core-15.
Was it ever appeared at verbs.h in libibverbs ? this value from kernel
4.3 (IB_QP_SMAC = (1<<21)) appears in current kernel as IB_QP_RESERVED1.
This caused a failure here:
int ibv_cmd_modify_qp(struct ibv_qp *qp, struct ibv_qp_attr *attr,
int attr_mask,
struct ibv_modify_qp *cmd, size_t cmd_size)
{
/*
* Masks over IBV_QP_DEST_QPN are only supported by
* ibv_cmd_modify_qp_ex.
*/
if (attr_mask & ~((IBV_QP_DEST_QPN << 1) - 1))
return EOPNOTSUPP;
WTF is this?
Based on the comment it should be:
if (attr_mask & ~((1ULL << (IBV_QP_DEST_QPN + 1)) - 1))
The above rdma-core code is correct, look at verbs.h:
IBV_QP_DEST_QPN = 1 << 20,
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html