IB: Make ib_init_ah_attr_from_wc set sgid_attr
authorParav Pandit <parav@mellanox.com>
Tue, 19 Jun 2018 07:59:14 +0000 (10:59 +0300)
committerJason Gunthorpe <jgg@mellanox.com>
Mon, 25 Jun 2018 20:19:56 +0000 (14:19 -0600)
commitb7403217656dcf6c51f09d0bca7a12db0de8934a
tree7b33cae5ff1d69441813710a23498bbb606e13cf
parent70324739ac5e0332dc053eaeaba773f5ab755879
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>
drivers/infiniband/core/cm.c
drivers/infiniband/core/user_mad.c
drivers/infiniband/core/verbs.c
include/rdma/ib_verbs.h