net: hns3: add nic_client check when initialize roce base information
authorLipeng <lipeng321@huawei.com>
Tue, 24 Oct 2017 13:02:10 +0000 (21:02 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 26 Oct 2017 08:25:35 +0000 (17:25 +0900)
commit3a46f34d20d453f09defb76b11a567647939c0aa
treea66c6542d60d323f1c6918ce8e891eb3e99d55ae
parent7036d26f328f12a323069eb16d965055b4cb3795
net: hns3: add nic_client check when initialize roce base information

Roce driver works base on HNS3 driver.If insmod Roce driver before
NIC driver there is a error because do not check nic_client. This patch
adds nic_client check when initialize roce base information.

Fixes: 46a3df9 (net: hns3: Add HNS3 Acceleration Engine & Compatibility Layer Support)
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c