]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fixes the premature exit of loop when matching clients
authorLipeng <lipeng321@huawei.com>
Tue, 19 Sep 2017 16:17:16 +0000 (17:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 19 Sep 2017 23:06:49 +0000 (16:06 -0700)
commit96f6c91e813c65de0b803d8479b36e38b763a60a
tree2fb9b08c5e24c072dbaf39e4126e882a3ded4a1c
parent9884f194919c869591d67472884459a4e2a9551c
net: hns3: Fixes the premature exit of loop when matching clients

When register/unregister ae_dev, ae_dev should match all client
in the client_list. Enet and roce can co-exists together so we
should continue checking for enet and roce presence together.
So break should not be there.

Above caused problems in loading and unloading of modules.

Fixes: 38eddd126772 ("net: hns3: Add support of the HNAE3 framework")
Signed-off-by: Lipeng <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hnae3.c