diff options
| author | Antoine Tenart <[email protected]> | 2024-10-17 15:24:19 +0000 |
|---|---|---|
| committer | Paolo Abeni <[email protected]> | 2024-10-23 08:28:26 +0000 |
| commit | 124afe773b1ad6cddb8f661a14a32c9e76ca92a6 (patch) | |
| tree | 0df1a4a2b72ef3190e88744493933b2e9e123928 /tools/net/ynl/cli.py | |
| parent | net: sysctl: do not reserve an extra char in dump_cpumask temporary buffer (diff) | |
| download | kernel-124afe773b1ad6cddb8f661a14a32c9e76ca92a6.tar.gz kernel-124afe773b1ad6cddb8f661a14a32c9e76ca92a6.zip | |
net: sysctl: allow dump_cpumask to handle higher numbers of CPUs
This fixes the output of rps_default_mask and flow_limit_cpu_bitmap when
the CPU count is > 448, as it was truncated.
The underlying values are actually stored correctly when writing to
these sysctl but displaying them uses a fixed length temporary buffer in
dump_cpumask. This buffer can be too small if the CPU count is > 448.
Fix this by dynamically allocating the buffer in dump_cpumask, using a
guesstimate of what we need.
Signed-off-by: Antoine Tenart <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Signed-off-by: Paolo Abeni <[email protected]>
Diffstat (limited to 'tools/net/ynl/cli.py')
0 files changed, 0 insertions, 0 deletions
