IB/cma: Use rdma_protocol_roce() and remove cma_protocol_roce_dev_port()
authorParav Pandit <parav@mellanox.com>
Tue, 13 Mar 2018 14:06:15 +0000 (16:06 +0200)
committerJason Gunthorpe <jgg@mellanox.com>
Thu, 15 Mar 2018 20:40:38 +0000 (14:40 -0600)
commit5ac08a341303dd2105d7b5dc26b38b0d85ac726b
treee54c6f301f66d25fb413f53166022090d3fb04b9
parent563c4ba3bd2b8b0b21c65669ec2226b1cfa1138b
IB/cma: Use rdma_protocol_roce() and remove cma_protocol_roce_dev_port()

rdma_protocol_roce() API from the ib_core already provides a way to
detect whether a given device+port is RoCE or not.
Therefore, make use of it and avoid implementing it again in rdmacm
module.

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/cma.c