Skip to contentSkip to conversation

Revert "bus/vdev: fix devargs in secondary process"

PATCH In review Stephen Hemminger 4 participants 6 messages May 31, 2024 – Jun 19, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Revert "bus/vdev: fix devargs in secondary process"

This reverts commit 6666628362c94a0b567a39a0177539c12c97d999.

That commit broke use of dumpcap with vdev's and probably other uses of secondary processes with vdev as well.

Bugzilla ID: 1450

---
 drivers/bus/vdev/vdev.c | 22 +---------------------
 1 file changed, 1 insertion(+), 21 deletions(-)
drivers/bus/vdev/vdev.c +1 -21
index 14cf856237..05582f1727 100644
@@ -263,22 +263,6 @@ alloc_devargs(const char *name, const char *args)
 	return devargs;
 }
 
-static struct rte_devargs *
-vdev_devargs_lookup(const char *name)
-{
-	struct rte_devargs *devargs;
-	char dev_name[32];
-
-	RTE_EAL_DEVARGS_FOREACH("vdev", devargs) {
-		devargs->bus->parse(devargs->name, &dev_name);
-		if (strcmp(dev_name, name) == 0) {
-			VDEV_LOG(INFO, "devargs matched %s", dev_name);
-			return devargs;
-		}
-	}
-	return NULL;
-}
-
 static int
 insert_vdev(const char *name, const char *args,
 		struct rte_vdev_device **p_dev,
@@ -291,11 +275,7 @@ insert_vdev(const char *name, const char *args,
 	if (name == NULL)
 		return -EINVAL;
 
-	if (rte_eal_process_type() == RTE_PROC_PRIMARY)
-		devargs = alloc_devargs(name, args);
-	else
-		devargs = vdev_devargs_lookup(name);
-
+	devargs = alloc_devargs(name, args);
 	if (!devargs)
 		return -ENOMEM;
 
Signature · 1 line
2.43.0
#1 lore raw
Quoted 9 lines · On Fri, 31 May 2024 10:41:18 -0700 Stephen Hemminger…

This reverts commit 6666628362c94a0b567a39a0177539c12c97d999.

That commit broke use of dumpcap with vdev's and probably other uses of secondary processes with vdev as well.

Bugzilla ID: 1450

---

Please review this. Current code is broken when using vdev's

#2 lore raw
Quoted 4 lines · Stephen Hemminger

On Fri, 31 May 2024 10:41:18 -0700
Stephen Hemminger <[email protected]> wrote:

Quoted 8 lines
Quoted 8 lines

This reverts commit 6666628362c94a0b567a39a0177539c12c97d999.

That commit broke use of dumpcap with vdev's and probably other uses of secondary processes with vdev as well.

Bugzilla ID: 1450

Please review.
Thanks.

Signature · 1 line
David Marchand
#3 lore raw
Quoted 23 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Tuesday, June 18, 2024 9:06 PM
To: Burakov, Anatoly <[email protected]>; Ye, MingjinX <[email protected]>
Cc: [email protected]; Stephen Hemminger <[email protected]>; Richardson, Bruce <[email protected]>; Mcnamara, John <[email protected]>
Subject: Re: [PATCH] Revert "bus/vdev: fix devargs in secondary process"

Quoted 11 lines · Stephen Hemminger
Quoted 7 lines · On Fri, 31 May 2024 10:41:18 -0700 Stephen Hemminger…

This reverts commit 6666628362c94a0b567a39a0177539c12c97d999.

That commit broke use of dumpcap with vdev's and probably other uses of secondary processes with vdev as well.

Bugzilla ID: 1450

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Please review.
Thanks.

--
David Marchand

Hi Stephen,
Can below patch series fix Bugzilla ID:1450? Can you have a try?
https://patchwork.dpdk.org/project/dpdk/list/?series=31507

Best regards,
Yu Jiang

#4 lore raw
Quoted 32 lines · YuX
Quoted 23 lines

-----Original Message-----
From: David Marchand <[email protected]>
Sent: Tuesday, June 18, 2024 9:06 PM
To: Burakov, Anatoly <[email protected]>; Ye, MingjinX <[email protected]>
Cc: [email protected]; Stephen Hemminger <[email protected]>; Richardson, Bruce <[email protected]>; Mcnamara, John <[email protected]>
Subject: Re: [PATCH] Revert "bus/vdev: fix devargs in secondary process"

Quoted 11 lines · Stephen Hemminger
Quoted 7 lines · On Fri, 31 May 2024 10:41:18 -0700 Stephen Hemminger…

This reverts commit 6666628362c94a0b567a39a0177539c12c97d999.

That commit broke use of dumpcap with vdev's and probably other uses of secondary processes with vdev as well.

Bugzilla ID: 1450

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Please review.
Thanks.

--
David Marchand

Quoted 6 lines

Hi Stephen,
Can below patch series fix Bugzilla ID:1450? Can you have a try?
https://patchwork.dpdk.org/project/dpdk/list/?series=31507

Best regards,
Yu Jiang

Yes, that fixes what I was seeing where dumpcap or pdump (secondary process) would not start when using vdev.

#5 lore raw

19/06/2024 17:04, Stephen Hemminger:

Quoted 29 lines
Quoted 27 lines · YuX

From: David Marchand <[email protected]>

Quoted 13 lines
Quoted 11 lines · Stephen Hemminger
Quoted 7 lines · On Fri, 31 May 2024 10:41:18 -0700 Stephen Hemminger…

This reverts commit 6666628362c94a0b567a39a0177539c12c97d999.

That commit broke use of dumpcap with vdev's and probably other uses of secondary processes with vdev as well.

Bugzilla ID: 1450

Quoted 8 lines
Quoted 1 line
Quoted 1 line

Please review.
Thanks.

--
David Marchand

Hi Stephen,
Can below patch series fix Bugzilla ID:1450? Can you have a try?
https://patchwork.dpdk.org/project/dpdk/list/?series=31507

Quoted 5 lines
Quoted 2 lines

Best regards,
Yu Jiang

Yes, that fixes what I was seeing where dumpcap or pdump (secondary process) would not start when using vdev.

Then I will prefer the revert from the original author of the regression, with more details.