From: Knut Omang <knut.omang@oracle.com>
To: Jason Gunthorpe <jgunthorpe@obsidianresearch.com>
Cc: Doug Ledford <dledford@redhat.com>,
linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org,
Sean Hefty <sean.hefty@intel.com>,
Hal Rosenstock <hal.rosenstock@gmail.com>,
Matan Barak <matanb@mellanox.com>,
Sagi Grimberg <sagi@grimberg.me>,
Leon Romanovsky <leonro@mellanox.com>,
Yishai Hadas <yishaih@mellanox.com>,
Majd Dibbiny <majd@mellanox.com>,
Eran Ben Elisha <eranbe@mellanox.com>,
Or Gerlitz <ogerlitz@mellanox.com>
Subject: Re: [PATCH v2 8/8] ib_uverbs: Support for kernel implementation of XRC
Date: Fri, 16 Sep 2016 21:49:09 +0200 [thread overview]
Message-ID: <1474055349.20134.39.camel@oracle.com> (raw)
In-Reply-To: <20160916193102.GB28859@obsidianresearch.com>
On Fri, 2016-09-16 at 13:31 -0600, Jason Gunthorpe wrote:
> On Fri, Sep 16, 2016 at 08:31:19PM +0200, Knut Omang wrote:
> > +++ b/include/uapi/rdma/ib_user_verbs.h
> > @@ -725,6 +725,8 @@ struct ib_uverbs_send_wr {
> > __u32 reserved;
> > } ud;
> > } wr;
> > + __u32 xrc_remote_srq_num;
> > + __u32 reserved;
> > };
>
> You still need to discuss why this is OK...
>
> Are you doing all this just to be able to use the existing post_send user
> space path in the common code? Is there a kernel XRC user planned?
Yes, with this patch, the SIF user level provider library is able to
use either kernel verbs or user verbs on a per QP basis. This is a
very useful capability that the verbs API neatly lends itself almost
completely to, except for this particular missing piece.
> Another approach would be to implement post_send in your driver and
> not rely on this common code path.
I agree this would be possible, but that would have been
to implement a generic feature which seems a natural completion
of what is already in there in provider specific code, something
I would have thought from other discussions here is considered bad
practice?
Thanks,
Knut
>
> Jason
next prev parent reply other threads:[~2016-09-16 19:50 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-16 18:31 [PATCH v2 0/8] SIF related verbs patches Knut Omang
2016-09-16 18:31 ` [PATCH v2 1/8] ib_mad: incoming sminfo SMPs gets discarded if no process_mad function is registered Knut Omang
2016-09-16 20:28 ` Santosh Shilimkar
2016-09-16 20:40 ` Knut Omang
2016-09-16 18:31 ` [PATCH v2 2/8] ib_umem: Add a new, more generic ib_umem_get_attrs Knut Omang
2017-04-05 15:20 ` Knut Omang
2016-09-16 18:31 ` [PATCH v2 3/8] ib_umem: With the new ib_umem_get_attrs, simplify ib_umem_get Knut Omang
2016-09-16 18:31 ` [PATCH v2 4/8] ib: Add udata argument to create_ah Knut Omang
2016-09-16 18:31 ` [PATCH v2 5/8] ib_uverbs: Add padding to end align ib_uverbs_reg_mr_resp Knut Omang
2016-09-20 10:45 ` Yishai Hadas
2016-09-20 11:02 ` Knut Omang
2016-09-16 18:31 ` [PATCH v2 6/8] ib_uverbs: Avoid vendor specific masking of attributes in query_qp Knut Omang
2016-09-16 18:31 ` [PATCH v2 7/8] ib_{uverbs/core}: add new ib_create_qp_ex with udata arg Knut Omang
2016-09-16 18:31 ` [PATCH v2 8/8] ib_uverbs: Support for kernel implementation of XRC Knut Omang
2016-09-16 19:31 ` Jason Gunthorpe
2016-09-16 19:49 ` Knut Omang [this message]
2016-09-16 20:30 ` [PATCH v2 0/8] SIF related verbs patches Santosh Shilimkar
2016-09-16 20:42 ` Knut Omang
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=1474055349.20134.39.camel@oracle.com \
--to=knut.omang@oracle.com \
--cc=dledford@redhat.com \
--cc=eranbe@mellanox.com \
--cc=hal.rosenstock@gmail.com \
--cc=jgunthorpe@obsidianresearch.com \
--cc=leonro@mellanox.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-rdma@vger.kernel.org \
--cc=majd@mellanox.com \
--cc=matanb@mellanox.com \
--cc=ogerlitz@mellanox.com \
--cc=sagi@grimberg.me \
--cc=sean.hefty@intel.com \
--cc=yishaih@mellanox.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