IB: Make ib_init_ah_attr_from_wc set sgid_attr
The work completion is inspected to determine what dgid table entry was used to receieve the packet, produces a sgid_attr that matches and sticks it in the ah_attr. All callers of this function are now required to release the ah_attr on success. Signed-off-by:Parav Pandit <parav@mellanox.com> Signed-off-by:
Jason Gunthorpe <jgg@mellanox.com> Signed-off-by:
Leon Romanovsky <leonro@mellanox.com>
Showing
- drivers/infiniband/core/cm.c 3 additions, 0 deletionsdrivers/infiniband/core/cm.c
- drivers/infiniband/core/user_mad.c 1 addition, 0 deletionsdrivers/infiniband/core/user_mad.c
- drivers/infiniband/core/verbs.c 56 additions, 54 deletionsdrivers/infiniband/core/verbs.c
- include/rdma/ib_verbs.h 7 additions, 0 deletionsinclude/rdma/ib_verbs.h
Loading
Please register or sign in to comment