patches for DPDK stable branches
 help / color / mirror / Atom feed
* [dpdk-stable] [PATCH] ethdev: add missing buses in dev iterator
@ 2021-04-29  5:55 Hemant Agrawal
  2021-04-29  7:56 ` Thomas Monjalon
  2021-04-29 13:53 ` Morten Brørup
  0 siblings, 2 replies; 10+ messages in thread
From: Hemant Agrawal @ 2021-04-29  5:55 UTC (permalink / raw)
  To: dev; +Cc: thomas, Hemant Agrawal, stable

This patch fixes issue with OVS 2.15 not working on
DPAA/FSLMC based platform due to missing support for
these busses in dev_iterate.
This patch adds dpaa_bus and fslmc to dev iterator
for bus arguments.

Fixes: 214ed1acd125 ("ethdev: add iterator to match devargs input")
Cc: stable@dpdk.org

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
---
 lib/ethdev/rte_ethdev.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/ethdev/rte_ethdev.c b/lib/ethdev/rte_ethdev.c
index a1879765e8..483013ec7a 100644
--- a/lib/ethdev/rte_ethdev.c
+++ b/lib/ethdev/rte_ethdev.c
@@ -260,7 +260,9 @@ rte_eth_iterator_init(struct rte_dev_iterator *iter, const char *devargs_str)
 	}
 
 	/* Convert bus args to new syntax for use with new API dev_iterate. */
-	if (strcmp(iter->bus->name, "vdev") == 0) {
+	if ((strcmp(iter->bus->name, "vdev") == 0) ||
+		(strcmp(iter->bus->name, "fslmc") == 0) ||
+		(strcmp(iter->bus->name, "dpaa_bus") == 0)) {
 		bus_param_key = "name";
 	} else if (strcmp(iter->bus->name, "pci") == 0) {
 		bus_param_key = "addr";
-- 
2.17.1


^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2021-05-05 14:39 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29  5:55 [dpdk-stable] [PATCH] ethdev: add missing buses in dev iterator Hemant Agrawal
2021-04-29  7:56 ` Thomas Monjalon
2021-04-29  8:01   ` [dpdk-stable] [dpdk-dev] " Hemant Agrawal
2021-05-04 12:49     ` Ferruh Yigit
2021-05-04 15:50       ` Thomas Monjalon
2021-05-04 16:34         ` Ferruh Yigit
2021-05-05 14:39         ` Xu, Rosen
2021-04-29 13:53 ` Morten Brørup
2021-04-29 13:57   ` Hemant Agrawal
2021-04-29 14:01     ` Morten Brørup

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).