[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20181211095001.GA32573@lvlogina.cadence.com>
Date: Tue, 11 Dec 2018 09:50:01 +0000
From: Parshuram Thombare <pthombar@...ence.com>
To: <axboe@...nel.dk>, <tj@...nel.org>, <jbacik@...com>,
<michaelcallahan@...com>, <snitzer@...hat.com>, <osandov@...com>,
<keith.busch@...el.com>, <ming.lei@...hat.com>, <shli@...com>,
<dennisszhou@...il.com>, <linux-kernel@...r.kernel.org>
CC: <adouglas@...ence.com>, <jank@...ence.com>, <rafalc@...ence.com>,
<pthombar@...ence.com>
Subject: [PATCH 1/2] block: add bi_crypto_ctx variable in struct bio
Add variable 'void *bi_crypt_ctx' in 'struct bio'. This will
be used to associate bio with crypto configuration of controller
supporting real time / inline encryption/decryption.
Signed-off-by: Parshuram Thombare <pthombar@...ence.com>
---
include/linux/blk_types.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/linux/blk_types.h b/include/linux/blk_types.h
index 1dcf652..bd77603 100644
--- a/include/linux/blk_types.h
+++ b/include/linux/blk_types.h
@@ -188,6 +188,10 @@ struct bio {
#endif
};
+#ifdef CONFIG_BLK_DEV_HW_RT_ENCRYPTION
+ void *bi_crypto_ctx;
+#endif
+
unsigned short bi_vcnt; /* how many bio_vec's */
/*
--
1.7.1
Powered by blists - more mailing lists