]> 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)
commitbadbc3488524c8333aebf3e900b8966445963988
tree3b400cfd82806803c7378cd293a9e2ca1ec11ed2
parentd45a06da2d82c1b30e8fa82f6eca473403484f5c
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