IB/hns: Register HNS RoCE Driver get_netdev() with IB Core
authorLijun Ou <oulijun@huawei.com>
Thu, 15 Sep 2016 22:48:06 +0000 (23:48 +0100)
committerDoug Ledford <dledford@redhat.com>
Mon, 3 Oct 2016 15:43:10 +0000 (11:43 -0400)
commit2eefca272275cb2eac048ddfa3f6fb30d9b24d5e
tree6e7798dd159c37f05faca5eaff4c0c5c8b1c436b
parent5d80b3e1cf9900009d4a69a59f1c6b6114b072f4
IB/hns: Register HNS RoCE Driver get_netdev() with IB Core

This patch adds get_netdev() function to the IB device. This shall be
used to fetch netdev corresponding to the port number. This function
would be called by IB core(Generic CM Agent) for example, when the
RDMA connection is being established.

Signed-off-by: Lijun Ou <oulijun@huawei.com>
Reviewed-by: Wei Hu <xavier.huwei@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hns/hns_roce_main.c