IB/cm: Add and use a helper function to add cm_id's to the port list
authorParav Pandit <parav@mellanox.com>
Tue, 13 Mar 2018 14:06:18 +0000 (16:06 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:17:48 +0000 (15:17 -0600)
commita22af59ea9a5f9496c37bc4e4654da45a4e0ca2a
tree3b2a17b3e51da11af8eef5a8389e747fd567ed57
parent115b68aa6ea4bb7dca1cbf66cb99cefc274180cb
IB/cm: Add and use a helper function to add cm_id's to the port list

Add and use helper function add_cm_id_to_port_list() to attach
cm_id to port list.

Reviewed-by: Daniel Jurgens <danielj@mellanox.com>
Signed-off-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
drivers/infiniband/core/cm.c