diff options
author | Guangbin Huang <huangguangbin2@huawei.com> | 2021-04-15 05:20:39 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2021-04-16 02:51:29 +0300 |
commit | 01305e16ebe7791e7a1b97485f83999f48cd79d0 (patch) | |
tree | 4e9f83325c5cdd5c70b09fa36405c0cf80f98755 /drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | |
parent | 18b6e31f8bf4ac7af7b057228f38a5a530378e4e (diff) | |
download | linux-01305e16ebe7791e7a1b97485f83999f48cd79d0.tar.xz |
net: hns3: VF not request link status when PF support push link status feature
To reduce the processing of unnecessary mailbox command when PF supports
actively push its link status to VFs, VFs stop sending request link
status command in periodic service task in this case.
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h')
-rw-r--r-- | drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h index ade6e7f5be5b..956095b89a1b 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h @@ -152,6 +152,7 @@ enum hclgevf_states { HCLGEVF_STATE_LINK_UPDATING, HCLGEVF_STATE_PROMISC_CHANGED, HCLGEVF_STATE_RST_FAIL, + HCLGEVF_STATE_PF_PUSH_LINK_STATUS, }; struct hclgevf_mac { |