Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/817950/?format=api
{ "id": 817950, "url": "http://patchwork.ozlabs.org/api/patches/817950/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170924172212.10096-6-jiri@resnulli.us/", "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": "<20170924172212.10096-6-jiri@resnulli.us>", "list_archive_url": null, "date": "2017-09-24T17:22:05", "name": "[net-next,v2,05/12] net: ipmr: Add MFC offload indication", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "556172300f3cc9c86de2d20d442028f96ed91ce9", "submitter": { "id": 15321, "url": "http://patchwork.ozlabs.org/api/people/15321/?format=api", "name": "Jiri Pirko", "email": "jiri@resnulli.us" }, "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/20170924172212.10096-6-jiri@resnulli.us/mbox/", "series": [ { "id": 4828, "url": "http://patchwork.ozlabs.org/api/series/4828/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=4828", "date": "2017-09-24T17:22:00", "name": "mlxsw: Add support for offloading IPv4 multicast routes", "version": 2, "mbox": "http://patchwork.ozlabs.org/series/4828/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/817950/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/817950/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=resnulli-us.20150623.gappssmtp.com\n\theader.i=@resnulli-us.20150623.gappssmtp.com\n\theader.b=\"UYrVvlKR\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y0YvY0SJYz9sRm\n\tfor <patchwork-incoming@ozlabs.org>;\n\tMon, 25 Sep 2017 03:23:05 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752796AbdIXRXC (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tSun, 24 Sep 2017 13:23:02 -0400", "from mail-wm0-f67.google.com ([74.125.82.67]:37247 \"EHLO\n\tmail-wm0-f67.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1752743AbdIXRWU (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Sun, 24 Sep 2017 13:22:20 -0400", "by mail-wm0-f67.google.com with SMTP id f4so5304239wmh.4\n\tfor <netdev@vger.kernel.org>; Sun, 24 Sep 2017 10:22:19 -0700 (PDT)", "from localhost (ip-89-177-136-69.net.upcbroadband.cz.\n\t[89.177.136.69]) by smtp.gmail.com with ESMTPSA id\n\tb72sm2989934wmf.30.2017.09.24.10.22.18\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tSun, 24 Sep 2017 10:22:18 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=resnulli-us.20150623.gappssmtp.com; s=20150623;\n\th=from:to:cc:subject:date:message-id:in-reply-to:references;\n\tbh=5nVAyyspD3y9765pD92dHO0KlUpcgq6RoJ8NpFGHD9o=;\n\tb=UYrVvlKRbOa2zbgpb+yLMS2mx8WdOaReiUl72IFPW0/SRQaRb8TjZCphYajPfnZhQP\n\tSaLA9NRp2eFYZqEoNcUaTcbqeMPHI7jvTW7dhbYYxSDGcgf/S3/+kqHV+EMRO3/IpGa/\n\tgpQhV46TCs1pyoET2Q2U4lALXX0VbNpBVRYR/317stB6WorODzbGEuqemPR3D/w+vg5p\n\tokf1+bO24d4/CdpLsGeNaYwOiN8p/BXQeUGa7AcPI5eu+yAFl1z+6vt/GPjlj1r2j/al\n\tzgpcTn5/ibI08+UWek40gQYFCx3WF0nbyJifzVgfU1ZWfMZy9SPM0h1SIHC/YyO4CTDY\n\tqwQA==", "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=5nVAyyspD3y9765pD92dHO0KlUpcgq6RoJ8NpFGHD9o=;\n\tb=GT2b+uWdCUwowXTw+oUGlYQw+gL0f/SbXiXMSwlo+Btu43Vj+IA6GTvULT/KGRV6UC\n\tw73xaPO7V208UjsHlfRYqDHzO79u6Tr87ZCdYmgQ9PvoZ6wsGTRao9PPkeL5JpoNTmrD\n\tvPpCPoByhqQkDv/n3ThnzK6bRQ09jdXqVfANgFaA6gJTOhKdS8OLYt6V7nEvkn1VPbfo\n\tBc2uOEM9UftKAW/BLc66NZbFPblqkoRYwAmw8HNcnX5dJBTaLPoMM3EhYRyqifwWmEPv\n\tg4V0IMjwm9LrGts8hGgaiEvVLJfj1J+yhDXQufqzaHalyXl8JaO71go9fFWVBdWREV+J\n\tcfOw==", "X-Gm-Message-State": "AHPjjUhlU9ncp3Xq8SKDrLqPjvh1VexhCoT77TT46v5JyI0gT/8o6f3w\n\tkFAp00SLV6d9CrHdLSbZTdCk4SEc", "X-Google-Smtp-Source": "AOwi7QDTRyitLMmB0gA3ODhtM+9Q8Zy6aaImUGnuQt5j74DvRo5rjsteunLulXtqMcPiAjRi+cAMAQ==", "X-Received": "by 10.28.132.141 with SMTP id g135mr7941322wmd.37.1506273738650; \n\tSun, 24 Sep 2017 10:22:18 -0700 (PDT)", "From": "Jiri Pirko <jiri@resnulli.us>", "To": "netdev@vger.kernel.org", "Cc": "davem@davemloft.net, yotamg@mellanox.com, idosch@mellanox.com,\n\tmlxsw@mellanox.com, nikolay@cumulusnetworks.com, andrew@lunn.ch", "Subject": "[patch net-next v2 05/12] net: ipmr: Add MFC offload indication", "Date": "Sun, 24 Sep 2017 19:22:05 +0200", "Message-Id": "<20170924172212.10096-6-jiri@resnulli.us>", "X-Mailer": "git-send-email 2.9.5", "In-Reply-To": "<20170924172212.10096-1-jiri@resnulli.us>", "References": "<20170924172212.10096-1-jiri@resnulli.us>", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "From: Yotam Gigi <yotamg@mellanox.com>\n\nAllow drivers, registered to the fib notification chain indicate whether a\nmulticast MFC route is offloaded or not, similarly to unicast routes. The\nindication of whether a route is offloaded is done using the mfc_flags\nfield on an mfc_cache struct, and the information is sent to the userspace\nvia the RTNetlink interface only.\n\nCurrently, MFC routes are either offloaded or not, thus there is no need to\nadd per-VIF offload indication.\n\nSigned-off-by: Yotam Gigi <yotamg@mellanox.com>\nReviewed-by: Ido Schimmel <idosch@mellanox.com>\nSigned-off-by: Jiri Pirko <jiri@mellanox.com>\n---\nv1->v2:\n - Add comment for the MFC_OFFLOAD flag\n---\n include/linux/mroute.h | 2 ++\n net/ipv4/ipmr.c | 3 +++\n 2 files changed, 5 insertions(+)", "diff": "diff --git a/include/linux/mroute.h b/include/linux/mroute.h\nindex 54c5cb8..5566580 100644\n--- a/include/linux/mroute.h\n+++ b/include/linux/mroute.h\n@@ -90,9 +90,11 @@ struct mr_table {\n \n /* mfc_flags:\n * MFC_STATIC - the entry was added statically (not by a routing daemon)\n+ * MFC_OFFLOAD - the entry was offloaded to the hardware\n */\n enum {\n \tMFC_STATIC = BIT(0),\n+\tMFC_OFFLOAD = BIT(1),\n };\n \n struct mfc_cache_cmp_arg {\ndiff --git a/net/ipv4/ipmr.c b/net/ipv4/ipmr.c\nindex ba71bc4..2a795d2 100644\n--- a/net/ipv4/ipmr.c\n+++ b/net/ipv4/ipmr.c\n@@ -2268,6 +2268,9 @@ static int __ipmr_fill_mroute(struct mr_table *mrt, struct sk_buff *skb,\n \t nla_put_u32(skb, RTA_IIF, mrt->vif_table[c->mfc_parent].dev->ifindex) < 0)\n \t\treturn -EMSGSIZE;\n \n+\tif (c->mfc_flags & MFC_OFFLOAD)\n+\t\trtm->rtm_flags |= RTNH_F_OFFLOAD;\n+\n \tif (!(mp_attr = nla_nest_start(skb, RTA_MULTIPATH)))\n \t\treturn -EMSGSIZE;\n \n", "prefixes": [ "net-next", "v2", "05/12" ] }