public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
To: Matan Barak <matanb-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
Cc: Haggai Eran <haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Roland Dreier <roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>,
	linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
	Or Gerlitz <ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Eli Cohen <eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>,
	Yann Droneaud <ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@public.gmane.org>,
	Ira Weiny <ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>
Subject: Re: [PATCH v1 1/3] IB/core: Add support for extended query device caps
Date: Thu, 19 Feb 2015 11:27:50 -0700	[thread overview]
Message-ID: <20150219182750.GA30093@obsidianresearch.com> (raw)
In-Reply-To: <CAAKD3BAPL82RC5u5uxJg9QPgiM+05TcnURzO14Y5OKYxhYrmqw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>

On Thu, Feb 19, 2015 at 02:30:29PM +0200, Matan Barak wrote:

> I think we should all agree about the extension verbs mechanism before
> taking it further.
> IMHO, using comp_mask only for fields that their valid value != 0 is confusing.
> For example, an old kernel should support a command if:
> (a) it knows all its valid bits
> (b) all fields after the size it knows is 0
> 
> In the old schema, the kernel only needs to look at the comp_mask
> bits and execute the command or reject it.

It doesn't really change anything, the kernel still has to go field by
field to check, all that happens is

if ((comp_mask & BIT) && offsetof(field..) < size)
  // field is valid

becomes

if (offsetof(field..) < size && field != 0)
  // field is valid

> Furthermore, ibv_create_flow and ibv_destroy_flow were already
> accepted using the old schema.

IIRC they didn't have values that could meaningfully be 0?

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

  parent reply	other threads:[~2015-02-19 18:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-18  7:26 [PATCH v1 0/3] Re-introduce extended query device verb with ODP support Haggai Eran
     [not found] ` <1424244364-6242-1-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-18  7:26   ` [PATCH v1 1/3] IB/core: Add support for extended query device caps Haggai Eran
     [not found]     ` <1424244364-6242-2-git-send-email-haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-19 12:30       ` Matan Barak
     [not found]         ` <CAAKD3BAPL82RC5u5uxJg9QPgiM+05TcnURzO14Y5OKYxhYrmqw-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2015-02-19 18:27           ` Jason Gunthorpe [this message]
     [not found]             ` <20150219182750.GA30093-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2015-02-22  7:14               ` Haggai Eran
     [not found]                 ` <54E981DC.5050801-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
2015-02-22  9:56                   ` Matan Barak
2015-02-18  7:26   ` [PATCH v1 2/3] IB/core: Add on demand paging caps to ib_uverbs_ex_query_device Haggai Eran
2015-02-18  7:26   ` [PATCH v1 3/3] IB/mlx5: Enable the ODP capability query verb Haggai Eran

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=20150219182750.GA30093@obsidianresearch.com \
    --to=jgunthorpe-epgobjl8dl3ta4ec/59zmfatqe2ktcn/@public.gmane.org \
    --cc=eli-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=haggaie-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=ira.weiny-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=matanb-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org \
    --cc=ogerlitz-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org \
    --cc=roland-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
    --cc=ydroneaud-RlY5vtjFyJ3QT0dZR+AlfA@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