[PATCH 4.9 098/171] IB/mlx5: Avoid passing an invalid QP type to firmware