summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/hfi1
diff options
context:
space:
mode:
authorJason Gunthorpe2018-07-04 14:57:49 +0200
committerJason Gunthorpe2018-07-10 19:13:04 +0200
commit958200ad8e838bef3b36f9b0674923172b8d9da5 (patch)
tree5fb81d9d2b9b5c607bb8952d9dc38b8007c485e3 /drivers/infiniband/hw/hfi1
parentRDMA: Fix storage of PortInfo CapabilityMask in the kernel (diff)
downloadkernel-qcow2-linux-958200ad8e838bef3b36f9b0674923172b8d9da5.tar.gz
kernel-qcow2-linux-958200ad8e838bef3b36f9b0674923172b8d9da5.tar.xz
kernel-qcow2-linux-958200ad8e838bef3b36f9b0674923172b8d9da5.zip
RDMA/hfi1: Move grh_required into update_sm_ah
grh_required is intended to be a global setting where all AV's will require a GRH, not just the sm_lid. Move the special logic to the creation of the SM AH. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Artemy Kovalyov <artemyko@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/hfi1')
-rw-r--r--drivers/infiniband/hw/hfi1/verbs.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/infiniband/hw/hfi1/verbs.c b/drivers/infiniband/hw/hfi1/verbs.c
index 5cef1224fa9c..2b07a5667ec8 100644
--- a/drivers/infiniband/hw/hfi1/verbs.c
+++ b/drivers/infiniband/hw/hfi1/verbs.c
@@ -1498,15 +1498,6 @@ static int query_port(struct rvt_dev_info *rdi, u8 port_num,
props->active_mtu = !valid_ib_mtu(ppd->ibmtu) ? props->max_mtu :
mtu_to_enum(ppd->ibmtu, IB_MTU_4096);
- /*
- * sm_lid of 0xFFFF needs special handling so that it can
- * be differentiated from a permissve LID of 0xFFFF.
- * We set the grh_required flag here so the SA can program
- * the DGID in the address handle appropriately
- */
- if (props->sm_lid == be16_to_cpu(IB_LID_PERMISSIVE))
- props->grh_required = true;
-
return 0;
}