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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user