linux/drivers/infiniband/hw
Jason Gunthorpe d97099fe53 IB{cm, core}: Introduce and use ah_attr copy, move, replace APIs
Introduce AH attribute copy, move and replace APIs to be used by core and
provider drivers.

In CM code flow when ah attribute might be re-initialized twice while
processing incoming request, or initialized once while from path record
while sending out CM requests. Therefore use rdma_move_ah_attr API to
handle such scenarios instead of memcpy().

Provider drivers keeps a copy ah_attr during the lifetime of the ah.
Therefore, use rdma_replace_ah_attr() which conditionally release
reference to old ah_attr and holds reference to new attribute whose
referrence is released when the AH is freed.

Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
2018-06-18 11:11:26 -06:00
..
bnxt_re RDMA: Use GID from the ib_gid_attr during the add_gid() callback 2018-06-18 11:09:05 -06:00
cxgb3 treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
cxgb4 treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
hfi1 treewide: Use array_size() in kvzalloc_node() 2018-06-12 16:19:22 -07:00
hns RDMA: Use GID from the ib_gid_attr during the add_gid() callback 2018-06-18 11:09:05 -06:00
i40iw i40iw: Reorganize acquire/release of locks in i40iw_manage_apbvt 2018-06-18 11:09:05 -06:00
mlx4 RDMA: Use GID from the ib_gid_attr during the add_gid() callback 2018-06-18 11:09:05 -06:00
mlx5 RDMA: Use GID from the ib_gid_attr during the add_gid() callback 2018-06-18 11:09:05 -06:00
mthca treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
nes treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
ocrdma treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
qedr IB{cm, core}: Introduce and use ah_attr copy, move, replace APIs 2018-06-18 11:11:26 -06:00
qib treewide: Use array_size() in vzalloc() 2018-06-12 16:19:22 -07:00
usnic treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
vmw_pvrdma RDMA: Use GID from the ib_gid_attr during the add_gid() callback 2018-06-18 11:09:05 -06:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00