net/mlx5: remove get priv internal function