OSDN Git Service

RDMA/hfi1: Move grh_required into update_sm_ah
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 4 Jul 2018 12:57:49 +0000 (15:57 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Tue, 10 Jul 2018 17:13:04 +0000 (11:13 -0600)
commit958200ad8e838bef3b36f9b0674923172b8d9da5
tree5fb81d9d2b9b5c607bb8952d9dc38b8007c485e3
parent2f944c0fbf58b1f390e5e61affd98ba0061214c6
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>
drivers/infiniband/core/sa_query.c
drivers/infiniband/hw/hfi1/verbs.c