]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fixes wrong place enabling ROCE HW error when loading
authorHuazhong Tan <tanhuazhong@huawei.com>
Thu, 20 Jun 2019 08:52:44 +0000 (16:52 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 26 Jun 2019 15:59:02 +0000 (11:59 -0400)
commitdeac635a3dc7f13a86d1abe31a7d1d17a43c3adf
tree4c4be92e7c99be12abfae5a32b03b310d7c17fe7
parent2950e7dfd4e75e1c8b6ed641aba31f46420cbece
net: hns3: fixes wrong place enabling ROCE HW error when loading

The ROCE HW errors should only be enabled when initializing ROCE's
client, the current code enable it no matter initializing NIC or
ROCE client.

So this patch fixes it.

Fixes: 534ee872602f ("net: hns3: delay and separate enabling of NIC and ROCE HW errors")
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c