net/mlx5: Check FW limitations on log_max_qp before setting it