Skip to content

Commit a8b8a12

Browse files
Ed TsaiMikulas Patocka
authored andcommitted
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. Signed-off-by: Ed Tsai <ed.tsai@mediatek.com> Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
1 parent 0ce46f4 commit a8b8a12

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/md/dm-stripe.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -467,7 +467,7 @@ static struct target_type stripe_target = {
467467
.name = "striped",
468468
.version = {1, 7, 0},
469469
.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
470-
DM_TARGET_ATOMIC_WRITES,
470+
DM_TARGET_ATOMIC_WRITES | DM_TARGET_PASSES_CRYPTO,
471471
.module = THIS_MODULE,
472472
.ctr = stripe_ctr,
473473
.dtr = stripe_dtr,

0 commit comments

Comments
 (0)