* [RFC] naming for new QP types
@ 2010-07-01 15:36 Moni Shoua
[not found] ` <4C2CB5EC.1080501-hKgKHo2Ms0F+cjeuK/JdrQ@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Moni Shoua @ 2010-07-01 15:36 UTC (permalink / raw)
To: Roland Dreier
Cc: linux-rdma, Or Gerlitz, Walukiewicz, Miroslaw, Aleksey Senin
Hi,
This message follows a discussion about names for a new QP type (see http://www.mail-archive.com/linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org/msg04512.html) and precedes a patch set for RAW QP that we intend to send.
The patch requires changes in enum ib_qp_type
1. Rename IB_QPT_RAW_ETY to IB_QPT_RAW_ETHERTYPE - this is not really a requirement but an opportunity to improve an existing name.
2. Add new QP type - IBV_QPT_RAW_PACKET. I'll delay the comments for the new name to later, when the patches are submitted, but ask another question instead.
The xrc branch also includes modifications to the same structure and it adds a new type IBV_QPT_XRC before the end.
In general, will it be acceptable if we submit the patches so that after they are applied the structure will look like this
enum ib_qp_type {
/*
* IB_QPT_SMI and IB_QPT_GSI have to be the first two entries
* here (and in that order) since the MAD layer uses them as
* indices into a 2-entry table.
*/
IB_QPT_SMI,
IB_QPT_GSI,
IB_QPT_RC,
IB_QPT_UC,
IB_QPT_UD,
IB_QPT_RAW_IPV6,
IB_QPT_RAW_ETHERTYPE = 7,
IB_QPT_RAW_PACKET = 8
};
So when XRC is accepted we still keep the same values for the last 2?
thanks
MoniS
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [RFC] naming for new QP types
[not found] ` <4C2CB5EC.1080501-hKgKHo2Ms0F+cjeuK/JdrQ@public.gmane.org>
@ 2010-07-02 0:34 ` Hefty, Sean
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A1002191-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Hefty, Sean @ 2010-07-02 0:34 UTC (permalink / raw)
To: Moni Shoua, Roland Dreier
Cc: linux-rdma, Or Gerlitz, Walukiewicz, Miroslaw, Aleksey Senin
> In general, will it be acceptable if we submit the patches so that after
> they are applied the structure will look like this
>
> enum ib_qp_type {
> /*
> * IB_QPT_SMI and IB_QPT_GSI have to be the first two entries
> * here (and in that order) since the MAD layer uses them as
> * indices into a 2-entry table.
> */
> IB_QPT_SMI,
> IB_QPT_GSI,
>
> IB_QPT_RC,
> IB_QPT_UC,
> IB_QPT_UD,
> IB_QPT_RAW_IPV6,
> IB_QPT_RAW_ETHERTYPE = 7,
> IB_QPT_RAW_PACKET = 8
> };
>
> So when XRC is accepted we still keep the same values for the last 2?
Have the existing values been exposed to user space in any way, even if not defined by libibverbs?
- Sean
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [RFC] naming for new QP types
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A1002191-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2010-07-02 5:30 ` Moni Shoua
[not found] ` <7E95F01E94AB484F83061FCFA35B39F86D8875-QfUkFaTmzUSUvQqKE/ONIwC/G2K4zDHf@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Moni Shoua @ 2010-07-02 5:30 UTC (permalink / raw)
To: Hefty, Sean, Roland Dreier
Cc: linux-rdma, Or Gerlitz, Walukiewicz, Miroslaw, Aleksey Senin
Along with the patches to the kernel we will send a patch to libibverbs
to expose the new values
---------------------------------------
Moni Shoua| +972-54-5567934
-----Original Message-----
From: Hefty, Sean [mailto:sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org]
Sent: Friday, July 02, 2010 3:34 AM
To: Moni Shoua; Roland Dreier
Cc: linux-rdma; Or Gerlitz; Walukiewicz, Miroslaw; Aleksey Senin
Subject: RE: [RFC] naming for new QP types
> In general, will it be acceptable if we submit the patches so that
> after they are applied the structure will look like this
>
> enum ib_qp_type {
> /*
> * IB_QPT_SMI and IB_QPT_GSI have to be the first two entries
> * here (and in that order) since the MAD layer uses them as
> * indices into a 2-entry table.
> */
> IB_QPT_SMI,
> IB_QPT_GSI,
>
> IB_QPT_RC,
> IB_QPT_UC,
> IB_QPT_UD,
> IB_QPT_RAW_IPV6,
> IB_QPT_RAW_ETHERTYPE = 7,
> IB_QPT_RAW_PACKET = 8
> };
>
> So when XRC is accepted we still keep the same values for the last 2?
Have the existing values been exposed to user space in any way, even if
not defined by libibverbs?
- Sean
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [RFC] naming for new QP types
[not found] ` <7E95F01E94AB484F83061FCFA35B39F86D8875-QfUkFaTmzUSUvQqKE/ONIwC/G2K4zDHf@public.gmane.org>
@ 2010-07-02 15:36 ` Hefty, Sean
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A1002332-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
0 siblings, 1 reply; 5+ messages in thread
From: Hefty, Sean @ 2010-07-02 15:36 UTC (permalink / raw)
To: Moni Shoua, Roland Dreier
Cc: linux-rdma, Or Gerlitz, Walukiewicz, Miroslaw, Aleksey Senin
> Along with the patches to the kernel we will send a patch to libibverbs
> to expose the new values
I was actually asking if a user space app could access the existing definitions/values in any way. For example, if a user space app called create qp with a hard-coded value of 6, what would happen?
- Sean
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* RE: [RFC] naming for new QP types
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A1002332-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
@ 2010-07-04 8:26 ` Moni Shoua
0 siblings, 0 replies; 5+ messages in thread
From: Moni Shoua @ 2010-07-04 8:26 UTC (permalink / raw)
To: Hefty, Sean, Roland Dreier
Cc: linux-rdma, Or Gerlitz, Walukiewicz, Miroslaw, Aleksey Senin
If I understand you right this time then you ask what about will happen
if user calls create_qp() from user space with qp_type=6. Right?
I guess that this should be handled in code like with any other illegal
value.
---------------------------------------
Moni Shoua| +972-54-5567934
-----Original Message-----
From: Hefty, Sean [mailto:sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org]
Sent: Friday, July 02, 2010 6:37 PM
To: Moni Shoua; Roland Dreier
Cc: linux-rdma; Or Gerlitz; Walukiewicz, Miroslaw; Aleksey Senin
Subject: RE: [RFC] naming for new QP types
> Along with the patches to the kernel we will send a patch to
> libibverbs to expose the new values
I was actually asking if a user space app could access the existing
definitions/values in any way. For example, if a user space app called
create qp with a hard-coded value of 6, what would happen?
- Sean
--
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-07-04 8:26 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-01 15:36 [RFC] naming for new QP types Moni Shoua
[not found] ` <4C2CB5EC.1080501-hKgKHo2Ms0F+cjeuK/JdrQ@public.gmane.org>
2010-07-02 0:34 ` Hefty, Sean
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A1002191-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-07-02 5:30 ` Moni Shoua
[not found] ` <7E95F01E94AB484F83061FCFA35B39F86D8875-QfUkFaTmzUSUvQqKE/ONIwC/G2K4zDHf@public.gmane.org>
2010-07-02 15:36 ` Hefty, Sean
[not found] ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A1002332-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-07-04 8:26 ` Moni Shoua
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox