net: hns3: VF not request link status when PF support push link status feature
authorGuangbin Huang <huangguangbin2@huawei.com>
Thu, 15 Apr 2021 02:20:39 +0000 (10:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Apr 2021 23:51:29 +0000 (16:51 -0700)
commit01305e16ebe7791e7a1b97485f83999f48cd79d0
tree4e9f83325c5cdd5c70b09fa36405c0cf80f98755
parent18b6e31f8bf4ac7af7b057228f38a5a530378e4e
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>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.h
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_mbx.c