Unverified Commit acd83c55 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!9578 net/mlx5: Discard command completions in internal error

parents adafd83f a186ae1b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1609,6 +1609,9 @@ static int cmd_comp_notifier(struct notifier_block *nb,
	dev = container_of(cmd, struct mlx5_core_dev, cmd);
	eqe = data;

	if (dev->state == MLX5_DEVICE_STATE_INTERNAL_ERROR)
		return NOTIFY_DONE;

	mlx5_cmd_comp_handler(dev, be32_to_cpu(eqe->data.cmd.vector), false);

	return NOTIFY_OK;