]> git.baikalelectronics.ru Git - kernel.git/commit
IB/core: Add a sgid_attr pointer to struct rdma_ah_attr
authorJason Gunthorpe <jgg@mellanox.com>
Wed, 13 Jun 2018 07:22:03 +0000 (10:22 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 18 Jun 2018 17:11:26 +0000 (11:11 -0600)
commit764d8785457643adc623a0b043a7cfa9723b7df5
tree3b400cfd82806803c7378cd293a9e2ca1ec11ed2
parenta424fd1deee8b4952921bcc8d3f18491636a2467
IB/core: Add a sgid_attr pointer to struct rdma_ah_attr

The sgid_attr will ultimately replace the sgid_index in the ah_attr.
This will allow for all layers to have a consistent view of what
gid table entry was selected as processing runs through all stages of the
stack.

This commit introduces the pointer and ensures it is set before calling
any driver callback that includes a struct ah_attr callback, allowing
future patches to adjust both the drivers and the callers to use
sgid_attr instead of sgid_index.

Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h