git: 2e794b773344 - main - mlx5: add synthetic error for MLX5_CMD_OP_QUERY_FLOW_COUNTER when device is down

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Thu, 13 Feb 2025 10:33:15 UTC
The branch main has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=2e794b7733444bf3582486b0097d8162685af464

commit 2e794b7733444bf3582486b0097d8162685af464
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2025-02-09 00:09:28 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2025-02-13 10:32:32 +0000

    mlx5: add synthetic error for MLX5_CMD_OP_QUERY_FLOW_COUNTER when device is down
    
    Sponsored by:   NVidia networking
---
 sys/dev/mlx5/mlx5_core/mlx5_cmd.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/sys/dev/mlx5/mlx5_core/mlx5_cmd.c b/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
index 8ce30bc24e50..a961c9d7c3dd 100644
--- a/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
+++ b/sys/dev/mlx5/mlx5_core/mlx5_cmd.c
@@ -417,6 +417,7 @@ static int mlx5_internal_err_ret_value(struct mlx5_core_dev *dev, u16 op,
 	case MLX5_CMD_OP_QUERY_VPORT_COUNTER:
 	case MLX5_CMD_OP_ALLOC_Q_COUNTER:
 	case MLX5_CMD_OP_QUERY_Q_COUNTER:
+	case MLX5_CMD_OP_QUERY_FLOW_COUNTER:
 	case MLX5_CMD_OP_ALLOC_PD:
 	case MLX5_CMD_OP_ALLOC_UAR:
 	case MLX5_CMD_OP_CONFIG_INT_MODERATION: