diff options
-rw-r--r-- | .SRCINFO | 12 | ||||
-rw-r--r-- | PKGBUILD | 30 | ||||
-rw-r--r-- | undo_cwnd.patch | 77 |
3 files changed, 18 insertions, 101 deletions
@@ -1,8 +1,8 @@ # Generated by mksrcinfo v8 -# Sun Mar 25 01:05:59 UTC 2018 +# Wed May 23 13:18:28 UTC 2018 pkgbase = linux-mptcp pkgver = 0.94 - pkgrel = 2 + pkgrel = 3 epoch = 1 url = http://www.multipath-tcp.org/ arch = x86_64 @@ -13,25 +13,23 @@ pkgbase = linux-mptcp makedepends = bc makedepends = libelf options = !strip - source = https://github.com/multipath-tcp/mptcp/archive/v0.94/linux-mptcp-0.94.tar.gz + source = https://github.com/multipath-tcp/mptcp/archive/d6cd22e29f5c9b7bf374e259bbb2d51be5cfaee5/linux-mptcp-0.94-d6cd22e29f5c9b7bf374e259bbb2d51be5cfaee5.tar.gz source = config source = 60-linux.hook source = 90-linux.hook source = linux-mptcp.preset source = 0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch source = 0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch - source = undo_cwnd.patch - sha256sums = 4b12cb81fd7d6b65496d7bf52bec96a225e22439d0704f88d33c0c895bcd8436 + sha256sums = 048f017a768b956ef598c09b4fa37ddf9ca4c966fc88dc69f4dd65d34f427459 sha256sums = 039c824a72c1c10c3a44fc9d5f50a3ea2d6147ae7db115ba33c1136c13781b97 sha256sums = ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21 sha256sums = 75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919 sha256sums = ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65 sha256sums = 36b1118c8dedadc4851150ddd4eb07b1c58ac5bbf3022cc2501a27c2b476da98 sha256sums = 6364edabad4182dcf148ae7c14d8f45d61037d4539e76486f978f1af3a090794 - sha256sums = 27421905cf8e6cae6c1053d13ad2d9f85c282f1faa293e750ce551d3b58fbcdf pkgname = linux-mptcp - pkgdesc = The Linux kernel and modules with Multipath TCP support (based on linux 4.14.24) + pkgdesc = The Linux kernel and modules with Multipath TCP support (based on linux 4.14.41) install = linux-mptcp.install depends = coreutils depends = linux-firmware @@ -6,36 +6,35 @@ # Contributor: Élie Bouttier <elie@bouttier.eu> pkgbase=linux-mptcp -_srcname=mptcp pkgver=0.94 -pkgrel=2 +pkgrel=3 epoch=1 +_commit=d6cd22e29f5c9b7bf374e259bbb2d51be5cfaee5 +_srcname=mptcp-${_commit} arch=('x86_64') url="http://www.multipath-tcp.org/" license=('GPL2') makedepends=('xmlto' 'kmod' 'inetutils' 'bc' 'libelf') options=('!strip') -source=("https://github.com/multipath-tcp/mptcp/archive/v${pkgver}/${pkgbase}-${pkgver}.tar.gz" +source=("https://github.com/multipath-tcp/mptcp/archive/${_commit}/${pkgbase}-${pkgver}-${_commit}.tar.gz" 'config' # the main kernel config file '60-linux.hook' # pacman hook for depmod '90-linux.hook' # pacman hook for initramfs regeneration 'linux-mptcp.preset' # standard config files for mkinitcpio ramdisk '0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch' - '0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch' - 'undo_cwnd.patch') -sha256sums=('4b12cb81fd7d6b65496d7bf52bec96a225e22439d0704f88d33c0c895bcd8436' + '0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch') +sha256sums=('048f017a768b956ef598c09b4fa37ddf9ca4c966fc88dc69f4dd65d34f427459' '039c824a72c1c10c3a44fc9d5f50a3ea2d6147ae7db115ba33c1136c13781b97' 'ae2e95db94ef7176207c690224169594d49445e04249d2499e9d2fbc117a0b21' '75f99f5239e03238f88d1a834c50043ec32b1dc568f2cc291b07d04718483919' 'ad6344badc91ad0630caacde83f7f9b97276f80d26a20619a87952be65492c65' '36b1118c8dedadc4851150ddd4eb07b1c58ac5bbf3022cc2501a27c2b476da98' - '6364edabad4182dcf148ae7c14d8f45d61037d4539e76486f978f1af3a090794' - '27421905cf8e6cae6c1053d13ad2d9f85c282f1faa293e750ce551d3b58fbcdf') + '6364edabad4182dcf148ae7c14d8f45d61037d4539e76486f978f1af3a090794') _kernelname=${pkgbase#linux} prepare() { - cd "${srcdir}/${_srcname}-${pkgver}" + cd "${srcdir}/${_srcname}" # disable USER_NS for non-root users by default patch -Np1 -i "${srcdir}/0001-add-sysctl-to-disallow-unprivileged-CLONE_NEWUSER-by.patch" @@ -43,9 +42,6 @@ prepare() { # https://bugs.archlinux.org/task/56711 patch -Np1 -i "${srcdir}/0002-drm-i915-edp-Only-use-the-alternate-fixed-mode-if-it.patch" - # Fix issue that prevents any congestion control to be loaded - patch -Np1 -i "${srcdir}/undo_cwnd.patch" - cat "${srcdir}/config" > ./.config if [ "${_kernelname}" != "" ]; then @@ -75,7 +71,7 @@ prepare() { } build() { - cd "${srcdir}/${_srcname}-${pkgver}" + cd "${srcdir}/${_srcname}" # save configuration for later reuse cat .config > "${startdir}/config.last" @@ -84,7 +80,7 @@ build() { } _package() { - pkgdesc="The Linux kernel and modules with Multipath TCP support (based on linux 4.14.24)" + pkgdesc="The Linux kernel and modules with Multipath TCP support (based on linux 4.14.41)" [ "${pkgbase}" = "linux" ] && groups=('base') depends=('coreutils' 'linux-firmware' 'kmod' 'mkinitcpio>=0.7') optdepends=('crda: to set the correct wireless channels of your country' @@ -93,7 +89,7 @@ _package() { backup=("etc/mkinitcpio.d/${pkgbase}.preset") install=linux-mptcp.install - cd "${srcdir}/${_srcname}-${pkgver}" + cd "${srcdir}/${_srcname}" # get kernel version _kernver="$(make LOCALVERSION= kernelrelease)" @@ -146,7 +142,7 @@ _package() { _package-headers() { pkgdesc="Header files and scripts for building modules for ${pkgbase/linux/Linux} kernel" - cd "${srcdir}/${_srcname}-${pkgver}" + cd "${srcdir}/${_srcname}" local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build" install -Dt "${_builddir}" -m644 Makefile .config Module.symvers @@ -216,7 +212,7 @@ _package-headers() { _package-docs() { pkgdesc="Kernel hackers manual - HTML documentation that comes with the ${pkgbase/linux/Linux} kernel" - cd "${srcdir}/${_srcname}-${pkgver}" + cd "${srcdir}/${_srcname}" local _builddir="${pkgdir}/usr/lib/modules/${_kernver}/build" mkdir -p "${_builddir}" diff --git a/undo_cwnd.patch b/undo_cwnd.patch deleted file mode 100644 index 1f7be1e45f2c..000000000000 --- a/undo_cwnd.patch +++ /dev/null @@ -1,77 +0,0 @@ -From c2119e001dd45a4fa3cf2c33d513e84662dd030e Mon Sep 17 00:00:00 2001 -From: Ycarus <ycarus@zugaina.org> -Date: Fri, 16 Mar 2018 17:26:19 +0100 -Subject: [PATCH] mptcp: add undo_cwnd to all MPTCP congestion modules. - -This patch add tcp_reno_undo_cwnd to all MPTCP congestion modules. -This was the fallback used before -https://github.com/multipath-tcp/mptcp/commit/e97991832a4ea4a5f47d65f068a4c966a2eb5730 - -The patch remove this error: -``` -Thu Mar 15 15:24:09 2018 kern.err kernel: [ 0.180797] TCP: lia does not implement required ops -Thu Mar 15 15:24:09 2018 kern.err kernel: [ 0.181160] TCP: olia does not implement required ops -Thu Mar 15 15:24:09 2018 kern.err kernel: [ 0.181527] TCP: wvegas does not implement required ops -Thu Mar 15 15:24:09 2018 kern.err kernel: [ 0.181901] TCP: balia does not implement required ops -``` - -Fixes: 0bc2117826d3 ("Merge tag 'v4.10' into mptcp_trunk") -Signed-off-by: Ycarus (Yannick Chabanois) <ycarus@zugaina.org> -Signed-off-by: Christoph Paasch <cpaasch@apple.com> -(cherry picked from commit a16eccb970a3715d902d2bd8da1e2092998ee22f) -Signed-off-by: Christoph Paasch <cpaasch@apple.com> ---- - net/mptcp/mptcp_balia.c | 1 + - net/mptcp/mptcp_coupled.c | 1 + - net/mptcp/mptcp_olia.c | 1 + - net/mptcp/mptcp_wvegas.c | 1 + - 4 files changed, 4 insertions(+) - -diff --git a/net/mptcp/mptcp_balia.c b/net/mptcp/mptcp_balia.c -index 73f365b436bd..8b1fe11b08d5 100644 ---- a/net/mptcp/mptcp_balia.c -+++ b/net/mptcp/mptcp_balia.c -@@ -241,6 +241,7 @@ static struct tcp_congestion_ops mptcp_balia = { - .init = mptcp_balia_init, - .ssthresh = mptcp_balia_ssthresh, - .cong_avoid = mptcp_balia_cong_avoid, -+ .undo_cwnd = tcp_reno_undo_cwnd, - .cwnd_event = mptcp_balia_cwnd_event, - .set_state = mptcp_balia_set_state, - .owner = THIS_MODULE, -diff --git a/net/mptcp/mptcp_coupled.c b/net/mptcp/mptcp_coupled.c -index 9d97947aed03..f9d856334ca9 100644 ---- a/net/mptcp/mptcp_coupled.c -+++ b/net/mptcp/mptcp_coupled.c -@@ -244,6 +244,7 @@ static struct tcp_congestion_ops mptcp_ccc = { - .init = mptcp_ccc_init, - .ssthresh = tcp_reno_ssthresh, - .cong_avoid = mptcp_ccc_cong_avoid, -+ .undo_cwnd = tcp_reno_undo_cwnd, - .cwnd_event = mptcp_ccc_cwnd_event, - .set_state = mptcp_ccc_set_state, - .owner = THIS_MODULE, -diff --git a/net/mptcp/mptcp_olia.c b/net/mptcp/mptcp_olia.c -index 201b595e0a31..c17c306849a3 100644 ---- a/net/mptcp/mptcp_olia.c -+++ b/net/mptcp/mptcp_olia.c -@@ -284,6 +284,7 @@ static struct tcp_congestion_ops mptcp_olia = { - .init = mptcp_olia_init, - .ssthresh = tcp_reno_ssthresh, - .cong_avoid = mptcp_olia_cong_avoid, -+ .undo_cwnd = tcp_reno_undo_cwnd, - .set_state = mptcp_olia_set_state, - .owner = THIS_MODULE, - .name = "olia", -diff --git a/net/mptcp/mptcp_wvegas.c b/net/mptcp/mptcp_wvegas.c -index 87a496811c0d..4373b8d1ee8d 100644 ---- a/net/mptcp/mptcp_wvegas.c -+++ b/net/mptcp/mptcp_wvegas.c -@@ -240,6 +240,7 @@ static struct tcp_congestion_ops mptcp_wvegas __read_mostly = { - .init = mptcp_wvegas_init, - .ssthresh = tcp_reno_ssthresh, - .cong_avoid = mptcp_wvegas_cong_avoid, -+ .undo_cwnd = tcp_reno_undo_cwnd, - .pkts_acked = mptcp_wvegas_pkts_acked, - .set_state = mptcp_wvegas_state, - .cwnd_event = mptcp_wvegas_cwnd_event, |