]> git.proxmox.com Git - mirror_ubuntu-kernels.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)
commit2fdeb4f4c2aea53a6a2e8adb69e811cf304a0ae5
tree2857608b13fbba7ae04baa9058778c6e17326a13
parent038e5e471874d26881d5f3b234c78e41a71ad606
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