Merge branch 'BPF crypto API framework'
authorMartin KaFai Lau <martin.lau@kernel.org>
Wed, 24 Apr 2024 20:23:43 +0000 (13:23 -0700)
committerMartin KaFai Lau <martin.lau@kernel.org>
Wed, 24 Apr 2024 23:01:10 +0000 (16:01 -0700)
commit52578f7f53ff8fe3a8f6f3bc8b5956615c07a16e
tree788f59542e51908ad78c8fb9d32be432a2b44397
parent95c07d58250ca3ed01855c20be568cf04e15382f
parent8000e627dc98efc44658af6150fd81c62d936b1b
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 <martin.lau@kernel.org>