aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_prog_array_init.c
diff options
context:
space:
mode:
authorShradha Gupta <[email protected]>2024-09-01 20:45:34 -0700
committerJakub Kicinski <[email protected]>2024-09-04 16:28:51 -0700
commit1705341485ff1eec097dfa26891d03afe5907e16 (patch)
tree7cc6d82566ddb862d9c1b5d3b9df737421b1b088 /tools/testing/selftests/bpf/progs/test_prog_array_init.c
parent7808012003004b5b31e24795af33480d5eed20f1 (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 <[email protected]> Reviewed-by: Gerhard Engleder <[email protected]> Reviewed-by: Haiyang Zhang <[email protected]> Link: https://patch.msgid.link/1725248734-21760-1-git-send-email-shradhagupta@linux.microsoft.com Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_prog_array_init.c')
0 files changed, 0 insertions, 0 deletions