[dpdk-stable] patch 'common/mlx5: fix DevX read output buffer size' has been queued to stable release 20.11.2
Xueming Li
xuemingl at nvidia.com
Mon May 10 17:59:18 CEST 2021
Hi,
FYI, your patch has been queued to stable release 20.11.2
Note it hasn't been pushed to http://dpdk.org/browse/dpdk-stable yet.
It will be pushed if I get no objections before 05/12/21. So please
shout if anyone has objections.
Also note that after the patch there's a diff of the upstream commit vs the
patch applied to the branch. This will indicate if there was any rebasing
needed to apply to the stable branch. If there were code changes for rebasing
(ie: not only metadata diffs), please double check that the rebase was
correctly done.
Queued patches are on a temporary branch at:
https://github.com/steevenlee/dpdk
This queued commit can be viewed at:
https://github.com/steevenlee/dpdk/commit/8d2066d2ec530f74951f54f53b7b48847117681e
Thanks.
Xueming Li <xuemingl at nvidia.com>
---
>From 8d2066d2ec530f74951f54f53b7b48847117681e Mon Sep 17 00:00:00 2001
From: Dekel Peled <dekelp at nvidia.com>
Date: Thu, 18 Feb 2021 18:18:05 +0200
Subject: [PATCH] common/mlx5: fix DevX read output buffer size
Cc: Luca Boccassi <bluca at debian.org>
[ upstream commit dd9e9d5491858bee49914c4fa574cc8e15640905 ]
Previous patch included a glue function call, with wrong size
calculation for an output buffer.
This patch fixes the issue, using the correct size calculation.
Fixes: bb7ef9a96281 ("common/mlx5: add register access DevX routine")
Signed-off-by: Dekel Peled <dekelp at nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo at nvidia.com>
---
drivers/common/mlx5/mlx5_devx_cmds.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/common/mlx5/mlx5_devx_cmds.c b/drivers/common/mlx5/mlx5_devx_cmds.c
index eafee65f22..4485a9cd5e 100644
--- a/drivers/common/mlx5/mlx5_devx_cmds.c
+++ b/drivers/common/mlx5/mlx5_devx_cmds.c
@@ -53,8 +53,8 @@ mlx5_devx_cmd_register_read(void *ctx, uint16_t reg_id, uint32_t arg,
MLX5_SET(access_register_in, in, register_id, reg_id);
MLX5_SET(access_register_in, in, argument, arg);
rc = mlx5_glue->devx_general_cmd(ctx, in, sizeof(in), out,
- MLX5_ST_SZ_DW(access_register_out) *
- sizeof(uint32_t) + dw_cnt);
+ MLX5_ST_SZ_BYTES(access_register_out) +
+ sizeof(uint32_t) * dw_cnt);
if (rc)
goto error;
status = MLX5_GET(access_register_out, out, status);
--
2.25.1
---
Diff of the applied patch vs upstream commit (please double-check if non-empty:
---
--- - 2021-05-10 23:59:26.964338500 +0800
+++ 0010-common-mlx5-fix-DevX-read-output-buffer-size.patch 2021-05-10 23:59:26.310000000 +0800
@@ -1 +1 @@
-From dd9e9d5491858bee49914c4fa574cc8e15640905 Mon Sep 17 00:00:00 2001
+From 8d2066d2ec530f74951f54f53b7b48847117681e Mon Sep 17 00:00:00 2001
@@ -4,0 +5,3 @@
+Cc: Luca Boccassi <bluca at debian.org>
+
+[ upstream commit dd9e9d5491858bee49914c4fa574cc8e15640905 ]
@@ -11 +13,0 @@
-Cc: stable at dpdk.org
@@ -20 +22 @@
-index cc70c794e7..0185d57036 100644
+index eafee65f22..4485a9cd5e 100644
More information about the stable
mailing list