diff options
| author | Arnd Bergmann <arnd@arndb.de> | 2021-03-08 18:32:57 +0300 |
|---|---|---|
| committer | Saeed Mahameed <saeedm@nvidia.com> | 2021-03-13 02:29:32 +0300 |
| commit | 2119bda642c49c732409574ce699e4845e95df48 (patch) | |
| tree | 309655f555642864cf4038e264e1a4ff96839b47 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | e16cf9d754b93b0cb715ebb981e57cae200c19c9 (diff) | |
| download | linux-2119bda642c49c732409574ce699e4845e95df48.tar.xz | |
net/mlx5e: allocate 'indirection_rqt' buffer dynamically
Increasing the size of the indirection_rqt array from 128 to 256 bytes
pushed the stack usage of the mlx5e_hairpin_fill_rqt_rqns() function
over the warning limit when building with clang and CONFIG_KASAN:
drivers/net/ethernet/mellanox/mlx5/core/en_tc.c:970:1: error: stack frame size of 1180 bytes in function 'mlx5e_tc_add_nic_flow' [-Werror,-Wframe-larger-than=]
Using dynamic allocation here is safe because the caller does the
same, and it reduces the stack usage of the function to just a few
bytes.
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Tariq Toukan <tariqt@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
