diff options
author | 2021-12-05 15:10:35 +0200 | |
---|---|---|
committer | 2022-01-27 12:37:33 -0800 | |
commit | eeed226ed110ed40598e60e29b66643012277be7 (patch) | |
tree | 65f7ed875f0b20356d9b287cf83cf916836f8362 /tools/perf/scripts/python/stackcollapse.py | |
parent | net/mlx5e: TC, Reject rules with multiple CT actions (diff) | |
download | linux-dev-eeed226ed110ed40598e60e29b66643012277be7.tar.xz linux-dev-eeed226ed110ed40598e60e29b66643012277be7.zip |
net/mlx5e: TC, Hold sample_attr on stack instead of pointer
In later commit we are going to instantiate multiple attr instances
for flow instead of single attr.
Parsing TC sample allocates a new memory but there is no symmetric
cleanup in the infrastructure.
To avoid asymmetric alloc/free use sample_attr as part of the flow attr
and not allocated and held as a pointer.
This will avoid a cleanup leak when sample action is not on the first
attr.
Signed-off-by: Roi Dayan <roid@nvidia.com>
Reviewed-by: Oz Shlomo <ozsh@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions