diff options
| author | Eric Biggers <ebiggers@kernel.org> | 2026-04-27 10:27:25 -0700 |
|---|---|---|
| committer | Paolo Abeni <pabeni@redhat.com> | 2026-04-30 09:38:56 +0200 |
| commit | 48168799896c58d3132822ba8513b10f8d6fe039 (patch) | |
| tree | 14ddf3bd15d6b7810cb6dc50eef2fb956124efa3 /include/linux/timerqueue.h | |
| parent | 068f5a00955675f10348986d4809edc4dbc0cae0 (diff) | |
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/timerqueue.h')
0 files changed, 0 insertions, 0 deletions
