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)
commit18b6e31f8bf4ac7af7b057228f38a5a530378e4e
treeb998c3c9b398e1610ab7ae9c8460621a3ff04ed0
parentc329e5afb42ff0a88285eb4d8a391a18793e4777
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