Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-27 Thread ira.weiny
On Fri, Apr 24, 2015 at 02:53:37PM +, Liran Liss wrote: > > From: ira.weiny [mailto:ira.we...@intel.com] > > [snip] > > > > > > > > > > 2)The name rdma_tech_* is lame. > > > > rdma_transport_*(), adhering to the above (*) remark, is much better. > > > > For example, both IB and ROCE *do* use

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-27 Thread ira.weiny
On Fri, Apr 24, 2015 at 02:44:29PM +, Liran Liss wrote: > > From: Michael Wang [mailto:yun.w...@profitbricks.com] > > > > [snip] > > > > > > Depends on who is "we". > > > For ULPs, you are probably right. > > > > > > However, core services (e.g., mad management, CM, SA) do care about > >

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-27 Thread ira.weiny
On Fri, Apr 24, 2015 at 10:42:26AM -0600, Jason Gunthorpe wrote: > On Fri, Apr 24, 2015 at 03:00:15PM +, Liran Liss wrote: > > > Currently, the only code in the kernel that has an SMI interface is IB. > > When OPA is introduced, add the proper helper. > > We already have tests checking for

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-27 Thread ira.weiny
On Fri, Apr 24, 2015 at 02:53:37PM +, Liran Liss wrote: From: ira.weiny [mailto:ira.we...@intel.com] [snip] 2)The name rdma_tech_* is lame. rdma_transport_*(), adhering to the above (*) remark, is much better. For example, both IB and ROCE *do* use the same transport.

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-27 Thread ira.weiny
On Fri, Apr 24, 2015 at 10:42:26AM -0600, Jason Gunthorpe wrote: On Fri, Apr 24, 2015 at 03:00:15PM +, Liran Liss wrote: Currently, the only code in the kernel that has an SMI interface is IB. When OPA is introduced, add the proper helper. We already have tests checking for SMI is

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-27 Thread ira.weiny
On Fri, Apr 24, 2015 at 02:44:29PM +, Liran Liss wrote: From: Michael Wang [mailto:yun.w...@profitbricks.com] [snip] Depends on who is we. For ULPs, you are probably right. However, core services (e.g., mad management, CM, SA) do care about various details. In some

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-24 Thread Jason Gunthorpe
On Fri, Apr 24, 2015 at 03:00:15PM +, Liran Liss wrote: > Currently, the only code in the kernel that has an SMI interface is IB. > When OPA is introduced, add the proper helper. We already have tests checking for SMI is supported so QP0 can be created, this is to support ROCEE > All I am

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-24 Thread Michael Wang
2015/4/21/951). >> >> Better discussed in another thread. >> >>> >>>>> >>>>> 8) Remove patch [PATCH v5 26/27] IB/Verbs: Clean up rdma_ib_or_iboe(). >>>>> We do need a transport qualifier, as exemplified in comment 5) >>>>> above, and >>

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-24 Thread Liran Liss
> From: Hefty, Sean [mailto:sean.he...@intel.com] [snip] > > > So, I think that our "old-transport" below is just fine. > > > No need to change it (and you aren't, since it is currently > > > implemented > > as a function). > > > > I think there is a need to change this. Encoding the transport

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-24 Thread Liran Liss
tter discussed in another thread. > > > > >>> > >>> 8) Remove patch [PATCH v5 26/27] IB/Verbs: Clean up rdma_ib_or_iboe(). > >>> We do need a transport qualifier, as exemplified in comment 5) > >>> above, and > >> for a complete clean m

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-24 Thread Liran Liss
From: Hefty, Sean [mailto:sean.he...@intel.com] [snip] So, I think that our old-transport below is just fine. No need to change it (and you aren't, since it is currently implemented as a function). I think there is a need to change this. Encoding the transport into the node

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-24 Thread Liran Liss
the logical was right, I really don't want folks to focus on this issue since it won't broken anything and can be easily changed once we have the agreement. Regards, Michael Wang OK Regards, Michael Wang Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Since v4

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-24 Thread Michael Wang
we have the agreement. Regards, Michael Wang OK Regards, Michael Wang Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please remind me if anything missed :-P

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-24 Thread Jason Gunthorpe
On Fri, Apr 24, 2015 at 03:00:15PM +, Liran Liss wrote: Currently, the only code in the kernel that has an SMI interface is IB. When OPA is introduced, add the proper helper. We already have tests checking for SMI is supported so QP0 can be created, this is to support ROCEE All I am

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-23 Thread Michael Wang
On 04/22/2015 07:10 PM, ira.weiny wrote: > On Wed, Apr 22, 2015 at 10:59:52AM -0400, Doug Ledford wrote: >> On Tue, 2015-04-21 at 23:36 +, Liran Liss wrote: > > [snip] > >>> >>> 2)The name rdma_tech_* is lame. >>> rdma_transport_*(), adhering to the above (*) remark, is much better. >>>

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-23 Thread Michael Wang
On 04/22/2015 06:57 PM, Jason Gunthorpe wrote: > On Wed, Apr 22, 2015 at 10:59:52AM -0400, Doug Ledford wrote: > >>> 2)The name rdma_tech_* is lame. >>> rdma_transport_*(), adhering to the above (*) remark, is much better. >>> For example, both IB and ROCE *do* use the same transport. >> >> I

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-23 Thread Michael Wang
been used >> previously. >> >> This helper is just to make the review more easier, we won't need it >> internally, not to mention after bitmask was introduced :-) >> > > The same... > >>> >>> >>> Putting it all together >>>

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-23 Thread Michael Wang
On 04/22/2015 06:57 PM, Jason Gunthorpe wrote: On Wed, Apr 22, 2015 at 10:59:52AM -0400, Doug Ledford wrote: 2)The name rdma_tech_* is lame. rdma_transport_*(), adhering to the above (*) remark, is much better. For example, both IB and ROCE *do* use the same transport. I especially want

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-23 Thread Michael Wang
On 04/22/2015 07:10 PM, ira.weiny wrote: On Wed, Apr 22, 2015 at 10:59:52AM -0400, Doug Ledford wrote: On Tue, 2015-04-21 at 23:36 +, Liran Liss wrote: [snip] 2)The name rdma_tech_* is lame. rdma_transport_*(), adhering to the above (*) remark, is much better. For example, both IB

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-23 Thread Michael Wang
anything and can be easily changed once we have the agreement. Regards, Michael Wang Regards, Michael Wang Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread ira.weiny
On Wed, Apr 22, 2015 at 10:59:52AM -0400, Doug Ledford wrote: > On Tue, 2015-04-21 at 23:36 +, Liran Liss wrote: [snip] > > > > 2)The name rdma_tech_* is lame. > > rdma_transport_*(), adhering to the above (*) remark, is much better. > > For example, both IB and ROCE *do* use the same

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Jason Gunthorpe
On Wed, Apr 22, 2015 at 10:59:52AM -0400, Doug Ledford wrote: > > 2)The name rdma_tech_* is lame. > > rdma_transport_*(), adhering to the above (*) remark, is much better. > > For example, both IB and ROCE *do* use the same transport. > > I especially want to second this. I haven't really been

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Dave Goodell (dgoodell)
On Apr 21, 2015, at 6:36 PM, Liran Liss wrote: > An ib_dev (or a port of) should be distinguished by 3 qualifiers: > - The link layer: > -- Ethernet (shared by iWARP, USNIC, and ROCE) > -- Infiniband > > - The transport (*) > -- IBTA transport (shared by IB and ROCE) > -- iWARP transport > --

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Hefty, Sean
> > So, I think that our "old-transport" below is just fine. > > No need to change it (and you aren't, since it is currently implemented > as a function). > > I think there is a need to change this. Encoding the transport into the > node > type is not a good idea. Having different "transport

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Jason Gunthorpe
On Wed, Apr 22, 2015 at 11:38:34AM +, Liran Liss wrote: > This is redundant. All IB ports have SMI, so if you know that you > are using an IB device, you know you have an SMI. You should really go back and read the whole thread, this has already been discussed. The patch set was developed

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Liran Liss
won't need it > internally, not to mention after bitmask was introduced :-) > The same... > > > > > > Putting it all together > > == > > > > We are left with the following helpers: > > - rdma_is_ib_transport() > > - rdm

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Doug Ledford
On Tue, 2015-04-21 at 23:36 +, Liran Liss wrote: > Hi Michael, > > The spirit of this patch-set is great, but I think that we need to clarify > some concepts. > Since this will affect the whole patch-set, I am laying out my concerns here > instead. > > A suggestion for the resulting

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Michael Wang
ot; vs "requires" vs "uses" does not matter. > > Regardless we still need more granularity than "Transport" and "Link Layer" > for many > of the code choices. > > The result of this series is pretty explicit and much cleaner as to what the

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Michael Wang
t; - rdma_has_gsi() - complements smi; can be used by the mad code for clarity > - rdma_has_sa() > - rdma_has_cm() > - rdma_has_mcast() I think we can put the discussion on name and new helpers in future, currently let's focus on these basic reform and make them working stably ;-) Rega

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Michael Wang
On 04/22/2015 02:28 AM, ira.weiny wrote: [snip] >> >> Highlights: >> The patch set covered a wide range of IB stuff, thus for those who are >> familiar with the particular part, your suggestion would be invaluable >> ;-) >> >> Patch 1#~15# included all the logical reform, 16#~25#

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Hefty, Sean
So, I think that our old-transport below is just fine. No need to change it (and you aren't, since it is currently implemented as a function). I think there is a need to change this. Encoding the transport into the node type is not a good idea. Having different transport semantics

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Jason Gunthorpe
On Wed, Apr 22, 2015 at 11:38:34AM +, Liran Liss wrote: This is redundant. All IB ports have SMI, so if you know that you are using an IB device, you know you have an SMI. You should really go back and read the whole thread, this has already been discussed. The patch set was developed

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Liran Liss
think we can put the discussion on name and new helpers in future, currently let's focus on these basic reform and make them working stably ;-) It's not just the names, it's their semantics. Any problems with the names proposed above? Regards, Michael Wang Subject: [PATCH v5 00/27] IB

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Doug Ledford
On Tue, 2015-04-21 at 23:36 +, Liran Liss wrote: Hi Michael, The spirit of this patch-set is great, but I think that we need to clarify some concepts. Since this will affect the whole patch-set, I am laying out my concerns here instead. A suggestion for the resulting management

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread ira.weiny
On Wed, Apr 22, 2015 at 10:59:52AM -0400, Doug Ledford wrote: On Tue, 2015-04-21 at 23:36 +, Liran Liss wrote: [snip] 2)The name rdma_tech_* is lame. rdma_transport_*(), adhering to the above (*) remark, is much better. For example, both IB and ROCE *do* use the same transport.

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Jason Gunthorpe
On Wed, Apr 22, 2015 at 10:59:52AM -0400, Doug Ledford wrote: 2)The name rdma_tech_* is lame. rdma_transport_*(), adhering to the above (*) remark, is much better. For example, both IB and ROCE *do* use the same transport. I especially want to second this. I haven't really been happy

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Dave Goodell (dgoodell)
On Apr 21, 2015, at 6:36 PM, Liran Liss lir...@mellanox.com wrote: An ib_dev (or a port of) should be distinguished by 3 qualifiers: - The link layer: -- Ethernet (shared by iWARP, USNIC, and ROCE) -- Infiniband - The transport (*) -- IBTA transport (shared by IB and ROCE) -- iWARP

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Michael Wang
. The new interface is simply using the old implementation as a stepping stone. Ira Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please remind me if anything missed :-P

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Michael Wang
On 04/22/2015 02:28 AM, ira.weiny wrote: [snip] Highlights: The patch set covered a wide range of IB stuff, thus for those who are familiar with the particular part, your suggestion would be invaluable ;-) Patch 1#~15# included all the logical reform, 16#~25# introduced the

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-22 Thread Michael Wang
for clarity - rdma_has_sa() - rdma_has_cm() - rdma_has_mcast() I think we can put the discussion on name and new helpers in future, currently let's focus on these basic reform and make them working stably ;-) Regards, Michael Wang Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread ira.weiny
the function names. "cap" vs "rdma" does not really matter to me. Likewise "has" vs "requires" vs "uses" does not matter. Regardless we still need more granularity than "Transport" and "Link Layer" for many of the code choices. Th

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread ira.weiny
On Mon, Apr 20, 2015 at 10:28:57AM +0200, Michael Wang wrote: > > Since v4: > * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, > Roland, Ira and Steve :-) Please remind me if anything missed :-P > * Fix logical issue inside 3#, 14# > * Refine 3#, 4#, 5# with label

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread Liran Liss
- rdma_is_iwarp_transport() - rdma_is_usnic_transport() - rdma_is_iboe() - rdma_has_mad() - rdma_has_smi() - rdma_has_gsi() - complements smi; can be used by the mad code for clarity - rdma_has_sa() - rdma_has_cm() - rdma_has_mcast() > Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers > > > Since v4:

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread Michael Wang
nox.co.il >> Cc: Tom Tucker; Steve Wise; Hoang-Nam Nguyen; Christoph Raisch; Mike >> Marciniszyn; Eli Cohen; Faisal Latif; Jack Morgenstein; Or Gerlitz; Haggai >> Eran; >> Ira Weiny; Tom Talpey; Jason Gunthorpe; Doug Ledford >> Subject: Re: [PATCH v5 00/27] IB/Verbs: I

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread Devesh Sharma
n; Faisal Latif; Jack Morgenstein; Or Gerlitz; Haggai > Eran; > Ira Weiny; Tom Talpey; Jason Gunthorpe; Doug Ledford > Subject: Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers > > Hi, Devesh > > On 04/21/2015 07:41 AM, Devesh Sharma wrote: > > Hi Michael, > > > &

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread Michael Wang
niszyn; Eli Cohen; Faisal Latif; Jack Morgenstein; Or Gerlitz; Haggai >> Eran; >> Ira Weiny; Tom Talpey; Jason Gunthorpe; Doug Ledford; Michael Wang >> Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers >> >> >> Since v4: >> * Thanks for the commen

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread Michael Wang
Talpey; Jason Gunthorpe; Doug Ledford; Michael Wang Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please remind me if anything missed :-P * Fix logical issue inside 3

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread Michael Wang
Marciniszyn; Eli Cohen; Faisal Latif; Jack Morgenstein; Or Gerlitz; Haggai Eran; Ira Weiny; Tom Talpey; Jason Gunthorpe; Doug Ledford Subject: Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Hi, Devesh On 04/21/2015 07:41 AM, Devesh Sharma wrote: Hi Michael, is there a specific git

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread ira.weiny
implementation as a stepping stone. Ira Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please remind me if anything missed :-P * Fix logical issue inside 3#, 14

Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread ira.weiny
On Mon, Apr 20, 2015 at 10:28:57AM +0200, Michael Wang wrote: Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please remind me if anything missed :-P * Fix logical issue inside 3#, 14# * Refine 3#, 4#, 5# with label 'free' *

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread Liran Liss
() - rdma_is_iboe() - rdma_has_mad() - rdma_has_smi() - rdma_has_gsi() - complements smi; can be used by the mad code for clarity - rdma_has_sa() - rdma_has_cm() - rdma_has_mcast() Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Since v4: * Thanks for the comments from Hal, Sean, Tom

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-21 Thread Devesh Sharma
; Or Gerlitz; Haggai Eran; Ira Weiny; Tom Talpey; Jason Gunthorpe; Doug Ledford Subject: Re: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Hi, Devesh On 04/21/2015 07:41 AM, Devesh Sharma wrote: Hi Michael, is there a specific git branch available to pull out all the patches

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-20 Thread Devesh Sharma
an; > Ira Weiny; Tom Talpey; Jason Gunthorpe; Doug Ledford; Michael Wang > Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers > > > Since v4: > * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, > Roland, Ira and Steve :-) Please remind me if anything

[PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-20 Thread Michael Wang
Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please remind me if anything missed :-P * Fix logical issue inside 3#, 14# * Refine 3#, 4#, 5# with label 'free' * Rework 10# to stop using port 1 when port already assigned There

RE: [PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-20 Thread Devesh Sharma
Gunthorpe; Doug Ledford; Michael Wang Subject: [PATCH v5 00/27] IB/Verbs: IB Management Helpers Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please remind me if anything missed :-P * Fix logical issue inside 3#, 14# * Refine 3

[PATCH v5 00/27] IB/Verbs: IB Management Helpers

2015-04-20 Thread Michael Wang
Since v4: * Thanks for the comments from Hal, Sean, Tom, Or Gerlitz, Jason, Roland, Ira and Steve :-) Please remind me if anything missed :-P * Fix logical issue inside 3#, 14# * Refine 3#, 4#, 5# with label 'free' * Rework 10# to stop using port 1 when port already assigned There