Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/1.2/patches/831077/?format=api
{ "id": 831077, "url": "http://patchwork.ozlabs.org/api/1.2/patches/831077/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20171027045510.5827-10-edumazet@google.com/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/1.2/projects/7/?format=api", "name": "Linux network development", "link_name": "netdev", "list_id": "netdev.vger.kernel.org", "list_email": "netdev@vger.kernel.org", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20171027045510.5827-10-edumazet@google.com>", "list_archive_url": null, "date": "2017-10-27T04:55:04", "name": "[v2,net-next,09/15] tcp: Namespace-ify sysctl_tcp_fack", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "dc271e4f648e82f44df82612afc55840cfe83cb7", "submitter": { "id": 13357, "url": "http://patchwork.ozlabs.org/api/1.2/people/13357/?format=api", "name": "Eric Dumazet", "email": "edumazet@google.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/1.2/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20171027045510.5827-10-edumazet@google.com/mbox/", "series": [ { "id": 10492, "url": "http://patchwork.ozlabs.org/api/1.2/series/10492/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=10492", "date": "2017-10-27T04:54:55", "name": "tcp: move 14 sysctls to namespaces", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/10492/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/831077/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/831077/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Authentication-Results": [ "ozlabs.org;\n\tspf=none (mailfrom) smtp.mailfrom=vger.kernel.org\n\t(client-ip=209.132.180.67; helo=vger.kernel.org;\n\tenvelope-from=netdev-owner@vger.kernel.org;\n\treceiver=<UNKNOWN>)", "ozlabs.org; dkim=pass (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"GBXn+Cya\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3yNWm150ZDz9t30\n\tfor <patchwork-incoming@ozlabs.org>;\n\tFri, 27 Oct 2017 15:55:45 +1100 (AEDT)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752007AbdJ0Ezo (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 27 Oct 2017 00:55:44 -0400", "from mail-io0-f194.google.com ([209.85.223.194]:44548 \"EHLO\n\tmail-io0-f194.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751932AbdJ0Eze (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Fri, 27 Oct 2017 00:55:34 -0400", "by mail-io0-f194.google.com with SMTP id m16so10138451iod.1\n\tfor <netdev@vger.kernel.org>; Thu, 26 Oct 2017 21:55:34 -0700 (PDT)", "from localhost ([2620:15c:2c4:201:c5be:583d:61a8:d070])\n\tby smtp.gmail.com with ESMTPSA id\n\tk83sm3111490iod.35.2017.10.26.21.55.33\n\t(version=TLS1_2 cipher=AES128-SHA bits=128/128);\n\tThu, 26 Oct 2017 21:55:33 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=google.com; s=20161025;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=+glrnGsgwKRGzmabiTtH5/Gh1X7kOVViSpgllHtshPs=;\n\tb=GBXn+Cyaq32R6t6ES9gYAzkpnO9vGVMhhDKRpO/8hnR16jPlzTG8RIJKDSxXbzfmgH\n\tOT4MVTP3z3HSviOISM7sYdEllAnp9OKsergXQvPx7oGXXA5OsIwwVS/1Qsx7RufEiRsW\n\tkpZhgeaABbGj0vSW1sc+X9s029lAx0MVcXTkTpAY4A+Y8QHlfX4VfGi/JkeNQHRgXaBg\n\tbELnvVVc7K3pE4wwykhRlCFz8TI5Po2oggaNWDNP/wobpbZD6V66FWUy4UsNuIIR3Ua7\n\ti65jbGaz50DGNYFgrrp6MNyG7e2u3CqVoQkmd9k3kSTj9aKXEcoon6uxMMxHGde/7dOd\n\tuLXA==", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\n\t:references;\n\tbh=+glrnGsgwKRGzmabiTtH5/Gh1X7kOVViSpgllHtshPs=;\n\tb=oDc/yuA90jmQtIkx+qKBegM3KJesgab9F4QyR4aqQkNuQsENKb500K2j8qcvJnWrbu\n\te5HJl6sxaPoB/XdQTsxZK3EGJ4gu9ruvStbPaj2bjMPIwS88gPrk8PKLikmxCrDBR3Ls\n\teOPgSCR18vPAukGmXNr9Wz3MZUAT0d6ohubPHpad+4fvD/tfEQaClzYdjz+hR4RPfFti\n\tO7+FfUE9FTxabyp9aLqntuYMWhrCI4/cLkKZ7D1xcCx8+D1NdzgiqI1CwgDbwTsOK9hK\n\tDoCfy/4j9Nbvsh4om0mGyWhwX5jwoBBJZ4ZGGIU19R6UqpMJtFSv5mCY0G90T043fLPX\n\tsSGQ==", "X-Gm-Message-State": "AMCzsaXfW20TE0qFimJA9XkOoC3pO95Pu7pxUb9xDlzI0OhaF75he620\n\tbNfGhUsT4rIKpQKCQzGlSdF7RA==", "X-Google-Smtp-Source": "ABhQp+Qe6tYUcnRLcnSFSkgflqU70CWAoMPKE0ByB0wS4M8YX60p0Z2qJzTO52oOgQRgIj8ChuWnUg==", "X-Received": "by 10.107.155.16 with SMTP id d16mr31339188ioe.220.1509080133838;\n\tThu, 26 Oct 2017 21:55:33 -0700 (PDT)", "From": "Eric Dumazet <edumazet@google.com>", "To": "\"David S . Miller\" <davem@davemloft.net>", "Cc": "netdev <netdev@vger.kernel.org>, Eric Dumazet <edumazet@google.com>,\n\tEric Dumazet <eric.dumazet@gmail.com>", "Subject": "[PATCH v2 net-next 09/15] tcp: Namespace-ify sysctl_tcp_fack", "Date": "Thu, 26 Oct 2017 21:55:04 -0700", "Message-Id": "<20171027045510.5827-10-edumazet@google.com>", "X-Mailer": "git-send-email 2.15.0.rc2.357.g7e34df9404-goog", "In-Reply-To": "<20171027045510.5827-1-edumazet@google.com>", "References": "<20171027045510.5827-1-edumazet@google.com>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "Signed-off-by: Eric Dumazet <edumazet@google.com>\n---\n include/net/netns/ipv4.h | 1 +\n include/net/tcp.h | 1 -\n net/ipv4/sysctl_net_ipv4.c | 14 +++++++-------\n net/ipv4/tcp.c | 2 +-\n net/ipv4/tcp_input.c | 3 +--\n net/ipv4/tcp_minisocks.c | 2 +-\n 6 files changed, 11 insertions(+), 12 deletions(-)", "diff": "diff --git a/include/net/netns/ipv4.h b/include/net/netns/ipv4.h\nindex 3875fdf6b18653477408beb25176eac849e65ba4..f0e792beeea974b0850090d7624a3d7490124067 100644\n--- a/include/net/netns/ipv4.h\n+++ b/include/net/netns/ipv4.h\n@@ -136,6 +136,7 @@ struct netns_ipv4 {\n \tint sysctl_tcp_stdurg;\n \tint sysctl_tcp_rfc1337;\n \tint sysctl_tcp_abort_on_overflow;\n+\tint sysctl_tcp_fack;\n \tstruct inet_timewait_death_row tcp_death_row;\n \tint sysctl_max_syn_backlog;\n \tint sysctl_tcp_fastopen;\ndiff --git a/include/net/tcp.h b/include/net/tcp.h\nindex 7331281a229289f130ad7b5c5ddec1eba1ea2747..e7b15e9f6e288908bf58a28fe24554630c1e0710 100644\n--- a/include/net/tcp.h\n+++ b/include/net/tcp.h\n@@ -244,7 +244,6 @@ void tcp_time_wait(struct sock *sk, int state, int timeo);\n \n /* sysctl variables for tcp */\n extern int sysctl_tcp_max_orphans;\n-extern int sysctl_tcp_fack;\n extern int sysctl_tcp_reordering;\n extern int sysctl_tcp_max_reordering;\n extern int sysctl_tcp_dsack;\ndiff --git a/net/ipv4/sysctl_net_ipv4.c b/net/ipv4/sysctl_net_ipv4.c\nindex ffd1fd769bba7c3524aa6dfac734e1de0cad1506..1f23be13ce7be8b2a12b82aada36c6351fdfb70a 100644\n--- a/net/ipv4/sysctl_net_ipv4.c\n+++ b/net/ipv4/sysctl_net_ipv4.c\n@@ -414,13 +414,6 @@ static struct ctl_table ipv4_table[] = {\n \t\t.mode\t\t= 0644,\n \t\t.proc_handler\t= proc_dointvec_jiffies,\n \t},\n-\t{\n-\t\t.procname\t= \"tcp_fack\",\n-\t\t.data\t\t= &sysctl_tcp_fack,\n-\t\t.maxlen\t\t= sizeof(int),\n-\t\t.mode\t\t= 0644,\n-\t\t.proc_handler\t= proc_dointvec\n-\t},\n \t{\n \t\t.procname\t= \"tcp_max_reordering\",\n \t\t.data\t\t= &sysctl_tcp_max_reordering,\n@@ -1145,6 +1138,13 @@ static struct ctl_table ipv4_net_table[] = {\n \t\t.mode\t\t= 0644,\n \t\t.proc_handler\t= proc_dointvec\n \t},\n+\t{\n+\t\t.procname\t= \"tcp_fack\",\n+\t\t.data\t\t= &init_net.ipv4.sysctl_tcp_fack,\n+\t\t.maxlen\t\t= sizeof(int),\n+\t\t.mode\t\t= 0644,\n+\t\t.proc_handler\t= proc_dointvec\n+\t},\n \t{ }\n };\n \ndiff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c\nindex f6e1c00e300eeedcfe2ff0f4f2a4e1d997cd315d..c7c983f0f817c639e68f6fb1a70916cb604de90b 100644\n--- a/net/ipv4/tcp.c\n+++ b/net/ipv4/tcp.c\n@@ -2517,7 +2517,7 @@ static int tcp_repair_options_est(struct sock *sk,\n \t\t\t\treturn -EINVAL;\n \n \t\t\ttp->rx_opt.sack_ok |= TCP_SACK_SEEN;\n-\t\t\tif (sysctl_tcp_fack)\n+\t\t\tif (sock_net(sk)->ipv4.sysctl_tcp_fack)\n \t\t\t\ttcp_enable_fack(tp);\n \t\t\tbreak;\n \t\tcase TCPOPT_TIMESTAMP:\ndiff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c\nindex 64fde81b0eb70feccffd18a703e2b604e306ea65..c5b94460793f9693719b38978c123209e2b6ec0f 100644\n--- a/net/ipv4/tcp_input.c\n+++ b/net/ipv4/tcp_input.c\n@@ -79,7 +79,6 @@\n #include <linux/unaligned/access_ok.h>\n #include <linux/static_key.h>\n \n-int sysctl_tcp_fack __read_mostly;\n int sysctl_tcp_max_reordering __read_mostly = 300;\n int sysctl_tcp_dsack __read_mostly = 1;\n int sysctl_tcp_app_win __read_mostly = 31;\n@@ -5720,7 +5719,7 @@ static int tcp_rcv_synsent_state_process(struct sock *sk, struct sk_buff *skb,\n \t\t\ttp->tcp_header_len = sizeof(struct tcphdr);\n \t\t}\n \n-\t\tif (tcp_is_sack(tp) && sysctl_tcp_fack)\n+\t\tif (tcp_is_sack(tp) && sock_net(sk)->ipv4.sysctl_tcp_fack)\n \t\t\ttcp_enable_fack(tp);\n \n \t\ttcp_sync_mss(sk, icsk->icsk_pmtu_cookie);\ndiff --git a/net/ipv4/tcp_minisocks.c b/net/ipv4/tcp_minisocks.c\nindex 3674d63170b293778d32abd34aa32043c001aa82..3270ab8416ce8691cbb1c3a25533142fe1029bed 100644\n--- a/net/ipv4/tcp_minisocks.c\n+++ b/net/ipv4/tcp_minisocks.c\n@@ -510,7 +510,7 @@ struct sock *tcp_create_openreq_child(const struct sock *sk,\n \n \t\tnewtp->rx_opt.tstamp_ok = ireq->tstamp_ok;\n \t\tif ((newtp->rx_opt.sack_ok = ireq->sack_ok) != 0) {\n-\t\t\tif (sysctl_tcp_fack)\n+\t\t\tif (sock_net(sk)->ipv4.sysctl_tcp_fack)\n \t\t\t\ttcp_enable_fack(newtp);\n \t\t}\n \t\tnewtp->window_clamp = req->rsk_window_clamp;\n", "prefixes": [ "v2", "net-next", "09/15" ] }