git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #63713 from teto/mptcp

Mptcp kernel updates

commitde56d6bfe662a00e38967bccd72c58d9d67e0972 authorMatthieu Coudron <mattator@gmail.com> dateTue 25 Jun 2019, 09:04 (7 years ago) parentb552d721e0f5ff
6 files changed+86−105
pkgs/os-specific/linux/kernel/linux-mptcp-93.nix−47 pkgs/os-specific/linux/kernel/linux-mptcp-94.nix+26 pkgs/os-specific/linux/kernel/linux-mptcp-95.nix+27 pkgs/os-specific/linux/kernel/linux-mptcp.nix−49 pkgs/os-specific/linux/kernel/mptcp-config.nix+28 pkgs/top-level/all-packages.nix+5−9
pkgs/os-specific/linux/kernel/linux-mptcp-93.nixdeleted−47
@@ -1,47 +0,0 @@
1−{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, ... } @ args:
2−
3−buildLinux (rec {
4− mptcpVersion = "0.93";
5− modDirVersion = "4.9.60";
6− version = "${modDirVersion}-mptcp_v${mptcpVersion}";
7−
8− extraMeta = {
9− branch = "4.4";
10− maintainers = with stdenv.lib.maintainers; [ teto layus ];
11− };
12−
13− src = fetchFromGitHub {
14− owner = "multipath-tcp";
15− repo = "mptcp";
16− rev = "v${mptcpVersion}";
17− sha256 = "1irlppzvcmckrazs2c4vg6y8ji31552izc3wqabf401v57jvxcys";
18− };
19−
20− extraConfig = ''
21− IPV6 y
22− MPTCP y
23− IP_MULTIPLE_TABLES y
24−
25− # Enable advanced path-managers...
26− MPTCP_PM_ADVANCED y
27− MPTCP_FULLMESH y
28− MPTCP_NDIFFPORTS y
29− # ... but use none by default.
30− # The default is safer if source policy routing is not setup.
31− DEFAULT_DUMMY y
32− DEFAULT_MPTCP_PM default
33−
34− # MPTCP scheduler selection.
35− # Disabled as the only non-default is the useless round-robin.
36− MPTCP_SCHED_ADVANCED n
37− DEFAULT_MPTCP_SCHED default
38−
39− # Smarter TCP congestion controllers
40− TCP_CONG_LIA m
41− TCP_CONG_OLIA m
42− TCP_CONG_WVEGAS m
43− TCP_CONG_BALIA m
44−
45− '' + (args.extraConfig or "");
46−} // args)
47−
pkgs/os-specific/linux/kernel/linux-mptcp-94.nixnew file+26
@@ -0,0 +1,26 @@
1+{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
2+let
3+ mptcpVersion = "0.94.6";
4+ modDirVersion = "4.14.127";
5+in
6+buildLinux ({
7+ version = "${modDirVersion}-mptcp_v${mptcpVersion}";
8+ inherit modDirVersion;
9+
10+ extraMeta = {
11+ branch = "4.4";
12+ maintainers = with stdenv.lib.maintainers; [ teto layus ];
13+ };
14+
15+ src = fetchFromGitHub {
16+ owner = "multipath-tcp";
17+ repo = "mptcp";
18+ rev = "v${mptcpVersion}";
19+ sha256 = "071cx9205wpzhi5gc2da79w2abs3czd60jg0xml7j1szc5wl4yfn";
20+ };
21+
22+ structuredExtraConfig = stdenv.lib.mkMerge [
23+ (import ./mptcp-config.nix { inherit stdenv; })
24+ structuredExtraConfig
25+ ];
26+} // args)
pkgs/os-specific/linux/kernel/linux-mptcp-95.nixnew file+27
@@ -0,0 +1,27 @@
1+{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
2+let
3+ mptcpVersion = "0.95";
4+ modDirVersion = "4.19.55";
5+in
6+buildLinux ({
7+ version = "${modDirVersion}-mptcp_v${mptcpVersion}";
8+ inherit modDirVersion;
9+
10+ extraMeta = {
11+ branch = "4.19";
12+ maintainers = with stdenv.lib.maintainers; [ teto layus ];
13+ };
14+
15+ src = fetchFromGitHub {
16+ owner = "multipath-tcp";
17+ repo = "mptcp";
18+ rev = "v${mptcpVersion}";
19+ sha256 = "04a66iq5vsiz8mkpszfxmqknz7y4w3lsckrcz6q1syjpk0pdyiyw";
20+ };
21+
22+ structuredExtraConfig = stdenv.lib.mkMerge [
23+ (import ./mptcp-config.nix { inherit stdenv; })
24+ structuredExtraConfig
25+ ];
26+
27+} // args)
pkgs/os-specific/linux/kernel/linux-mptcp.nixdeleted−49
@@ -1,49 +0,0 @@
1−{ stdenv, buildPackages, fetchFromGitHub, perl, buildLinux, structuredExtraConfig ? {}, ... } @ args:
2−let
3− mptcpVersion = "0.94.4";
4− modDirVersion = "4.14.110";
5−in
6−buildLinux ({
7− version = "${modDirVersion}-mptcp_v${mptcpVersion}";
8− inherit modDirVersion;
9−
10− extraMeta = {
11− branch = "4.4";
12− maintainers = with stdenv.lib.maintainers; [ teto layus ];
13− };
14−
15− src = fetchFromGitHub {
16− owner = "multipath-tcp";
17− repo = "mptcp";
18− rev = "v${mptcpVersion}";
19− sha256 = "1ng6p1djhm3m5g44yyq7gpqqbzsnhm9rimsafp5g4dx8cm27a70f";
20− };
21−
22− structuredExtraConfig = with import ../../../../lib/kernel.nix { inherit (stdenv) lib; version = null; };
23− stdenv.lib.mkMerge [ {
24− IPV6 = yes;
25− MPTCP = yes;
26− IP_MULTIPLE_TABLES = yes;
27−
28− # Enable advanced path-managers...
29− MPTCP_PM_ADVANCED = yes;
30− MPTCP_FULLMESH = yes;
31− MPTCP_NDIFFPORTS = yes;
32− # ... but use none by default.
33− # The default is safer if source policy routing is not setup.
34− DEFAULT_DUMMY = yes;
35− DEFAULT_MPTCP_PM.freeform = "default";
36−
37− # MPTCP scheduler selection.
38− MPTCP_SCHED_ADVANCED = yes;
39− DEFAULT_MPTCP_SCHED.freeform = "default";
40−
41− # Smarter TCP congestion controllers
42− TCP_CONG_LIA = module;
43− TCP_CONG_OLIA = module;
44− TCP_CONG_WVEGAS = module;
45− TCP_CONG_BALIA = module;
46− }
47− structuredExtraConfig
48− ];
49−} // args)
pkgs/os-specific/linux/kernel/mptcp-config.nixnew file+28
@@ -0,0 +1,28 @@
1+{ stdenv }:
2+with import ../../../../lib/kernel.nix { inherit (stdenv) lib; version = null; };
3+{
4+ # DRM_AMDGPU = yes;
5+
6+ IPV6 = yes;
7+ MPTCP = yes;
8+ IP_MULTIPLE_TABLES = yes;
9+
10+ # Enable advanced path-managers...
11+ MPTCP_PM_ADVANCED = yes;
12+ MPTCP_FULLMESH = yes;
13+ MPTCP_NDIFFPORTS = yes;
14+ # ... but use none by default.
15+ # The default is safer if source policy routing is not setup.
16+ DEFAULT_DUMMY = yes;
17+ DEFAULT_MPTCP_PM.freeform = "default";
18+
19+ # MPTCP scheduler selection.
20+ MPTCP_SCHED_ADVANCED = yes;
21+ DEFAULT_MPTCP_SCHED.freeform = "default";
22+
23+ # Smarter TCP congestion controllers
24+ TCP_CONG_LIA = module;
25+ TCP_CONG_OLIA = module;
26+ TCP_CONG_WVEGAS = module;
27+ TCP_CONG_BALIA = module;
28+}
pkgs/top-level/all-packages.nix+5−9
@@ -15294,8 +15294,9 @@ in
1529415294
1529515295 klibcShrunk = lowPrio (callPackage ../os-specific/linux/klibc/shrunk.nix { });
1529615296
15297− linux_mptcp = linux_mptcp_94;
15298− linux_mptcp_94 = callPackage ../os-specific/linux/kernel/linux-mptcp.nix {
15297+ linux_mptcp = linux_mptcp_95;
15298+
15299+ linux_mptcp_94 = callPackage ../os-specific/linux/kernel/linux-mptcp-94.nix {
1529915300 kernelPatches =
1530015301 [ kernelPatches.bridge_stp_helper
1530115302 kernelPatches.cpu-cgroup-v2."4.11"
@@ -15308,13 +15309,8 @@ in
1530815309 ];
1530915310 };
1531015311
15311− linux_mptcp_93 = callPackage ../os-specific/linux/kernel/linux-mptcp-93.nix {
15312− kernelPatches =
15313− [ kernelPatches.bridge_stp_helper
15314− kernelPatches.p9_fixes
15315− kernelPatches.cpu-cgroup-v2."4.9"
15316− kernelPatches.modinst_arg_list_too_long
15317− ];
15312+ linux_mptcp_95 = callPackage ../os-specific/linux/kernel/linux-mptcp-95.nix {
15313+ kernelPatches = linux_4_19.kernelPatches;
1531815314 };
1531915315
1532015316 linux_rpi = callPackage ../os-specific/linux/kernel/linux-rpi.nix {