From: Jason Gunthorpe <jgg-uk2M96/98Pc@public.gmane.org>
To: Moni Shoua <monis-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Cc: Alex Margolin <alexma-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
"linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org"
<linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>
Subject: Re: [RFC] Vendor-specific QPs
Date: Thu, 23 Nov 2017 10:57:15 -0700 [thread overview]
Message-ID: <20171123175715.GA30099@ziepe.ca> (raw)
In-Reply-To: <CAG9sBKPqVwbS0cXQPTdWCx7vwWaq5EMeghnPMEHrMZZsSsEu_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
On Thu, Nov 23, 2017 at 11:14:40AM +0200, Moni Shoua wrote:
> Since all dv_create_qp() API functions call the ibv_cmd_create_qp()
> and put driver data at the end of the core data it will be simplest to
> manage this in one function with one additional driver data structure
> (that includes a comp_mask to describe the content of the block of
> data). Also, the signature of the mlx5_dv_create_dct() should take an
> extra parameter (besides ib_qp_init_attr and mlx4_dct_init_attr) that
> is common to all dv_create_qp() functions to represent the shared
> driver data. We can avoid all this if we declare only one API function
> to create a driver QP.
I don't see why it makes any difference. Shuffle the data around
inside a mlx5_dv_create_dct to get to the internal format then call
the internal create_qp helper.
Why should it accept a 'shared driver data'? What does that even mean
from the user facing API?
Jason
--
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
prev parent reply other threads:[~2017-11-23 17:57 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-10-30 15:23 [RFC] Vendor-specific QPs Alex Margolin
[not found] ` <VI1PR05MB12784029D1DE2689A8194A58B9590-79XLn2atqDMOK6E67s+DINqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-11-02 20:01 ` Jason Gunthorpe
[not found] ` <20171102200158.GU18874-uk2M96/98Pc@public.gmane.org>
2017-11-05 7:25 ` Leon Romanovsky
2017-11-22 17:47 ` Alex Margolin
[not found] ` <VI1PR05MB1278EA7700D1BEB63383FC52B9200-79XLn2atqDMOK6E67s+DINqRiQSDpxhJvxpqHgZTriW3zl9H0oFU5g@public.gmane.org>
2017-11-22 18:07 ` Jason Gunthorpe
[not found] ` <20171122180731.GS18272-uk2M96/98Pc@public.gmane.org>
2017-11-22 20:09 ` Alex Margolin
2017-11-23 9:14 ` Moni Shoua
[not found] ` <CAG9sBKPqVwbS0cXQPTdWCx7vwWaq5EMeghnPMEHrMZZsSsEu_g-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-11-23 17:57 ` Jason Gunthorpe [this message]
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=20171123175715.GA30099@ziepe.ca \
--to=jgg-uk2m96/98pc@public.gmane.org \
--cc=alexma-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
--cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=monis-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox