net/mlx5: remove redundant size calculation macro
authorDekel Peled <dekelp@mellanox.com>
Wed, 15 May 2019 10:11:38 +0000 (13:11 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Mon, 27 May 2019 08:20:55 +0000 (10:20 +0200)
commit73f008334ff427ec6ff680600bcf3ebb57459752
tree58a782107681618e84a38bbba976ee68d0975a35
parentfe3b65c202700364daa5d7b560be90ec36ed3c30
net/mlx5: remove redundant size calculation macro

Patch [1] added, among other definitions, the macro MLX5_ST_SZ_DB.
Patch [2] added later the macro MLX5_ST_SZ_BYTES, which is exactly
the same macro with a different name.
Each of these macros was used in very few places.

This patch removes the definition of MLX5_ST_SZ_DB, and replaces it
with MLX5_ST_SZ_BYTES wherever it was used.
Macro MLX5_ST_SZ_BYTES was preffered since it is the same macro
name used in kernel code, see [3].

[1] http://patches.dpdk.org/patch/45254/
[2] http://patches.dpdk.org/patch/49403/
[3] https://lists.openwall.net/netdev/2014/10/02/75

Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Shahaf Shuler <shahafs@mellanox.com>
drivers/net/mlx5/mlx5_flow_dv.c
drivers/net/mlx5/mlx5_prm.h