summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_ethdev.c
diff options
context:
space:
mode:
authorThomas Monjalon <thomas@monjalon.net>2019-04-01 04:26:58 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2019-04-05 17:45:22 +0200
commit7f98942886bcb80a504f8bfb99638bb14a8ba14d (patch)
treeb03a81072301699bb146f3aabea30fc5773115ea /drivers/net/mlx5/mlx5_ethdev.c
parenta52aa40b4161a027ce1b31bde7c6f47b93bb26b7 (diff)
downloaddpdk-next-eventdev-7f98942886bcb80a504f8bfb99638bb14a8ba14d.zip
dpdk-next-eventdev-7f98942886bcb80a504f8bfb99638bb14a8ba14d.tar.gz
dpdk-next-eventdev-7f98942886bcb80a504f8bfb99638bb14a8ba14d.tar.xz
ethdev: add siblings iterators
If multiple ports share the same hardware device (rte_device), they are siblings and can be found thanks to the new functions and loop macros. One iterator takes a port id as reference, while the other one directly refers to the parent device. The ownership is not checked because siblings may have different owners. Signed-off-by: Thomas Monjalon <thomas@monjalon.net> Reviewed-by: Andrew Rybchenko <arybchenko@solarflare.com> Tested-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_ethdev.c')
0 files changed, 0 insertions, 0 deletions