1
0
Fork 0
mirror of synced 2025-03-06 20:59:54 +01:00
linux/drivers/infiniband/hw/qedr
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
..
Kconfig Updates for 4.15 kernel merge window 2017-11-15 14:54:53 -08:00
main.c treewide: kzalloc() -> kcalloc() 2018-06-12 16:19:22 -07:00
Makefile RDMA/qedr: Add iWARP connection management qp related callbacks 2017-08-18 12:26:38 -04:00
qedr.h Merge branch 'for-next-early' into for-next 2017-10-18 13:07:13 -04:00
qedr_hsi_rdma.h qed*: Utilize FW 8.37.2.0 2018-06-05 10:48:09 -04:00
qedr_iw_cm.c RDMA/qedr: Fix iWARP connect with port mapper 2018-03-06 19:57:37 -07:00
qedr_iw_cm.h RDMA/qedr: Add iWARP connection management functions 2017-08-18 12:27:14 -04:00
qedr_roce_cm.c IB/providers: Avoid null netdev check for RoCE 2018-04-03 21:33:51 -06:00
qedr_roce_cm.h RDMA/qedr: Rename the qedr_cm file as a preparation for iWARP support 2017-08-18 12:25:18 -04:00
verbs.c IB{cm, core}: Introduce and use ah_attr copy, move, replace APIs 2018-06-18 11:11:26 -06:00
verbs.h RDMA/providers: Simplify query_gid callback of RoCE providers 2018-04-03 21:33:47 -06:00