public inbox for linux-nvme@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH v4 1/2] nvme: Add the DHCHAP maximum HD IDs
@ 2026-03-20  0:20 alistair23
  2026-03-20  0:20 ` [PATCH v4 2/2] nvme-auth: Don't propose NVME_AUTH_DHGROUP_NULL with SC_C alistair23
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: alistair23 @ 2026-03-20  0:20 UTC (permalink / raw)
  To: hare, kbusch, axboe, hch, sagi, linux-nvme, linux-kernel,
	yjshin0438
  Cc: alistair23, Alistair Francis

From: Alistair Francis <alistair.francis@wdc.com>

In preperation for using DHCHAP length in upcoming host and target
patches let's add the hash and diffie-hellman ID length macros.

Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
---
v4:
 - New patch

 include/linux/nvme.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/linux/nvme.h b/include/linux/nvme.h
index 655d194f8e72..b9d3dbe2564d 100644
--- a/include/linux/nvme.h
+++ b/include/linux/nvme.h
@@ -2332,4 +2332,8 @@ enum nvme_pr_change_ptpl {
 
 #define NVME_PR_IGNORE_KEY (1 << 3)
 
+/* Section 8.3.4.5.2 of the NVMe 2.1 */
+#define NVME_AUTH_DHCHAP_MAX_HASH_IDS 30
+#define NVME_AUTH_DHCHAP_MAX_DH_IDS 30
+
 #endif /* _LINUX_NVME_H */
-- 
2.53.0



^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2026-03-24 15:14 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20  0:20 [PATCH v4 1/2] nvme: Add the DHCHAP maximum HD IDs alistair23
2026-03-20  0:20 ` [PATCH v4 2/2] nvme-auth: Don't propose NVME_AUTH_DHGROUP_NULL with SC_C alistair23
2026-03-20  7:44   ` Christoph Hellwig
2026-03-20 16:04   ` Chris Leech
2026-03-20  7:44 ` [PATCH v4 1/2] nvme: Add the DHCHAP maximum HD IDs Christoph Hellwig
2026-03-20  8:06 ` yunje shin
2026-03-20 13:49 ` Hannes Reinecke
2026-03-20 16:01 ` Chris Leech
2026-03-24 15:14 ` Keith Busch

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox