aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/core/sa_query.c
diff options
context:
space:
mode:
authorMatan Barak <matanb@mellanox.com>2015-10-15 18:38:53 +0300
committerDoug Ledford <dledford@redhat.com>2015-10-21 23:48:18 -0400
commitaa744cc01fe0f21dfbe2744d3fd5f2fb3244c9b3 (patch)
treeaf890efc73c2e3a18b04d90abb07281aff4e4367 /drivers/infiniband/core/sa_query.c
parentIB/cm: Remove the usage of smac and vid of qp_attr and cm_av (diff)
downloadlinux-dev-aa744cc01fe0f21dfbe2744d3fd5f2fb3244c9b3.tar.xz
linux-dev-aa744cc01fe0f21dfbe2744d3fd5f2fb3244c9b3.zip
IB/core: Remove smac and vlan id from qp_attr and ah_attr
Smac and vlan id could be resolved from the GID attribute, and thus these attributes aren't needed anymore. Removing them. Signed-off-by: Matan Barak <matanb@mellanox.com> Reviewed-By: Devesh Sharma <devesh.sharma@avagotech.com> Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/core/sa_query.c')
-rw-r--r--drivers/infiniband/core/sa_query.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/infiniband/core/sa_query.c b/drivers/infiniband/core/sa_query.c
index c9d9d7afcdb4..77f5afc297c6 100644
--- a/drivers/infiniband/core/sa_query.c
+++ b/drivers/infiniband/core/sa_query.c
@@ -1029,11 +1029,7 @@ int ib_init_ah_from_path(struct ib_device *device, u8 port_num,
}
if (force_grh) {
memcpy(ah_attr->dmac, rec->dmac, ETH_ALEN);
- ah_attr->vlan_id = rec->vlan_id;
- } else {
- ah_attr->vlan_id = 0xffff;
}
-
return 0;
}
EXPORT_SYMBOL(ib_init_ah_from_path);