net/mlx5: Allow skipping counter refresh on creation
CT creates a counter for each CT rule, and for each such counter, fs_counters tries to queue mlx5_fc_stats_work() work again via mod_delayed_work(0) call to refresh all counters. This call has a large performance impact when reaching high insertion rate and accounts for ~8% of the insertion time when using software steering. Allow skipping the refresh of all counters during counter creation. Change CT to use this refresh skipping for it's counters. Signed-off-by:Paul Blakey <paulb@nvidia.com> Reviewed-by:
Roi Dayan <roid@nvidia.com> Reviewed-by:
Oz Shlomo <ozsh@nvidia.com> Signed-off-by:
Saeed Mahameed <saeedm@nvidia.com>
Showing
- drivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c 1 addition, 1 deletiondrivers/net/ethernet/mellanox/mlx5/core/en/tc_ct.c
- drivers/net/ethernet/mellanox/mlx5/core/fs_counters.c 11 additions, 3 deletionsdrivers/net/ethernet/mellanox/mlx5/core/fs_counters.c
- include/linux/mlx5/fs.h 4 additions, 0 deletionsinclude/linux/mlx5/fs.h
Loading
Please register or sign in to comment