Thread (20 messages) read the whole thread 20 messages, 2 authors, 2021-02-02

Re: [dpdk-dev] [PATCH 14/14] net/hns3: support LSC event report

From: Ferruh Yigit <hidden>
Date: 2021-02-02 12:13:08

On 1/22/2021 10:18 AM, Lijun Ou wrote:
From: Chengwen Feng <redacted>

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

Signed-off-by: Chengwen Feng <redacted>
Signed-off-by: Lijun Ou <redacted>
<...>
quoted hunk ↗ jump to hunk
@@ -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.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help