IB/core: Change rdma_protocol_iboe to roce
authorIra Weiny <ira.weiny@intel.com>
Thu, 14 May 2015 19:01:46 +0000 (15:01 -0400)
committerDoug Ledford <dledford@redhat.com>
Wed, 20 May 2015 19:58:19 +0000 (15:58 -0400)
After discussion upstream, it was agreed to transition the usage of iboe
in the kernel to roce.  This keeps our terminology consistent with what
was finalized in the IBTA Annex 16 and IBTA Annex 17 publications.

Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/core/cma.c
drivers/infiniband/core/ucma.c
include/rdma/ib_verbs.h
net/sunrpc/xprtrdma/svc_rdma_transport.c

index 1977f601a1ec2af96bcd7384ef6f61ee1bc9a2c0..ea92a0daa61cdc9fd6dc27492bf0dffca1581422 100644 (file)
@@ -391,7 +391,7 @@ static int cma_acquire_dev(struct rdma_id_private *id_priv,
        if (listen_id_priv) {
                cma_dev = listen_id_priv->cma_dev;
                port = listen_id_priv->id.port_num;
-               gidp = rdma_protocol_iboe(cma_dev->device, port) ?
+               gidp = rdma_protocol_roce(cma_dev->device, port) ?
                       &iboe_gid : &gid;
 
                ret = cma_validate_port(cma_dev->device, port, gidp,
@@ -409,7 +409,7 @@ static int cma_acquire_dev(struct rdma_id_private *id_priv,
                            listen_id_priv->id.port_num == port)
                                continue;
 
-                       gidp = rdma_protocol_iboe(cma_dev->device, port) ?
+                       gidp = rdma_protocol_roce(cma_dev->device, port) ?
                               &iboe_gid : &gid;
 
                        ret = cma_validate_port(cma_dev->device, port, gidp,
@@ -647,7 +647,7 @@ static int cma_modify_qp_rtr(struct rdma_id_private *id_priv,
 
        BUG_ON(id_priv->cma_dev->device != id_priv->id.device);
 
-       if (rdma_protocol_iboe(id_priv->id.device, id_priv->id.port_num)) {
+       if (rdma_protocol_roce(id_priv->id.device, id_priv->id.port_num)) {
                ret = rdma_addr_find_smac_by_sgid(&sgid, qp_attr.smac, NULL);
 
                if (ret)
@@ -1966,7 +1966,7 @@ int rdma_resolve_route(struct rdma_cm_id *id, int timeout_ms)
        atomic_inc(&id_priv->refcount);
        if (rdma_cap_ib_sa(id->device, id->port_num))
                ret = cma_resolve_ib_route(id_priv, timeout_ms);
-       else if (rdma_protocol_iboe(id->device, id->port_num))
+       else if (rdma_protocol_roce(id->device, id->port_num))
                ret = cma_resolve_iboe_route(id_priv);
        else if (rdma_protocol_iwarp(id->device, id->port_num))
                ret = cma_resolve_iw_route(id_priv, timeout_ms);
@@ -3325,7 +3325,7 @@ int rdma_join_multicast(struct rdma_cm_id *id, struct sockaddr *addr,
        list_add(&mc->list, &id_priv->mc_list);
        spin_unlock(&id_priv->lock);
 
-       if (rdma_protocol_iboe(id->device, id->port_num)) {
+       if (rdma_protocol_roce(id->device, id->port_num)) {
                kref_init(&mc->mcref);
                ret = cma_iboe_join_multicast(id_priv, mc);
        } else if (rdma_cap_ib_mcast(id->device, id->port_num))
@@ -3365,7 +3365,7 @@ void rdma_leave_multicast(struct rdma_cm_id *id, struct sockaddr *addr)
                        if (rdma_cap_ib_mcast(id->device, id->port_num)) {
                                ib_sa_free_multicast(mc->multicast.ib);
                                kfree(mc);
-                       } else if (rdma_protocol_iboe(id->device, id->port_num))
+                       } else if (rdma_protocol_roce(id->device, id->port_num))
                                kref_put(&mc->mcref, release_mc);
 
                        return;
index d42b816c781feae46884654539acc2d8ce5bb8d2..ad45469f7582dbe47788c5b1330803148c0b5dab 100644 (file)
@@ -725,7 +725,7 @@ static ssize_t ucma_query_route(struct ucma_file *file,
 
        if (rdma_cap_ib_sa(ctx->cm_id->device, ctx->cm_id->port_num))
                ucma_copy_ib_route(&resp, &ctx->cm_id->route);
-       else if (rdma_protocol_iboe(ctx->cm_id->device, ctx->cm_id->port_num))
+       else if (rdma_protocol_roce(ctx->cm_id->device, ctx->cm_id->port_num))
                ucma_copy_iboe_route(&resp, &ctx->cm_id->route);
        else if (rdma_protocol_iwarp(ctx->cm_id->device, ctx->cm_id->port_num))
                ucma_copy_iw_route(&resp, &ctx->cm_id->route);
index 73d1b1000785b26056396d8c8d70eb4889cab64b..3ebf0c019a66f9316562c70919f8bff485526818 100644 (file)
@@ -1832,7 +1832,7 @@ static inline bool rdma_protocol_ib(struct ib_device *device, u8 port_num)
        return device->port_immutable[port_num].core_cap_flags & RDMA_CORE_CAP_PROT_IB;
 }
 
-static inline bool rdma_protocol_iboe(struct ib_device *device, u8 port_num)
+static inline bool rdma_protocol_roce(struct ib_device *device, u8 port_num)
 {
        return device->port_immutable[port_num].core_cap_flags & RDMA_CORE_CAP_PROT_ROCE;
 }
@@ -1842,7 +1842,7 @@ static inline bool rdma_protocol_iwarp(struct ib_device *device, u8 port_num)
        return device->port_immutable[port_num].core_cap_flags & RDMA_CORE_CAP_PROT_IWARP;
 }
 
-static inline bool rdma_ib_or_iboe(struct ib_device *device, u8 port_num)
+static inline bool rdma_ib_or_roce(struct ib_device *device, u8 port_num)
 {
        return device->port_immutable[port_num].core_cap_flags &
                (RDMA_CORE_CAP_PROT_IB | RDMA_CORE_CAP_PROT_ROCE);
index 3df8320c6efea898680d9850e734947958531660..3f5750cf187ef420548f89417f0ae93d9208a0e5 100644 (file)
@@ -987,7 +987,7 @@ static struct svc_xprt *svc_rdma_accept(struct svc_xprt *xprt)
         */
        if (!rdma_protocol_iwarp(newxprt->sc_cm_id->device,
                                 newxprt->sc_cm_id->port_num) &&
-           !rdma_ib_or_iboe(newxprt->sc_cm_id->device,
+           !rdma_ib_or_roce(newxprt->sc_cm_id->device,
                             newxprt->sc_cm_id->port_num))
                goto errout;