]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: PF add support for pushing link status to VFs
authorGuangbin Huang <huangguangbin2@huawei.com>
Thu, 15 Apr 2021 02:20:38 +0000 (10:20 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Apr 2021 23:51:29 +0000 (16:51 -0700)
commitddb2ee58b7544b37eb36c5b80d5de1bd80eb628a
treeb998c3c9b398e1610ab7ae9c8460621a3ff04ed0
parent9bf0222d424b355761a86b1920084888d6a6a603
net: hns3: PF add support for pushing link status to VFs

Previously, VF updates its link status every second by send query command
to PF in periodic service task. If link stats of PF is changed, VF may
need at most one second to update its link status.

To reduce delay of link status between PF and VFs, PF actively push its
link status to VFs when its link status is updated. And to let VF know
PF supports this new feature, the link status changed mailbox command
adds one bit to indicate it.

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/hclge_mbx.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c