diff options
author | Vadim Fedorenko <vadfed@meta.com> | 2024-04-22 15:50:21 -0700 |
---|---|---|
committer | Martin KaFai Lau <martin.lau@kernel.org> | 2024-04-24 16:01:10 -0700 |
commit | 3e1c6f35409f9e447bf37f64840f5b65576bfb78 (patch) | |
tree | 6ff5c59d598f975728cfdd1f4d29407d4b6cae01 /crypto | |
parent | 95c07d58250ca3ed01855c20be568cf04e15382f (diff) |
bpf: make common crypto API for TC/XDP programs
Add crypto API support to BPF to be able to decrypt or encrypt packets
in TC/XDP BPF programs. Special care should be taken for initialization
part of crypto algo because crypto alloc) doesn't work with preemtion
disabled, it can be run only in sleepable BPF program. Also async crypto
is not supported because of the very same issue - TC/XDP BPF programs
are not sleepable.
Signed-off-by: Vadim Fedorenko <vadfed@meta.com>
Link: https://lore.kernel.org/r/20240422225024.2847039-2-vadfed@meta.com
Signed-off-by: Martin KaFai Lau <martin.lau@kernel.org>
Diffstat (limited to 'crypto')
0 files changed, 0 insertions, 0 deletions