[ofa-general] [PATCHv4 0/10] RDMAoE support

Eli Cohen eli at dev.mellanox.co.il
Wed Aug 5 01:27:51 PDT 2009


RDMA over Ethernet (RDMAoE) allows running the IB transport protocol using
Ethernet frames, enabling the deployment of IB semantics on lossless Ethernet
fabrics. RDMAoE packets are standard Ethernet frames with an IEEE assigned
Ethertype, a GRH, unmodified IB transport headers and payload.  IB subnet
management and SA services are not required for RDMAoE operation; Ethernet
management practices are used instead. RDMAoE encodes IP addresses into its
GIDs and resolves MAC addresses using the host IP stack. For multicast GIDs,
standard IP to MAC mappings apply.

To support RDMAoE, a new transport protocol was added to the IB core. An RDMA
device can have ports with different transports, which are identified by a port
transport attribute.  The RDMA Verbs API is syntactically unmodified. When
referring to RDMAoE ports, Address handles are required to contain GIDs while
LID fields are ignored. The Ethernet L2 information is subsequently obtained by
the vendor-specific driver (both in kernel- and user-space) while modifying QPs
to RTR and creating address handles.  As there is no SA in RDMAoE, the CMA code
is modified to fill the necessary path record attributes locally before sending
CM packets. Similarly, the CMA provides to the user the required address handle
attributes when processing SIDR requests and joining multicast groups.

In this patch set, an RDMAoE port is currently assigned a single GID, encoding
the IPv6 link-local address of the corresponding netdev; the CMA RDMAoE code
temporarily uses IPv6 link-local addresses as GIDs instead of the IP address
provided by the user, thereby supporting any IP address. In addition, multicast
packets currently use the broadcast MAC.

To enable RDMAoE with the mlx4 driver stack, both the mlx4_en and mlx4_ib
drivers must be loaded, and the netdevice for the corresponding RDMAoE port
must be running. Individual ports of a multi port HCA can be independently
configured as Ethernet (with support for RDMAoE) or IB, as is already the case.
We have successfully tested MPI, SDP, RDS, and native Verbs applications over
RDMAoE.

Following is a series of 10 patches based on version 2.6.30 of the Linux
kernel. This new series reflects changes based on feedback from the community
on the previous set of patches, and is tagged v4.

Changes from v3:
1. RDMA transport is determined on a per-port basis instead of the link-type
notion.
2. SA services are not provided for RDMAoE clients. CMA code is modified to
support RDMAoE transport types.
3. For brevity, GID to MAC resolution is currently restricted to link local
addresses.

Signed-off-by: Eli Cohen <eli at mellanox.co.il>
---

 b/drivers/infiniband/core/agent.c           |   12 -
 b/drivers/infiniband/core/cm.c              |   26 +-
 b/drivers/infiniband/core/cma.c             |   54 ++--
 b/drivers/infiniband/core/mad.c             |   42 ++-
 b/drivers/infiniband/core/multicast.c       |    5 
 b/drivers/infiniband/core/sa_query.c        |   40 ++-
 b/drivers/infiniband/core/ucm.c             |    8 
 b/drivers/infiniband/core/ucma.c            |    2 
 b/drivers/infiniband/core/ud_header.c       |  111 ++++++++++
 b/drivers/infiniband/core/user_mad.c        |    7 
 b/drivers/infiniband/core/uverbs.h          |    1 
 b/drivers/infiniband/core/uverbs_cmd.c      |   32 ++
 b/drivers/infiniband/core/uverbs_main.c     |    1 
 b/drivers/infiniband/core/verbs.c           |   12 -
 b/drivers/infiniband/hw/mlx4/ah.c           |  187 +++++++++++++---
 b/drivers/infiniband/hw/mlx4/main.c         |  309 +++++++++++++++++++++++++---
 b/drivers/infiniband/hw/mlx4/mlx4_ib.h      |   19 +
 b/drivers/infiniband/hw/mlx4/qp.c           |  172 ++++++++++-----
 b/drivers/infiniband/ulp/ipoib/ipoib_main.c |   12 -
 b/drivers/net/mlx4/en_main.c                |   15 +
 b/drivers/net/mlx4/en_port.c                |    4 
 b/drivers/net/mlx4/en_port.h                |    3 
 b/drivers/net/mlx4/fw.c                     |    3 
 b/drivers/net/mlx4/intf.c                   |   20 +
 b/drivers/net/mlx4/main.c                   |    6 
 b/drivers/net/mlx4/mlx4.h                   |    1 
 b/include/linux/mlx4/cmd.h                  |    1 
 b/include/linux/mlx4/device.h               |   31 ++
 b/include/linux/mlx4/driver.h               |   16 +
 b/include/linux/mlx4/qp.h                   |    8 
 b/include/rdma/ib_addr.h                    |   87 +++++++
 b/include/rdma/ib_pack.h                    |   26 ++
 b/include/rdma/ib_user_verbs.h              |   21 +
 b/include/rdma/ib_verbs.h                   |    9 
 b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c   |    3 
 b/net/sunrpc/xprtrdma/svc_rdma_transport.c  |    2 
 drivers/infiniband/core/cm.c                |    2 
 drivers/infiniband/core/cma.c               |  150 +++++++++++++
 drivers/infiniband/core/mad.c               |   55 +++-
 drivers/infiniband/core/ucm.c               |   12 -
 drivers/infiniband/core/ucma.c              |   25 +-
 drivers/infiniband/core/user_mad.c          |   27 +-
 drivers/infiniband/core/verbs.c             |   10 
 include/rdma/ib_verbs.h                     |   15 +
 44 files changed, 1333 insertions(+), 271 deletions(-)



More information about the general mailing list