All of lore.kernel.org
 help / color / mirror / Atom feed
From: Yishai Hadas <yishaih-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
To: Jason Gunthorpe <jgg-uk2M96/98Pc@public.gmane.org>,
	"Amrani,
	Ram" <Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>
Cc: "linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
	<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"Elior,
	Ariel" <Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>,
	"Kalderon,
	Michal" <Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org>,
	Matan Barak <matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Bodong Wang <bodong-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: How far back does rdma-core X supports the kernel Y?
Date: Wed, 1 Nov 2017 19:28:30 +0200	[thread overview]
Message-ID: <287a10c2-15a7-0748-c59e-3f084e7538f4@dev.mellanox.co.il> (raw)
In-Reply-To: <20171101163915.GB1030-uk2M96/98Pc@public.gmane.org>

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-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  parent reply	other threads:[~2017-11-01 17:28 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-11-01 12:07 How far back does rdma-core X supports the kernel Y? Amrani, Ram
     [not found] ` <BN3PR07MB2578883C85DD3855C496F367F85F0-EldUQEzkDQfpW3VS/XPqkOFPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-11-01 16:39   ` Jason Gunthorpe
     [not found]     ` <20171101163915.GB1030-uk2M96/98Pc@public.gmane.org>
2017-11-01 17:27       ` Amrani, Ram
     [not found]         ` <BN3PR07MB257867500E3A15914B2AD075F85F0-EldUQEzkDQfpW3VS/XPqkOFPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-11-01 17:33           ` Jason Gunthorpe
     [not found]             ` <20171101173324.GF1030-uk2M96/98Pc@public.gmane.org>
2017-11-02  5:54               ` Leon Romanovsky
2017-11-02  7:01               ` Amrani, Ram
     [not found]                 ` <BN3PR07MB257829836974C1D0F1257387F85C0-EldUQEzkDQfpW3VS/XPqkOFPX92sqiQdvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-11-02 21:35                   ` Jason Gunthorpe
2017-11-01 17:28       ` Yishai Hadas [this message]
     [not found]         ` <287a10c2-15a7-0748-c59e-3f084e7538f4-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-11-01 18:00           ` Jason Gunthorpe
     [not found]             ` <20171101180001.GH1030-uk2M96/98Pc@public.gmane.org>
2017-11-01 18:22               ` Yishai Hadas
     [not found]                 ` <3424c3a1-22cb-7330-81d6-0e1bf45ab755-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-11-01 18:53                   ` Jason Gunthorpe
     [not found]                     ` <20171101185319.GK1030-uk2M96/98Pc@public.gmane.org>
2017-11-02  6:55                       ` Amrani, Ram

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=287a10c2-15a7-0748-c59e-3f084e7538f4@dev.mellanox.co.il \
    --to=yishaih-ldsdmyg8hgv8yrgs2mwiifqbs+8scbdb@public.gmane.org \
    --cc=Ariel.Elior-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
    --cc=Michal.Kalderon-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
    --cc=Ram.Amrani-YGCgFSpz5w/QT0dZR+AlfA@public.gmane.org \
    --cc=bodong-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=jgg-uk2M96/98Pc@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=matanb-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.