net/mlx5: replace a port lookup with ethdev API