Skip to contentSkip to conversation

net/idpf: fix port start

PATCH Applied [email protected] 3 participants 3 messages Nov 17, 2022 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/idpf: fix port start

From: Beilei Xing <[email protected]>

Port can't start successfully if stopping port and starting port again.
This patch fixes port start by initialization.

Fixes e9ff6df15b9a ("net/idpf: stop before closing device")
---
 drivers/net/idpf/idpf_ethdev.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/net/idpf/idpf_ethdev.c +2 -0
index 0b90f885a8..20f088eb80 100644
@@ -552,6 +552,8 @@ idpf_dev_start(struct rte_eth_dev *dev)
 	uint16_t req_vecs_num;
 	int ret;
 
+	vport->stopped = 0;
+
 	if (dev->data->mtu > vport->max_mtu) {
 		PMD_DRV_LOG(ERR, "MTU should be less than %d", vport->max_mtu);
 		ret = -EINVAL;
Signature · 1 line
2.26.2
Acked-by on v1 1/1 Applied
#1 lore raw
Quoted 10 lines

-----Original Message-----
From: [email protected] <[email protected]>
Sent: Thursday, November 17, 2022 11:08 AM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; Peng, Yuan <[email protected]>; Xing, Beilei <[email protected]>
Subject: [PATCH] net/idpf: fix port start

Quoted 8 lines

From: Beilei Xing <[email protected]>

Port can't start successfully if stopping port and starting port again. This patch fixes port start by initialization.

Fixes e9ff6df15b9a ("net/idpf: stop before closing device")

Applied to dpdk-next-net-intel.

Thanks
Qi

Tested-by on v1 1/1
#2 lore raw
In reply to [email protected]
Quoted 17 lines

-----Original Message-----
From: Xing, Beilei <[email protected]>
Sent: Thursday, November 17, 2022 11:08 AM
To: Wu, Jingjing <[email protected]>
Cc: [email protected]; Peng, Yuan <[email protected]>; Xing, Beilei <[email protected]>
Subject: [PATCH] net/idpf: fix port start

From: Beilei Xing <[email protected]>

Port can't start successfully if stopping port and starting port again. This patch fixes port start by initialization.

Fixes e9ff6df15b9a ("net/idpf: stop before closing device")

---