net/mlx5: use direct API to find port by device
authorMichael Baum <michaelba@mellanox.com>
Wed, 24 Jun 2020 13:23:57 +0000 (13:23 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commita294e58c80a8c012d064247b1b242604ba6042a9
treea8edb9b2f3b7b1e8ce9bfcb9e3ba98df57ec276f
parented5d23656e925ea8b271d4a84eec8e4046f66fa9
net/mlx5: use direct API to find port by device

Using RTE_ETH_FOREACH_DEV_OF loop is not necessary when the driver wants
to find only the first match.

Use rte_eth_find_next_of to find it.

Signed-off-by: Michael Baum <michaelba@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/mlx5_mr.c