mbox

[v3,0/4] ethdev iterators for multi-ports device

Message ID 20190401022700.1570-1-thomas@monjalon.net (mailing list archive)
Headers

Message

Thomas Monjalon April 1, 2019, 2:26 a.m. UTC
  Add port iterators in order to allow listing easily
the ports of the same device.

The iterators can be tested by using mlx5 or testpmd.


v3: changes only in the (main) patch 2


Thomas Monjalon (4):
  ethdev: simplify port state comparisons
  ethdev: add siblings iterators
  net/mlx5: use port sibling iterators
  app/testpmd: use port sibling iterator in device cleanup

 app/test-pmd/testpmd.c                   |  4 +-
 drivers/net/mlx5/mlx5.c                  | 34 +++++--------
 drivers/net/mlx5/mlx5_ethdev.c           |  6 +--
 lib/librte_ethdev/rte_ethdev.c           | 25 ++++++++--
 lib/librte_ethdev/rte_ethdev.h           | 63 ++++++++++++++++++++++++
 lib/librte_ethdev/rte_ethdev_version.map |  2 +
 6 files changed, 101 insertions(+), 33 deletions(-)