From 5b0c29decff0ca0e83ae43ef3e94bb2368d6cd2f Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 23 Jun 2016 09:23:37 +0000 Subject: [PATCH] Use correct Q-counter output array. Sponsored by: Mellanox Technologies Approved by: re (kib) MFC after: 3 days --- sys/dev/mlx5/mlx5_core/mlx5_vport.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/mlx5/mlx5_core/mlx5_vport.c b/sys/dev/mlx5/mlx5_core/mlx5_vport.c index 6ef50195345..a3e1751b8b5 100644 --- a/sys/dev/mlx5/mlx5_core/mlx5_vport.c +++ b/sys/dev/mlx5/mlx5_core/mlx5_vport.c @@ -71,7 +71,7 @@ static int mlx5_query_nic_vport_context(struct mlx5_core_dev *mdev, u32 vport, int mlx5_vport_alloc_q_counter(struct mlx5_core_dev *mdev, int *counter_set_id) { u32 in[MLX5_ST_SZ_DW(alloc_q_counter_in)]; - u32 out[MLX5_ST_SZ_DW(alloc_q_counter_in)]; + u32 out[MLX5_ST_SZ_DW(alloc_q_counter_out)]; int err; memset(in, 0, sizeof(in));