On 1/22/2021 10:18 AM, Lijun Ou wrote:
From: Chengwen Feng <fengcheng...@huawei.com>

This patch support LSC(Link Status Change) event report.

Signed-off-by: Chengwen Feng <fengcheng...@huawei.com>
Signed-off-by: Lijun Ou <ouli...@huawei.com>

<...>

@@ -2373,8 +2408,11 @@ hns3vf_stop_service(struct hns3_adapter *hns)
        struct rte_eth_dev *eth_dev;
eth_dev = &rte_eth_devices[hw->data->port_id];
-       if (hw->adapter_state == HNS3_NIC_STARTED)
+       if (hw->adapter_state == HNS3_NIC_STARTED) {
                rte_eal_alarm_cancel(hns3vf_service_handler, eth_dev);
+               hns3vf_update_link_status(hw, ETH_LINK_DOWN, hw->mac.link_speed,
+               hw->mac.link_duplex);

indentation fixed while merging.



Applied to dpdk-next-net/main, thanks.

Reply via email to