From: Jiri Pirko <jiri-rHqAuBHg3fBzbRFIqnYvSA@public.gmane.org>
To: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
Cc: Doug Ledford <dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>,
linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
Subject: Re: [PATCH rdma-next 2/6] IB/uverbs: Enable QP creation which is associated to underlay QP
Date: Wed, 31 May 2017 07:37:11 +0200 [thread overview]
Message-ID: <20170531053711.GA1882@nanopsycho> (raw)
In-Reply-To: <20170531042031.GG5406-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
Wed, May 31, 2017 at 06:20:31AM CEST, leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org wrote:
>On Tue, May 30, 2017 at 08:03:58PM +0200, Jiri Pirko wrote:
>> Tue, May 30, 2017 at 07:22:59PM CEST, leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org wrote:
>> >On Tue, May 30, 2017 at 10:15:14AM +0200, Jiri Pirko wrote:
>> >> Tue, May 30, 2017 at 09:58:45AM CEST, leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org wrote:
>> >> >On Tue, May 30, 2017 at 09:33:52AM +0200, Jiri Pirko wrote:
>> >> >> Tue, May 30, 2017 at 09:15:58AM CEST, leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org wrote:
>> >> >> >From: Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>> >> >> >
>> >> >> >Enable QP creation which is associated to underlay QP. This comes as a
>> >> >> >pre-patch for downstream patches in this series to enable flow steering
>> >> >> >from user space application on the underlay IPoIB QP.
>> >> >> >
>> >> >> >Signed-off-by: Yishai Hadas <yishaih-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org>
>> >> >> >Reviewed-by: Maor Gottlieb <maorg-VPRAkNaXOzVWk0Htik3J/w@public.gmane.org
>> >> >> >Signed-off-by: Leon Romanovsky <leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
>> >> >> >---
>> >> >>
>> >> >> [...]
>> >> >>
>> >> >>
>> >> >> >diff --git a/include/uapi/rdma/ib_user_verbs.h b/include/uapi/rdma/ib_user_verbs.h
>> >> >> >index 477d629f539d..422b20456975 100644
>> >> >> >--- a/include/uapi/rdma/ib_user_verbs.h
>> >> >> >+++ b/include/uapi/rdma/ib_user_verbs.h
>> >> >> >@@ -578,7 +578,7 @@ struct ib_uverbs_ex_create_qp {
>> >> >> > __u32 comp_mask;
>> >> >> > __u32 create_flags;
>> >> >> > __u32 rwq_ind_tbl_handle;
>> >> >> >- __u32 reserved1;
>> >> >> >+ __u32 associated_qpn;
>> >> >>
>> >> >> This breaks uapi...
>> >> >
>> >> >Not really, we are using comp_mask scheme to signal changes/predecessor
>> >> >of these structs. Users of this file and structs check comp_mask and
>> >> >access new fields only if they are exposed there.
>> >> >
>> >> >In this case, there are no users of reserved1 and hence it can be
>> >> >replace to the new field with corresponding comp_mask flag (IB_QP_CREATE_ASSOC_QPN)
>> >> >without worry of breakage.
>> >>
>> >> I, as an app could include ib_user_verbs.h and do:
>> >>
>> >> struct ib_uverbs_ex_create_qp something;
>> >>
>> >> something.reserved1 = 0;
>> >>
>> >> Than I won't compile, would I?
>> >
>> >You are right, the good thing that in IB world, there is no direct usage
>> >of these files and they are needed for rdma-core (libibverbs) library.
>>
>> Unfortunatelly, that does not make any difference. UAPI is UAPI...
>
>Yes, it makes. Changes in UAPI are allowed as long they don't break user
>space applications. In this case, there are no applications which uses
>this reserved fields directly.
How do you know? I might have one in my drawer :)
--
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
next prev parent reply other threads:[~2017-05-31 5:37 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-05-30 7:15 [PATCH rdma-next 0/6] Enable flow steering on IPoIB UD QP Leon Romanovsky
[not found] ` <20170530071602.8139-1-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-05-30 7:15 ` [PATCH rdma-next 1/6] IB/core: Enable QP creation which is associated to underlay QP Leon Romanovsky
[not found] ` <20170530071602.8139-2-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-05-30 16:04 ` Jason Gunthorpe
[not found] ` <20170530160447.GA21513-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-06-01 14:42 ` Yishai Hadas
[not found] ` <1d799662-bc2b-ed12-882c-42d12d1ed8a1-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org>
2017-06-05 15:36 ` Jason Gunthorpe
[not found] ` <CAFgAxU9c1SwehkCY3o0RZPO_CTHGJb2A1omjVvJvyabO0V57iQ@mail.gmail.com>
[not found] ` <CAFgAxU9c1SwehkCY3o0RZPO_CTHGJb2A1omjVvJvyabO0V57iQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-06 16:33 ` Jason Gunthorpe
[not found] ` <20170606163320.GC8671-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2017-06-07 12:23 ` Alex Rosenbaum
[not found] ` <CAFgAxU-=i2=yNnjE2kYHV0Re6Vrd=LyTB55q=p_1fc+zuotwvA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2017-06-07 17:44 ` Jason Gunthorpe
2017-05-30 7:15 ` [PATCH rdma-next 2/6] IB/uverbs: " Leon Romanovsky
[not found] ` <20170530071602.8139-3-leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org>
2017-05-30 7:33 ` Jiri Pirko
2017-05-30 7:58 ` Leon Romanovsky
[not found] ` <20170530075845.GA5406-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-30 8:00 ` Leon Romanovsky
2017-05-30 8:15 ` Jiri Pirko
2017-05-30 17:22 ` Leon Romanovsky
[not found] ` <20170530172259.GD5406-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-30 18:03 ` Jiri Pirko
2017-05-31 4:20 ` Leon Romanovsky
[not found] ` <20170531042031.GG5406-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-31 5:37 ` Jiri Pirko [this message]
2017-05-31 8:39 ` Leon Romanovsky
[not found] ` <20170531083955.GJ5406-U/DQcQFIOTAAJjI8aNfphQ@public.gmane.org>
2017-05-31 20:05 ` Hefty, Sean
2017-06-04 13:43 ` Doug Ledford
[not found] ` <1496583794.7171.134.camel-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2017-06-04 13:51 ` Jiri Pirko
[not found] ` <20170604135122.GC1910-6KJVSR23iU488b5SBfVpbw@public.gmane.org>
2017-06-04 14:25 ` Doug Ledford
2017-06-05 15:26 ` Jason Gunthorpe
2017-05-30 7:15 ` [PATCH rdma-next 3/6] IB/mlx5: Add support for underlay QP managing Leon Romanovsky
2017-05-30 7:16 ` [PATCH rdma-next 4/6] IB/mlx5: Add multicast flow steering support for underlay QP Leon Romanovsky
2017-05-30 7:16 ` [PATCH rdma-next 5/6] net/mlx5: Report enhanced capabilities for IPoIB Leon Romanovsky
2017-05-30 7:16 ` [PATCH rdma-next 6/6] IB/mlx5: Report RX checksum " Leon Romanovsky
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=20170531053711.GA1882@nanopsycho \
--to=jiri-rhqaubhg3fbzbrfiqnyvsa@public.gmane.org \
--cc=dledford-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org \
--cc=leon-DgEjT+Ai2ygdnm+yROfE0A@public.gmane.org \
--cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@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.