diff options
author | Shradha Gupta <shradhagupta@linux.microsoft.com> | 2024-09-01 20:45:34 -0700 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-09-04 16:28:51 -0700 |
commit | 1705341485ff1eec097dfa26891d03afe5907e16 (patch) | |
tree | 7cc6d82566ddb862d9c1b5d3b9df737421b1b088 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 7808012003004b5b31e24795af33480d5eed20f1 (diff) |
net: mana: Improve mana_set_channels() in low mem conditions
The mana_set_channels() function requires detaching the mana
driver and reattaching it with changed channel values.
During this operation if the system is low on memory, the reattach
might fail, causing the network device being down.
To avoid this we pre-allocate buffers at the beginning of set operation,
to prevent complete network loss
Signed-off-by: Shradha Gupta <shradhagupta@linux.microsoft.com>
Reviewed-by: Gerhard Engleder <gerhard@engleder-embedded.com>
Reviewed-by: Haiyang Zhang <haiyangz@microsoft.com>
Link: https://patch.msgid.link/1725248734-21760-1-git-send-email-shradhagupta@linux.microsoft.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions