common/mlx5: fix DevX read output buffer size
authorDekel Peled <dekelp@nvidia.com>
Thu, 18 Feb 2021 16:18:05 +0000 (18:18 +0200)
committerRaslan Darawsheh <rasland@nvidia.com>
Sun, 21 Feb 2021 09:33:25 +0000 (10:33 +0100)
commitdd9e9d5491858bee49914c4fa574cc8e15640905
treeac24fedeed61f1bbf7b7ed8238cec4c71cade0df
parent0c0839ab9eb592bee032d7b5b8a2d863a0aa6f79
common/mlx5: fix DevX read output buffer size

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")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@nvidia.com>
drivers/common/mlx5/mlx5_devx_cmds.c