]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit81b33bfc06b4167bca037fbcf90bfb07836671b9
tree4e9f83325c5cdd5c70b09fa36405c0cf80f98755
parent2d9269b81d9789411327fd95f272bba2cd55545c
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