]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Reduce flow counters bulk query buffer size for SFs
authorAvihai Horon <avihaih@nvidia.com>
Wed, 6 Oct 2021 09:19:40 +0000 (12:19 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 25 Oct 2021 20:51:18 +0000 (13:51 -0700)
commitce2f404f00534e0745f3b307881d4f48132155ac
tree2857608b13fbba7ae04baa9058778c6e17326a13
parentc0d4e202a2343a01d26aa4fd1757eb548039823b
net/mlx5: Reduce flow counters bulk query buffer size for SFs

Currently, the flow counters bulk query buffer takes a little more than
512KB of memory, which is aligned to the next power of 2, to 1MB.

The buffer size determines the maximum number of flow counters that can
be queried at a time. Thus, having a bigger buffer can improve
performance for users that need to query many flow counters.

SFs don't use many flow counters and don't need a big buffer. Since this
size is critical with large scale, reduce the size of the bulk query
buffer for SFs.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Mark Bloch <mbloch@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c