]> 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)
commit8301444638d5461fbdeab747b4b5c7c7ed80ac95
tree2857608b13fbba7ae04baa9058778c6e17326a13
parent02ee4c27b6482ec29b41936420260a3f76f850a6
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