[dpdk-dev] [PATCH 14/14] net/hns3: support LSC event report
Ferruh Yigit
ferruh.yigit at intel.com
Tue Feb 2 13:12:56 CET 2021
On 1/22/2021 10:18 AM, Lijun Ou wrote:
> From: Chengwen Feng <fengchengwen at huawei.com>
>
> This patch support LSC(Link Status Change) event report.
>
> Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
> Signed-off-by: Lijun Ou <oulijun at 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.
More information about the dev
mailing list