Skip to content

Commit 3db564b

Browse files
Satya Tangiralasnitm
authored andcommitted
dm: set DM_TARGET_PASSES_CRYPTO feature for some targets
dm-linear and dm-flakey obviously can pass through inline crypto support. Co-developed-by: Eric Biggers <[email protected]> Signed-off-by: Eric Biggers <[email protected]> Signed-off-by: Satya Tangirala <[email protected]> Signed-off-by: Mike Snitzer <[email protected]>
1 parent 9355a9e commit 3db564b

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

drivers/md/dm-flakey.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,8 +482,10 @@ static struct target_type flakey_target = {
482482
.name = "flakey",
483483
.version = {1, 5, 0},
484484
#ifdef CONFIG_BLK_DEV_ZONED
485-
.features = DM_TARGET_ZONED_HM,
485+
.features = DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
486486
.report_zones = flakey_report_zones,
487+
#else
488+
.features = DM_TARGET_PASSES_CRYPTO,
487489
#endif
488490
.module = THIS_MODULE,
489491
.ctr = flakey_ctr,

drivers/md/dm-linear.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,11 @@ static struct target_type linear_target = {
229229
.version = {1, 4, 0},
230230
#ifdef CONFIG_BLK_DEV_ZONED
231231
.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
232-
DM_TARGET_ZONED_HM,
232+
DM_TARGET_ZONED_HM | DM_TARGET_PASSES_CRYPTO,
233233
.report_zones = linear_report_zones,
234234
#else
235-
.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT,
235+
.features = DM_TARGET_PASSES_INTEGRITY | DM_TARGET_NOWAIT |
236+
DM_TARGET_PASSES_CRYPTO,
236237
#endif
237238
.module = THIS_MODULE,
238239
.ctr = linear_ctr,

0 commit comments

Comments
 (0)