From db215ca08d68eef7baed7eac090cabc427f6f733 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Thu, 12 Nov 2020 18:50:01 +0100 Subject: [PATCH 1/2] linux_mptcp_94: remove (outdated) few years old by now, use linux_mptcp_95 instead. --- .../linux/kernel/linux-mptcp-94.nix | 26 ------------------- pkgs/top-level/all-packages.nix | 12 --------- 2 files changed, 38 deletions(-) delete mode 100644 pkgs/os-specific/linux/kernel/linux-mptcp-94.nix diff --git a/pkgs/os-specific/linux/kernel/linux-mptcp-94.nix b/pkgs/os-specific/linux/kernel/linux-mptcp-94.nix deleted file mode 100644 index e53c3ceb5c46..000000000000 --- a/pkgs/os-specific/linux/kernel/linux-mptcp-94.nix +++ /dev/null @@ -1,26 +0,0 @@ -{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args: -let - mptcpVersion = "0.94.6"; - modDirVersion = "4.14.127"; -in -buildLinux ({ - version = "${modDirVersion}-mptcp_v${mptcpVersion}"; - inherit modDirVersion; - - extraMeta = { - branch = "4.4"; - maintainers = with stdenv.lib.maintainers; [ teto layus ]; - }; - - src = fetchFromGitHub { - owner = "multipath-tcp"; - repo = "mptcp"; - rev = "v${mptcpVersion}"; - sha256 = "071cx9205wpzhi5gc2da79w2abs3czd60jg0xml7j1szc5wl4yfn"; - }; - - structuredExtraConfig = stdenv.lib.mkMerge [ - (import ./mptcp-config.nix { inherit stdenv; }) - structuredExtraConfig - ]; -} // args) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 8cb08bce062d..9aebab472813 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17939,18 +17939,6 @@ in linux_mptcp = linux_mptcp_95; - linux_mptcp_94 = callPackage ../os-specific/linux/kernel/linux-mptcp-94.nix { - kernelPatches = - [ kernelPatches.bridge_stp_helper - kernelPatches.request_key_helper - kernelPatches.cpu-cgroup-v2."4.11" - kernelPatches.modinst_arg_list_too_long - ] - ++ lib.optionals ((stdenv.hostPlatform.platform.kernelArch or null) == "mips") - [ kernelPatches.mips_fpureg_emu - kernelPatches.mips_fpu_sigill - kernelPatches.mips_ext3_n32 - ]; }; linux_mptcp_95 = callPackage ../os-specific/linux/kernel/linux-mptcp-95.nix { From 015939bece33c8bf973ad7d2634c14b203f78230 Mon Sep 17 00:00:00 2001 From: Matthieu Coudron Date: Thu, 12 Nov 2020 18:50:47 +0100 Subject: [PATCH 2/2] linux_mptcp_5_9: MPTCP in upstream linux linux_mptcp_5_9 enables Multipath TCP in the upstream kernel. I keep linux_mptcp_95 even if it is out of tree because it has "more" features than linux_mptcp_5_9. --- pkgs/top-level/all-packages.nix | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 9aebab472813..78eb6c2d1f1a 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -17939,6 +17939,11 @@ in linux_mptcp = linux_mptcp_95; + linux_mptcp_5_9 = linux_5_9.override { + structuredExtraConfig = with lib.kernel; { + MPTCP = yes; + MPTCP_IPV6 = yes; + }; }; linux_mptcp_95 = callPackage ../os-specific/linux/kernel/linux-mptcp-95.nix {