aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/hw/mthca/mthca_av.c
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@mellanox.com>2018-06-13 10:22:08 +0300
committerJason Gunthorpe <jgg@mellanox.com>2018-06-18 11:11:27 -0600
commit1a1f460ff151710289c2f8d4badd8b603b87d610 (patch)
treeb0b268ecfb677f28d4eaaa6eb8f9198f1c199122 /drivers/infiniband/hw/mthca/mthca_av.c
parentIB/mlx4: Use GID attribute from ah attribute (diff)
downloadlinux-dev-1a1f460ff151710289c2f8d4badd8b603b87d610.tar.xz
linux-dev-1a1f460ff151710289c2f8d4badd8b603b87d610.zip
RDMA: Hold the sgid_attr inside the struct ib_ah/qp
If the AH has a GRH then hold a reference to the sgid_attr inside the common struct. If the QP is modified with an AV that includes a GRH then also hold a reference to the sgid_attr inside the common struct. This informs the cache that the sgid_index is in-use so long as the AH or QP using it exists. This also means that all drivers can access the sgid_attr directly from the ah_attr instead of querying the cache during their UD post-send paths. Signed-off-by: Jason Gunthorpe <jgg@mellanox.com> Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Diffstat (limited to 'drivers/infiniband/hw/mthca/mthca_av.c')
0 files changed, 0 insertions, 0 deletions