net/mlx5_core: Add more query port helpers