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

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

parents 5bde6558 66c8f3ff
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1521,6 +1521,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;