]> git.droids-corp.org - dpdk.git/commit
net/hns3: cancel heartbeat alarm when VF reset
authorHuisong Li <lihuisong@huawei.com>
Fri, 24 Jun 2022 08:59:46 +0000 (16:59 +0800)
committerAndrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Fri, 24 Jun 2022 12:27:23 +0000 (14:27 +0200)
commit35e8a46f795a151223aad71dd86d8614f26f3929
tree285d5adc0a43665189f43320682251dd2bf8d9a4
parent916508f002ae887942ab3b970db33c0cc7fc6c02
net/hns3: cancel heartbeat alarm when VF reset

The purpose of the heartbeat alarm is to keep alive for VF. The mailbox
channel is disabled when VF is reset, and the heartbeat mailbox message
will fail to send. If the reset is not complete, the error information
about the heartbeat sending failure will be printed continuously.
In fact, VF does set alive when VF restore its configuration. So the
heartbeat alarm can be canceled to prepare to start reset and start the
alarm when start service.

Signed-off-by: Huisong Li <lihuisong@huawei.com>
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
drivers/net/hns3/hns3_ethdev_vf.c