]> git.proxmox.com Git - mirror_ubuntu-eoan-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)
commit90b99b094b4bd270542e3ade8cf74e21c228c069
treef2bcf85fd97d6f571902cd16350b881fd8371860
parent7c4bfcb0556bc8e1cd86b25db0a5058b49f5a085
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: 38caee9d3ee8 ("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