OSDN Git Service

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)
commit8d9ec9addd6c492a99d3699212653cba92989767
tree3b400cfd82806803c7378cd293a9e2ca1ec11ed2
parentfb51eecaa523c909cdc6240d3e9b8bfc74e7a888
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