]> www.infradead.org Git - linux.git/commitdiff
dm: Enable inline crypto passthrough for striped target
authorEd Tsai <ed.tsai@mediatek.com>
Sun, 16 Feb 2025 14:42:21 +0000 (22:42 +0800)
committerMikulas Patocka <mpatocka@redhat.com>
Mon, 17 Feb 2025 10:48:32 +0000 (11:48 +0100)
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.

Signed-off-by: Ed Tsai <ed.tsai@mediatek.com>
Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
drivers/md/dm-stripe.c

index 3786ac67cefe6ea878b1810cc800633db3daa6f0..a1b7535c508a7fb7170686c1df0db3003de01e69 100644 (file)
@@ -467,7 +467,7 @@ static struct target_type stripe_target = {
        .name   = "striped",
        .version = {1, 7, 0},
        .features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
-                   DM_TARGET_ATOMIC_WRITES,
+                   DM_TARGET_ATOMIC_WRITES | DM_TARGET_PASSES_CRYPTO,
        .module = THIS_MODULE,
        .ctr    = stripe_ctr,
        .dtr    = stripe_dtr,