]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: don't push link state to VF if unalive
authorJian Shen <shenjian15@huawei.com>
Sat, 11 Jun 2022 12:25:25 +0000 (20:25 +0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Jun 2022 10:56:01 +0000 (11:56 +0100)
commit32f20159268a8b5f284d8b1e075c1cb79c67a212
tree30173ae1be1c34271857b541891954bcec263298
parentd94abfa321e4a5593641a3fc038bac8313928bd4
net: hns3: don't push link state to VF if unalive

It's unnecessary to push link state to unalive VF, and the VF will
query link state from PF when it being start works.

Fixes: 2d9269b81d97 ("net: hns3: PF add support for pushing link status to VFs")
Signed-off-by: Jian Shen <shenjian15@huawei.com>
Signed-off-by: Guangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c