Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/807613/?format=api
{ "id": 807613, "url": "http://patchwork.ozlabs.org/api/patches/807613/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170830120306.6128-2-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": "<20170830120306.6128-2-jiri@resnulli.us>", "list_archive_url": null, "date": "2017-08-30T12:02:59", "name": "[net-next,1/8] devlink: Add IPv6 header for dpipe", "commit_ref": null, "pull_url": null, "state": "changes-requested", "archived": true, "hash": "678f38d36682a2474aa0050c28724ebeb73c1e4d", "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/20170830120306.6128-2-jiri@resnulli.us/mbox/", "series": [ { "id": 604, "url": "http://patchwork.ozlabs.org/api/series/604/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=604", "date": "2017-08-30T12:02:58", "name": "mlxsw: Add IPv6 host dpipe table", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/604/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/807613/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/807613/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=\"AwyCShJH\"; dkim-atps=neutral" ], "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xj4043mznz9t1t\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 30 Aug 2017 22:03:16 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751399AbdH3MDN (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 30 Aug 2017 08:03:13 -0400", "from mail-wm0-f67.google.com ([74.125.82.67]:33200 \"EHLO\n\tmail-wm0-f67.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751375AbdH3MDL (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 30 Aug 2017 08:03:11 -0400", "by mail-wm0-f67.google.com with SMTP id m85so1057931wma.0\n\tfor <netdev@vger.kernel.org>; Wed, 30 Aug 2017 05:03:11 -0700 (PDT)", "from localhost (ip-89-177-136-28.net.upcbroadband.cz.\n\t[89.177.136.28]) by smtp.gmail.com with ESMTPSA id\n\tv9sm4489132wra.85.2017.08.30.05.03.09\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tWed, 30 Aug 2017 05:03:09 -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=mkuzHJgolgt8UGw2mgeN+u9RnYOrJAb+CO6PHCsWQhQ=;\n\tb=AwyCShJHmzAF4PaUXAT5oKNoqGSRNAy9BOnZ69ux6/+5C6IxPJ8wNr7/N/rwjdkvO0\n\t8e7wQdnm7gNStGX7QVY/AdBkkQWFlxYGatva2W87Wd9DRSLfHCyW6IjOBi7Te6SewD5W\n\tYRWX2t6QM5JK7BAVuN4kEugphuJZ/q84PMK60U3UbPMJfpjlbo2/lE44HbZjQKE5QbOR\n\tGcXTz7NHwFiI9OT7twvETmUoM7DOpvXFas5GOzeVX58dn+mjJko9y9uC9mB1xbl2sZqi\n\t7MiA0/c14yf8etN3VACVIUDPkxFcCRvXnyZFUg6oZevW+5onHL/CaUgVWOsldEDV/fTb\n\tQLnA==", "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=mkuzHJgolgt8UGw2mgeN+u9RnYOrJAb+CO6PHCsWQhQ=;\n\tb=XP2iH5nn41RBzhS247DnCF+50RTDGdxPe3mr3/tdngmR1/nXnWhvJtglD7AFzU45gS\n\tggdbRx6zsrss5t8vcxSJ0QEuthoFM8JR7NxUoATHhoQPWb/rKmfk1jM/+Me55wE5LOsy\n\tS3L+74SZKpqjZkrBVlm0e7W/9CWXe//ScYXCYLnBSGJgFgDDuWcQZcLkNNgqVdczxRDG\n\tLqKN7x6jjjItiUlvv6E8RtPamgufzU6IN6BJFkCHfVLXKypBSwWIyfVXGm6ZzA5j8xbR\n\tZ4TwQxvlGLBeVA8HFbTqWPBv1hlvYJOMtZNRT2Aj6h9Qct1M6q8JYSGyLO0TaF1dnZr0\n\thJSg==", "X-Gm-Message-State": "AHYfb5jk9ujcJcRURNqeXbxnV2/KwFucpIdoOLOTQgXnhScceI3S7hoL\n\titV79XVr53ICoBloyyI=", "X-Received": "by 10.28.236.69 with SMTP id k66mr1475618wmh.163.1504094590101; \n\tWed, 30 Aug 2017 05:03:10 -0700 (PDT)", "From": "Jiri Pirko <jiri@resnulli.us>", "To": "netdev@vger.kernel.org", "Cc": "davem@davemloft.net, arkadis@mellanox.com, idosch@mellanox.com,\n\tmlxsw@mellanox.com", "Subject": "[patch net-next 1/8] devlink: Add IPv6 header for dpipe", "Date": "Wed, 30 Aug 2017 14:02:59 +0200", "Message-Id": "<20170830120306.6128-2-jiri@resnulli.us>", "X-Mailer": "git-send-email 2.9.3", "In-Reply-To": "<20170830120306.6128-1-jiri@resnulli.us>", "References": "<20170830120306.6128-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: Arkadi Sharshevsky <arkadis@mellanox.com>\n\nThis will be used by the IPv6 host table which will be introduced in the\nfollowing patches. The fields in the header are added per-use. This header\nis global and can be reused by many drivers.\n\nSigned-off-by: Arkadi Sharshevsky <arkadis@mellanox.com>\nSigned-off-by: Jiri Pirko <jiri@mellanox.com>\n---\n include/net/devlink.h | 1 +\n include/uapi/linux/devlink.h | 5 +++++\n net/core/devlink.c | 17 +++++++++++++++++\n 3 files changed, 23 insertions(+)", "diff": "diff --git a/include/net/devlink.h b/include/net/devlink.h\nindex aaf7178..b9654e1 100644\n--- a/include/net/devlink.h\n+++ b/include/net/devlink.h\n@@ -330,6 +330,7 @@ int devlink_dpipe_match_put(struct sk_buff *skb,\n \t\t\t struct devlink_dpipe_match *match);\n extern struct devlink_dpipe_header devlink_dpipe_header_ethernet;\n extern struct devlink_dpipe_header devlink_dpipe_header_ipv4;\n+extern struct devlink_dpipe_header devlink_dpipe_header_ipv6;\n \n #else\n \ndiff --git a/include/uapi/linux/devlink.h b/include/uapi/linux/devlink.h\nindex 6c17254..0cbca96 100644\n--- a/include/uapi/linux/devlink.h\n+++ b/include/uapi/linux/devlink.h\n@@ -234,9 +234,14 @@ enum devlink_dpipe_field_ipv4_id {\n \tDEVLINK_DPIPE_FIELD_IPV4_DST_IP,\n };\n \n+enum devlink_dpipe_field_ipv6_id {\n+\tDEVLINK_DPIPE_FIELD_IPV6_DST_IP,\n+};\n+\n enum devlink_dpipe_header_id {\n \tDEVLINK_DPIPE_HEADER_ETHERNET,\n \tDEVLINK_DPIPE_HEADER_IPV4,\n+\tDEVLINK_DPIPE_HEADER_IPV6,\n };\n \n #endif /* _UAPI_LINUX_DEVLINK_H_ */\ndiff --git a/net/core/devlink.c b/net/core/devlink.c\nindex 194708a..47931a2 100644\n--- a/net/core/devlink.c\n+++ b/net/core/devlink.c\n@@ -63,6 +63,23 @@ struct devlink_dpipe_header devlink_dpipe_header_ipv4 = {\n };\n EXPORT_SYMBOL(devlink_dpipe_header_ipv4);\n \n+static struct devlink_dpipe_field devlink_dpipe_fields_ipv6[] = {\n+\t{\n+\t\t.name = \"destination ip\",\n+\t\t.id = DEVLINK_DPIPE_FIELD_IPV6_DST_IP,\n+\t\t.bitwidth = 128,\n+\t},\n+};\n+\n+struct devlink_dpipe_header devlink_dpipe_header_ipv6 = {\n+\t.name = \"ipv6\",\n+\t.id = DEVLINK_DPIPE_HEADER_IPV6,\n+\t.fields = devlink_dpipe_fields_ipv6,\n+\t.fields_count = ARRAY_SIZE(devlink_dpipe_fields_ipv6),\n+\t.global = true,\n+};\n+EXPORT_SYMBOL(devlink_dpipe_header_ipv6);\n+\n EXPORT_TRACEPOINT_SYMBOL_GPL(devlink_hwmsg);\n \n static LIST_HEAD(devlink_list);\n", "prefixes": [ "net-next", "1/8" ] }