aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/cma.c
diff options
context:
space:
mode:
authorSean Hefty <sean.hefty@intel.com>2009-11-19 12:57:18 -0800
committerRoland Dreier <rolandd@cisco.com>2009-11-19 12:57:18 -0800
commitc4315d85f9b76834289fd503796c01b8311c4b84 (patch)
tree12a74b92f3b00c8d515811e131c850402cd1588a /drivers/infiniband/core/cma.c
parentd2e0886245aa9eebc1a4710c861d263b09eac493 (diff)
downloadkernel_samsung_smdk4412-c4315d85f9b76834289fd503796c01b8311c4b84.zip
kernel_samsung_smdk4412-c4315d85f9b76834289fd503796c01b8311c4b84.tar.gz
kernel_samsung_smdk4412-c4315d85f9b76834289fd503796c01b8311c4b84.tar.bz2
IB/addr: Store net_device type instead of translating to RDMA transport
The struct rdma_dev_addr stores net_device address information: the source device address, destination hardware address, and broadcast address. For consistency, store the net_device type rather than converting it to the rdma_node_type. The type indicates the format of the various hardware addresses, which is what we're concerned with, and not the RDMA node type that the address may map to. Signed-off-by: Sean Hefty <sean.hefty@intel.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband/core/cma.c')
-rw-r--r--drivers/infiniband/core/cma.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/infiniband/core/cma.c b/drivers/infiniband/core/cma.c
index 699ad12..b305b5c 100644
--- a/drivers/infiniband/core/cma.c
+++ b/drivers/infiniband/core/cma.c
@@ -330,11 +330,11 @@ static int cma_acquire_dev(struct rdma_id_private *id_priv)
union ib_gid gid;
int ret = -ENODEV;
- switch (rdma_node_get_transport(dev_addr->dev_type)) {
- case RDMA_TRANSPORT_IB:
+ switch (dev_addr->dev_type) {
+ case ARPHRD_INFINIBAND:
ib_addr_get_sgid(dev_addr, &gid);
break;
- case RDMA_TRANSPORT_IWARP:
+ case ARPHRD_ETHER:
iw_addr_get_sgid(dev_addr, &gid);
break;
default: