net/mlx5: replace a port lookup with ethdev API
authorThomas Monjalon <thomas@monjalon.net>
Thu, 18 Apr 2019 00:15:29 +0000 (02:15 +0200)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 3 May 2019 16:45:22 +0000 (18:45 +0200)
commit2ed187ba072a4d5ccb8ce95698be62938724b704
treece339220e3a6fccffc6e216341e9e9f010911435
parentaf4a86d4464f13d85a81f6c90067dfede005e315
net/mlx5: replace a port lookup with ethdev API

Looking for an ethdev port is better (and more efficient)
with an ethdev API than an EAL one.

Signed-off-by: Thomas Monjalon <thomas@monjalon.net>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_mr.c