Skip to content

Commit

Permalink
ethdev: add missing buses in device iterator
Browse files Browse the repository at this point in the history
[ upstream commit a956adb ]

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: 214ed1a ("ethdev: add iterator to match devargs input")

Signed-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>
Acked-by: Thomas Monjalon <thomas@monjalon.net>
  • Loading branch information
hemantagr authored and steevenlee committed Jun 8, 2021
1 parent 8e6d9cf commit 8064f75
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/librte_ethdev/rte_ethdev.c
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,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";
Expand Down

0 comments on commit 8064f75

Please sign in to comment.