net/mlx5: Fix flow counters SF bulk query len
authorAvihai Horon <avihaih@nvidia.com>
Wed, 3 Nov 2021 11:04:23 +0000 (13:04 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 16 Nov 2021 20:20:22 +0000 (12:20 -0800)
commit38a54cae6f76c3e6a1e6c1e52c2e43a069fa78cb
tree060b3711ab491747989a480c7b4fec109afdb139
parent2eb0cb31bc4ce2ede5460cf3ef433b40cf5f040d
net/mlx5: Fix flow counters SF bulk query len

When doing a flow counters bulk query, the number of counters to query
must be aligned to 4. Current SF bulk query len is not aligned to 4,
which leads to an error when trying to query more than 4 counters.

Fix it by aligning SF bulk query len to 4.

Fixes: 2fdeb4f4c2ae ("net/mlx5: Reduce flow counters bulk query buffer size for SFs")
Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c