From: "Walker, Benjamin" <benjamin.walker@intel.com>
To: "jgg@ziepe.ca" <jgg@ziepe.ca>
Cc: "Howell, Seth" <seth.howell@intel.com>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"monis@mellanox.com" <monis@mellanox.com>,
"linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>,
"dledford@redhat.com" <dledford@redhat.com>
Subject: Re: [PATCH] rdma: move the ib_wr_opcode enum to include/uapi
Date: Mon, 17 Sep 2018 22:29:18 +0000 [thread overview]
Message-ID: <0df4e4958250fd6cdb978005ace970c877269535.camel@intel.com> (raw)
In-Reply-To: <20180917210824.GF11367@ziepe.ca>
On Mon, 2018-09-17 at 15:08 -0600, Jason Gunthorpe wrote:
> On Mon, Sep 17, 2018 at 08:38:16PM +0000, Walker, Benjamin wrote:
> > We've recently run into this same issue on i40iw, which appears to make the
> > same
> > mistake of using the kernel version of the enum instead of the userspace
> > version.
>
> Confused by this?? i40iw_upost_send does not handle the kernel numbers
> at all, as far as I can see? How does it develop a kernel dependency??
>
> > What's the current status here? Can it be merged? I just checked and
> > do not see it merged to Linux master.
>
> Oh! This apparently got lost, thanks for bringing it up again.
>
> > Running a user-space NVMe-oF target with RDMA and a recent Linux kernel
> > initiator is not currently possible on rxe or i40iw because it requires send
> > with invalidate support.
>
> Okay, but i40iw doesn't seem to support send with invalidate at all in
> userspace?
>
> i40iw_upost_send() swithces on opcode, doesn't handle SEND_INV and
> then blows up in the default clause - how does this patch make any
> difference???
It appears I've read the error message incorrectly and was looking at the kernel
version (i40iw_post_send) as opposed to the user version (i40iw_upost_send).
Indeed, the NIC does not support SEND_WTIH_INVAL at all in that function. The
NIC does support SEND_WITH_INVAL in the kernel i40iw_post_send.
What is the correct way for a user space application to check whether a NIC
supports SEND_WITH_INVAL? We are currently examining the device_cap_flags in the
structure returned by ibv_query_device. Specifically, we're looking at
IBV_DEVICE_MEM_MGT_EXTENSIONS. However, for i40iw, that flag is set. I'm
concerned that the feature support flags are common between user space and the
kernel, but the actual support differs in this case.
Thanks,
Ben
>
> Jason
next prev parent reply other threads:[~2018-09-17 22:30 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-08-14 22:33 [PATCH] rdma: move the ib_wr_opcode enum to include/uapi Seth Howell
2018-08-15 22:50 ` Jason Gunthorpe
2018-08-15 23:27 ` Howell, Seth
2018-08-16 18:01 ` Jason Gunthorpe
2018-08-20 21:32 ` Howell, Seth
2018-09-17 20:38 ` Walker, Benjamin
2018-09-17 21:08 ` Jason Gunthorpe
2018-09-17 22:29 ` Walker, Benjamin [this message]
2018-09-17 22:47 ` Jason Gunthorpe
2018-09-19 23:03 ` Nikolova, Tatyana E
2018-09-17 23:08 ` Jason Gunthorpe
2018-09-17 23:14 ` Howell, Seth
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=0df4e4958250fd6cdb978005ace970c877269535.camel@intel.com \
--to=benjamin.walker@intel.com \
--cc=dledford@redhat.com \
--cc=jgg@ziepe.ca \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=monis@mellanox.com \
--cc=seth.howell@intel.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox