All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liran Liss <liranl-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>
To: Jason Gunthorpe
	<jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
Cc: "Hefty,
	Sean" <sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org>,
	Roland Dreier <rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org>,
	Aleksey Senin <aleksey-192fA4vuk7xBDLzU/O5InQ@public.gmane.org>,
	linux-rdma <linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org>,
	"monis-smomgflXvOZWk0Htik3J/w@public.gmane.org"
	<monis-smomgflXvOZWk0Htik3J/w@public.gmane.org>,
	"alekseys-smomgflXvOZWk0Htik3J/w@public.gmane.org"
	<alekseys-smomgflXvOZWk0Htik3J/w@public.gmane.org>,
	"yiftahs-smomgflXvOZWk0Htik3J/w@public.gmane.org"
	<yiftahs-smomgflXvOZWk0Htik3J/w@public.gmane.org>,
	Tziporet Koren <tziporet-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org>,
	"alexr-smomgflXvOZWk0Htik3J/w@public.gmane.org"
	<alexr-smomgflXvOZWk0Htik3J/w@public.gmane.org>
Subject: RE: When IBoE will be merged to upstream?
Date: Thu, 1 Jul 2010 14:50:55 +0300	[thread overview]
Message-ID: <E113D394D7C5DB4F8FF691FA7EE9DB4439BA54B70E@MTLMAIL.mtl.com> (raw)
In-Reply-To: <20100625155755.GC4630-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>

Jason,

There are also good reasons why the RoCE standard left the syntax of address handles.
First, it keeps the Verbs unchanged. Even if you are using rdmacm to make connections, you still have to inspect address handles when "connecting" to UD QPs or joining multicast addresses.
In addition, each incoming packet generates a CQE, whose L2 fields also need to be inspected.

Second, making Ethernet L2 fields explicit has implications beyond the address handle and CQE formats. Specifically, a lot of the IBTA defined MADs must be modified as well.
The most evident example is the CM protocol, which has L2 fields in its payloads.

Third, RoCE is not IB; its all about making RDMA user-friendly to Ethernet users.
Most importantly, we don't want to change the way Ethernet networks are managed.
This means that admins configure their normal network interfaces, define VLAN sub-interfaces, assign IP addresses (or use DHCP), and then work with RoCE using IP-mapped addresses, which reference the same IP addresses they use for their Ethernet interfaces.
So, regarding our VLAN discussion:
- RoCE gids are L3 addresses, which are not (necessarily) of link-local scope; people will mostly use IP-mapped gids of global scope.
- These gids will map to an IP address, which then can resolve to an outgoing vlan device exactly as in Ethernet.

We have a specification, we have an implementation, and we have clean way of passing RoCE L2 information to user-space via address handles.
I don't see any substantial reason to change the basic approach.

Regards,
--Liran


-----Original Message-----
From: Jason Gunthorpe [mailto:jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org] 
Sent: Friday, June 25, 2010 6:58 PM
To: Liran Liss
Cc: Hefty, Sean; Roland Dreier; Aleksey Senin; linux-rdma; monis-smomgflXvOZWk0Htik3J/w@public.gmane.org; alekseys-smomgflXvOZWk0Htik3J/w@public.gmane.org; yiftahs-smomgflXvOZWk0Htik3J/w@public.gmane.org; Tziporet Koren; alexr-smomgflXvOZWk0Htik3J/w@public.gmane.org
Subject: Re: When IBoE will be merged to upstream?

On Fri, Jun 25, 2010 at 11:04:28AM +0300, Liran Liss wrote:

> VLANs are part of L2 in Ethernet -- when you resolve a destination
> L3 address to an L2 address, you get the outgoing interface, which 
> also determines the VLAN.  I think this approach has an advantage over 
> an RDMA device per VLAN in that you keep the standard OS VLAN 
> management (vconfig).

Except that in RoCE all L3 addresses are link local GIDs, which must be scoped to an interface and cannot be resolved by routing to a specific interface. vconfig creates child ethernet devices, I think you have no choice but to do the same for RDMA. The GID, when it is resolved, must be scoped to the RDMA device it is going to be bound to, which in turn must be bound to a VLAN.

(BTW, Sean, did AF_IB's sockaddr include a scoping field, and did you figure out some way to make that work?)

> I wouldn't judge the RoCE spec so quickly --- it guarantees that rdma 
> application binaries could run on any network.  What do you gain by 
> exposing Eth-specific L2 params in the address handle?

Well, 1) invariably that is how the hardware must work, and verbs is about exposing that interface to userspace 2) You don't suddenly make AH setup require network traffic, and potentitally large time delays 3) it keeps the whole RoCE architecture far more consistent with IB.

You can pose the same question for IB, why doesn't AH resolution resolve the GID? There are lots of good answers :)

Also bear in mind that APM is entirely possible over RoCE and doing that will require a finer touch for managing the data in the AH's.

