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)
commit90f7b11a5a0081feb7041fcc795c9a131a62a725
tree2fb9b08c5e24c072dbaf39e4126e882a3ded4a1c
parent5e43aef8491ae3b5feb79cd15260faf39303ef33
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