]> asedeno.scripts.mit.edu Git - linux.git/commit
IB/cm: Introduce and use helper function to get cm_port from path
authorParav Pandit <parav@mellanox.com>
Tue, 13 Mar 2018 14:06:22 +0000 (16:06 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 21:17:49 +0000 (15:17 -0600)
commitcb12a8e2fa5fc6381aa8ae542276099a64dee6e9
tree7dc002b8320760a7d870e14f6ca015527cf87b29
parent0a5141593567fca3e1d64da756b8d1b490f6c600
IB/cm: Introduce and use helper function to get cm_port from path

Introduce and use helper function get_cm_port_from_path() to get
cm_port based on the the path record entry.

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