From: Martin KaFai Lau Date: Wed, 24 Apr 2024 20:23:43 +0000 (-0700) Subject: Merge branch 'BPF crypto API framework' X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=52578f7f53ff8fe3a8f6f3bc8b5956615c07a16e;p=linux.git Merge branch 'BPF crypto API framework' Vadim Fedorenko says: ==================== This series introduces crypto kfuncs to make BPF programs able to utilize kernel crypto subsystem. Crypto operations made pluggable to avoid extensive growth of kernel when it's not needed. Only skcipher is added within this series, but it can be easily extended to other types of operations. No hardware offload supported as it needs sleepable context which is not available for TX or XDP programs. At the same time crypto context initialization kfunc can only run in sleepable context, that's why it should be run separately and store the result in the map. Selftests show the common way to implement crypto actions in BPF programs. Benchmark is also added to have a baseline. ==================== Signed-off-by: Martin KaFai Lau --- 52578f7f53ff8fe3a8f6f3bc8b5956615c07a16e