summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorEric Biggers <ebiggers@kernel.org>2026-04-27 20:27:25 +0300
committerPaolo Abeni <pabeni@redhat.com>2026-04-30 10:38:56 +0300
commit48168799896c58d3132822ba8513b10f8d6fe039 (patch)
tree14ddf3bd15d6b7810cb6dc50eef2fb956124efa3 /include/linux
parent068f5a00955675f10348986d4809edc4dbc0cae0 (diff)
downloadlinux-48168799896c58d3132822ba8513b10f8d6fe039.tar.xz
net/tcp-ao: Use stack-allocated MAC and traffic_key buffers
Now that the maximum MAC and traffic key lengths are statically-known small values, allocate MACs and traffic keys on the stack instead of with kmalloc. This eliminates multiple failure-prone GFP_ATOMIC allocations. Note that some cases such as tcp_ao_prepare_reset() are left unchanged for now since they would require slightly wider changes. Reviewed-by: Ard Biesheuvel <ardb@kernel.org> Signed-off-by: Eric Biggers <ebiggers@kernel.org> Link: https://patch.msgid.link/20260427172727.9310-4-ebiggers@kernel.org Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions