Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/614588/?format=api
{ "id": 614588, "url": "http://patchwork.ozlabs.org/api/patches/614588/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20160425183114.11331.97539.stgit@ahduyck-xeon-server/", "project": { "id": 7, "url": "http://patchwork.ozlabs.org/api/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": "<20160425183114.11331.97539.stgit@ahduyck-xeon-server>", "list_archive_url": null, "date": "2016-04-25T18:31:14", "name": "[net-next,3/8] net: Fix netdev_fix_features so that TSO_MANGLEID is only available with TSO", "commit_ref": null, "pull_url": null, "state": "deferred", "archived": true, "hash": "16c3bb54385ab7d700243749df05e6dffec49c1d", "submitter": { "id": 67293, "url": "http://patchwork.ozlabs.org/api/people/67293/?format=api", "name": "Alexander Duyck", "email": "aduyck@mirantis.com" }, "delegate": { "id": 34, "url": "http://patchwork.ozlabs.org/api/users/34/?format=api", "username": "davem", "first_name": "David", "last_name": "Miller", "email": "davem@davemloft.net" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20160425183114.11331.97539.stgit@ahduyck-xeon-server/mbox/", "series": [], "comments": "http://patchwork.ozlabs.org/api/patches/614588/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/614588/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<netdev-owner@vger.kernel.org>", "X-Original-To": "patchwork-incoming@ozlabs.org", "Delivered-To": "patchwork-incoming@ozlabs.org", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3qtvtx6crTz9t3n\n\tfor <patchwork-incoming@ozlabs.org>;\n\tTue, 26 Apr 2016 04:31:21 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S933356AbcDYSbS (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tMon, 25 Apr 2016 14:31:18 -0400", "from mail-pf0-f175.google.com ([209.85.192.175]:33311 \"EHLO\n\tmail-pf0-f175.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S933040AbcDYSbQ (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Mon, 25 Apr 2016 14:31:16 -0400", "by mail-pf0-f175.google.com with SMTP id 206so20644275pfu.0\n\tfor <netdev@vger.kernel.org>; Mon, 25 Apr 2016 11:31:16 -0700 (PDT)", "from [192.168.1.143] (static-50-53-29-36.bvtn.or.frontiernet.net.\n\t[50.53.29.36]) by smtp.gmail.com with ESMTPSA id\n\tlz5sm31778229pab.34.2016.04.25.11.31.14\n\t(version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\n\tMon, 25 Apr 2016 11:31:14 -0700 (PDT)" ], "Authentication-Results": "ozlabs.org; dkim=pass (1024-bit key;\n\tunprotected) header.d=mirantis.com header.i=@mirantis.com\n\theader.b=cZEsqpWS; dkim-atps=neutral", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=mirantis.com; s=google;\n\th=subject:from:to:date:message-id:in-reply-to:references:user-agent\n\t:mime-version:content-transfer-encoding;\n\tbh=JV5jWvAwkYOjmlug4YAk2Z1fvBUiXuXLBkiEhB0CeC8=;\n\tb=cZEsqpWSgOg4pF/pOpiEDg0F1orZP7PI8/ss1QUxZRLXhoP/v5Zkw83+jXmsnMzMHn\n\ttMKPjlORBnf/IuYPVLBDafQwiOes3mdbUA1AZjhNxHNCovju50F8sT2tk+rOfi3e7U/1\n\tINehPklfYMPPbnCBLOXIa0wz3OPhbHudsW2oU=", "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20130820;\n\th=x-gm-message-state:subject:from:to:date:message-id:in-reply-to\n\t:references:user-agent:mime-version:content-transfer-encoding;\n\tbh=JV5jWvAwkYOjmlug4YAk2Z1fvBUiXuXLBkiEhB0CeC8=;\n\tb=Exc70uZVjF6Z9E7k+hM5c4JWGNYXoDDHdWy4VR+NfZ27ZTqSF471gx9C39C3cr9zY6\n\tr/DGk8Pjr11UxwsiwwN1+oNeayhQmgebJVe0fVslfU4l3eQNvNCkhdcAqGN3+M9T0/m7\n\tMbVQHTqO0xSxkZbXSP2BgmUC2Psb2o/gA5Z4gZu3PDn2CPsMiXF6cJmQaMXKUjsITSzr\n\tYwcAD/AWsUAcjTNnUHu1m4wOOk8WJo6B4ItgeNJeerI1LgBMX20KBJXduM496NcgB4tp\n\tFlmzxbERC2tLMgBY5xp/O4uEB2Mf0qMYQ6Asy2oOdeIzPbq5HxozI9g8nx5V27ew+91E\n\tnihg==", "X-Gm-Message-State": "AOPr4FUrmeuIhOzw87kDlupnwlEP+c+HpMHXgIpbhbotfg17FYyrxFDm5vG5/y7pjh7dZUUg", "X-Received": "by 10.98.93.138 with SMTP id n10mr50821992pfj.43.1461609075502; \n\tMon, 25 Apr 2016 11:31:15 -0700 (PDT)", "Subject": "[net-next PATCH 3/8] net: Fix netdev_fix_features so that\n\tTSO_MANGLEID is only available with TSO", "From": "Alexander Duyck <aduyck@mirantis.com>", "To": "talal@mellanox.com, netdev@vger.kernel.org, davem@davemloft.net,\n\tgalp@mellanox.com, ogerlitz@mellanox.com, eranbe@mellanox.com", "Date": "Mon, 25 Apr 2016 11:31:14 -0700", "Message-ID": "<20160425183114.11331.97539.stgit@ahduyck-xeon-server>", "In-Reply-To": "<20160425182442.11331.88349.stgit@ahduyck-xeon-server>", "References": "<20160425182442.11331.88349.stgit@ahduyck-xeon-server>", "User-Agent": "StGit/0.17.1-dirty", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=\"utf-8\"", "Content-Transfer-Encoding": "7bit", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "This change makes it so that we will strip the TSO_MANGLEID bit if TSO is\nnot present. This way we will also handle ECN correctly of TSO is not\npresent.\n\nSigned-off-by: Alexander Duyck <aduyck@mirantis.com>\n---\n net/core/dev.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/net/core/dev.c b/net/core/dev.c\nindex d6d9f286c4e1..6a5ef49ed1ab 100644\n--- a/net/core/dev.c\n+++ b/net/core/dev.c\n@@ -6720,6 +6720,10 @@ static netdev_features_t netdev_fix_features(struct net_device *dev,\n \t\tfeatures &= ~NETIF_F_TSO6;\n \t}\n \n+\t/* TSO with IPv4 ID mangling requires IPv4 TSO be enabled */\n+\tif ((features & NETIF_F_TSO_MANGLEID) && !(features & NETIF_F_TSO))\n+\t\tfeatures &= ~NETIF_F_TSO_MANGLEID;\n+\n \t/* TSO ECN requires that TSO is present as well. */\n \tif ((features & NETIF_F_ALL_TSO) == NETIF_F_TSO_ECN)\n \t\tfeatures &= ~NETIF_F_TSO_ECN;\n", "prefixes": [ "net-next", "3/8" ] }