]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit66fdbfb9294f0db81c7eb26766ba2a9c6db9bda9
tree7b33cae5ff1d69441813710a23498bbb606e13cf
parenta2e8dea35201c6ed880fd14a00e297cc5100c386
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