What do you get by doing all this extra work? I say nothing at all. Users won't even be able to tell the difference as long as they use rdmacm to setup the connections.

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:[~2010-07-01 11:50 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-20  6:18 When IBoE will be merged to upstream? Aleksey Senin
     [not found] ` <AANLkTikXzoaRl61ivsc7fm8EdO9Ucz4iGGfclFOQl3kK-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2010-06-23 23:23   ` Roland Dreier
     [not found]     ` <adabpb1s58c.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-06-24 15:42       ` Liran Liss
     [not found]         ` <E113D394D7C5DB4F8FF691FA7EE9DB4439A78AFE88-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-06-24 18:05           ` Hefty, Sean
     [not found]             ` <CF9C39F99A89134C9CF9C4CCB68B8DDF259E7DE3D0-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-06-24 18:41               ` Liran Liss
     [not found]                 ` <E113D394D7C5DB4F8FF691FA7EE9DB4439A78AFF16-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-06-24 20:37                   ` Jason Gunthorpe
     [not found]                     ` <20100624203701.GA4630-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-06-25  8:04                       ` Liran Liss
     [not found]                         ` <E113D394D7C5DB4F8FF691FA7EE9DB4439A78B0042-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-06-25 15:57                           ` Jason Gunthorpe
     [not found]                             ` <20100625155755.GC4630-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-06-25 16:54                               ` Hefty, Sean
2010-07-01 11:50                               ` Liran Liss [this message]
     [not found]                                 ` <E113D394D7C5DB4F8FF691FA7EE9DB4439BA54B70E-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-07-02  0:20                                   ` Hefty, Sean
     [not found]                                     ` <CF9C39F99A89134C9CF9C4CCB68B8DDF25A1002175-osO9UTpF0USkrb+BlOpmy7fspsVTdybXVpNB7YpNyf8@public.gmane.org>
2010-07-02  7:42                                       ` Jason Gunthorpe
2010-07-02  7:35                                   ` Jason Gunthorpe
2010-07-03 20:34                                   ` Roland Dreier
     [not found]                                     ` <adak4pcnw3c.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-07-04 17:03                                       ` Liran Liss
     [not found]                                         ` <E113D394D7C5DB4F8FF691FA7EE9DB443A8E048000-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-07-06  6:44                                           ` Or Gerlitz
     [not found]                                             ` <4C32D0BD.3030902-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-07-06 11:01                                               ` Liran Liss
     [not found]                                                 ` <E113D394D7C5DB4F8FF691FA7EE9DB443A8E2E552A-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-07-07  6:00                                                   ` Or Gerlitz
     [not found]                                                     ` <4C3417FA.7000600-hKgKHo2Ms0FWk0Htik3J/w@public.gmane.org>
2010-07-07  6:13                                                       ` Jason Gunthorpe
2010-07-10  8:55                                                       ` Liran Liss
     [not found]                                                         ` <E113D394D7C5DB4F8FF691FA7EE9DB443AAB6D59C0-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-07-11  4:34                                                           ` Jason Gunthorpe
     [not found]                                                             ` <20100711043449.GA31404-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-07-12  7:58                                                               ` Liran Liss
     [not found]                                                                 ` <E113D394D7C5DB4F8FF691FA7EE9DB443AACB08EA5-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-07-12 16:21                                                                   ` Jason Gunthorpe
     [not found]                                                                     ` <20100712162131.GB15392-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-07-13  8:26                                                                       ` Liran Liss
     [not found]                                                                         ` <E113D394D7C5DB4F8FF691FA7EE9DB443AACDEE865-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-07-13 19:31                                                                           ` Jason Gunthorpe
     [not found]                                                                             ` <20100713193138.GA12614-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-07-15 10:55                                                                               ` Liran Liss
     [not found]                                                                                 ` <E113D394D7C5DB4F8FF691FA7EE9DB443ABB321006-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-07-15 16:59                                                                                   ` Jason Gunthorpe
2010-07-20  5:28                                                                       ` Paul Grun
2010-07-20 17:06                                                                         ` Jason Gunthorpe
2010-07-12 16:43                                                                   ` Hefty, Sean
2010-07-12 21:20                                                                   ` Roland Dreier
     [not found]                                                                     ` <adatyo4xuqx.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-07-13 19:38                                                                       ` Jason Gunthorpe
     [not found]                                                                         ` <20100713193828.GB12614-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2010-07-13 21:20                                                                           ` Roland Dreier
     [not found]                                                                             ` <ada8w5fxenn.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-07-15 11:14                                                                               ` Liran Liss
     [not found]                                                                                 ` <E113D394D7C5DB4F8FF691FA7EE9DB443ABB321050-WQlSmcKwN8Te+A/uUDamNg@public.gmane.org>
2010-07-15 17:21                                                                                   ` Roland Dreier
     [not found]                                                                                     ` <adalj9cveyd.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-07-15 17:53                                                                                       ` Roland Dreier
2010-07-15 19:20                                                                                       ` Alex Rosenbaum
     [not found]                                                                                         ` <7E95F01E94AB484F83061FCFA35B39F87A7D2C-QfUkFaTmzUSUvQqKE/ONIwC/G2K4zDHf@public.gmane.org>
2010-07-15 20:03                                                                                           ` Roland Dreier
     [not found]                                                                                             ` <ada1vb4v7fl.fsf-BjVyx320WGW9gfZ95n9DRSW4+XlvGpQz@public.gmane.org>
2010-07-20 20:50                                                                                               ` Liran Liss
2010-07-15 11:00                                                                       ` Liran Liss

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=E113D394D7C5DB4F8FF691FA7EE9DB4439BA54B70E@MTLMAIL.mtl.com \
    --to=liranl-vpraknaxozvs1mouv/rt9w@public.gmane.org \
    --cc=aleksey-192fA4vuk7xBDLzU/O5InQ@public.gmane.org \
    --cc=alekseys-smomgflXvOZWk0Htik3J/w@public.gmane.org \
    --cc=alexr-smomgflXvOZWk0Htik3J/w@public.gmane.org \
    --cc=jgunthorpe-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org \
    --cc=linux-rdma-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
    --cc=monis-smomgflXvOZWk0Htik3J/w@public.gmane.org \
    --cc=rdreier-FYB4Gu1CFyUAvxtiuMwx3w@public.gmane.org \
    --cc=sean.hefty-ral2JQCrhuEAvxtiuMwx3w@public.gmane.org \
    --cc=tziporet-VPRAkNaXOzVS1MOuV/RT9w@public.gmane.org \
    --cc=yiftahs-smomgflXvOZWk0Htik3J/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.