about summary refs log tree commit diff
path: root/pkgs/os-specific/linux/kernel/common-config.nix
diff options
context:
space:
mode:
authorK900 <me@0upti.me>2024-04-17 19:51:17 +0300
committerGitHub <noreply@github.com>2024-04-17 19:51:17 +0300
commitd205596f17d89a7205af1c7a9cd419be382d7557 (patch)
tree77bb60e2fdb731440d630f9908f123bbb40d0255 /pkgs/os-specific/linux/kernel/common-config.nix
parent3f03ce930328b27e5558a40e1fa6363151c5d864 (diff)
parent0d788b04690c7534da8253cb1c1d0e122f639b27 (diff)
Merge pull request #293302 from vifino/kconfig-tweaks
linux: Enable P2P DMA, NVMe Target Passthrough, Fabrics In-Band Auth and TCP TLS.
Diffstat (limited to 'pkgs/os-specific/linux/kernel/common-config.nix')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 0f1b314df6bd5..1ea2c3bc42c02 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -1053,6 +1053,17 @@ let
 
       NVME_MULTIPATH = yes;
 
+      NVME_AUTH = whenAtLeast "6.0" yes;
+      NVME_HOST_AUTH = whenAtLeast "6.7" yes;
+      NVME_TCP_TLS = whenAtLeast "6.7" yes;
+
+      NVME_TARGET = module;
+      NVME_TARGET_PASSTHROUGH = whenAtLeast "5.1" yes;
+      NVME_TARGET_AUTH = whenAtLeast "6.0" yes;
+      NVME_TARGET_TCP_TLS = whenAtLeast "6.7" yes;
+
+      PCI_P2PDMA = mkIf stdenv.hostPlatform.is64bit yes;
+
       PSI = whenAtLeast "4.20" yes;
 
       MOUSE_ELAN_I2C_SMBUS = yes;