]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: Fixes the state to indicate client-type initialization
authorPeng Li <lipeng321@huawei.com>
Fri, 25 May 2018 18:43:01 +0000 (19:43 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 May 2018 04:04:26 +0000 (00:04 -0400)
commit10e617f3a18a0e623ca2fdac3ea53d11fb697602
treef2bcf85fd97d6f571902cd16350b881fd8371860
parente8f8fc8e310208d0246c0d575cc258ec36f546f4
net: hns3: Fixes the state to indicate client-type initialization

HNAE3 module supports kernel nic driver, user nic driver and roce driver,
and there are 3 client types. Driver uses one bit(HNAE3_CLIENT_INITED_B)
to indicate the client initialization state, it will cause confusion
for 3 client types. This patch fixes it by use 3 bits to indicate the
initialization state.

Fixes: e19a0c0541b2 ("net: hns3: Add support of the HNAE3 framework")
Signed-off-by: Peng Li <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
drivers/net/ethernet/hisilicon/hns3/hnae3.h