BACKPORT: FROMLIST: dm: Enable inline crypto passthrough for striped target

Added DM_TARGET_PASSES_CRYPTO feature to the striped target to utilize
the hardware encryption of the underlying storage devices, preventing
fallback to the crypto API.

Bug: 397299914
Link: https://lore.kernel.org/lkml/20250216144224.1702385-2-ed.tsai@mediatek.com/
Change-Id: I0658cb11046be785e337c6b5e46c3674e9261ce0
Signed-off-by: Ed Tsai <ed.tsai@mediatek.com>
This commit is contained in:
Ed Tsai
2025-02-14 23:33:06 +08:00
committed by Eric Biggers
parent 8954231016
commit 9137193d4e
+2 -1
View File
@@ -466,7 +466,8 @@ static void stripe_io_hints(struct dm_target *ti,
static struct target_type stripe_target = {
.name = "striped",
.version = {1, 6, 0},
.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT,
.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
DM_TARGET_PASSES_CRYPTO,
.module = THIS_MODULE,
.ctr = stripe_ctr,
.dtr = stripe_dtr,