]> 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)
commit9f904d68d98bcbe982b314b6c3255dc231d4d75f
treef2bcf85fd97d6f571902cd16350b881fd8371860
parentf27b5415732cff88e592bec9fff43644650cfb00
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: 32b1bf43afb0 ("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