Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/808700/?format=api
{ "id": 808700, "url": "http://patchwork.ozlabs.org/api/patches/808700/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170901140809.13230-3-phil@nwl.cc/", "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": "<20170901140809.13230-3-phil@nwl.cc>", "list_archive_url": null, "date": "2017-09-01T14:08:09", "name": "[iproute,2/2] link_gre6: Print the tunnel's tclass setting", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "015888a966f23f99781c656adc4b845400fde6c1", "submitter": { "id": 4285, "url": "http://patchwork.ozlabs.org/api/people/4285/?format=api", "name": "Phil Sutter", "email": "phil@nwl.cc" }, "delegate": { "id": 389, "url": "http://patchwork.ozlabs.org/api/users/389/?format=api", "username": "shemminger", "first_name": "stephen", "last_name": "hemminger", "email": "shemminger@vyatta.com" }, "mbox": "http://patchwork.ozlabs.org/project/netdev/patch/20170901140809.13230-3-phil@nwl.cc/mbox/", "series": [ { "id": 1037, "url": "http://patchwork.ozlabs.org/api/series/1037/?format=api", "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=1037", "date": "2017-09-01T14:08:09", "name": "Fix and enhance link_gre6", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/1037/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/808700/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/808700/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>)", "Received": [ "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3xkLgY1bQKz9s7F\n\tfor <patchwork-incoming@ozlabs.org>;\n\tSat, 2 Sep 2017 00:08:25 +1000 (AEST)", "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752116AbdIAOIX (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tFri, 1 Sep 2017 10:08:23 -0400", "from orbyte.nwl.cc ([151.80.46.58]:46571 \"EHLO mail.nwl.cc\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1752031AbdIAOIW (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tFri, 1 Sep 2017 10:08:22 -0400", "from mail.nwl.cc (orbyte.nwl.cc [127.0.0.1])\n\tby mail.nwl.cc (Postfix) with ESMTP id ECF1F65A5E;\n\tFri, 1 Sep 2017 16:08:20 +0200 (CEST)", "from xsao (localhost [IPv6:::1])\n\tby mail.nwl.cc (Postfix) with ESMTP id CAE12644CF;\n\tFri, 1 Sep 2017 16:08:20 +0200 (CEST)" ], "From": "Phil Sutter <phil@nwl.cc>", "To": "Stephen Hemminger <stephen@networkplumber.org>", "Cc": "netdev@vger.kernel.org", "Subject": "[iproute PATCH 2/2] link_gre6: Print the tunnel's tclass setting", "Date": "Fri, 1 Sep 2017 16:08:09 +0200", "Message-Id": "<20170901140809.13230-3-phil@nwl.cc>", "X-Mailer": "git-send-email 2.13.1", "In-Reply-To": "<20170901140809.13230-1-phil@nwl.cc>", "References": "<20170901140809.13230-1-phil@nwl.cc>", "X-Virus-Scanned": "ClamAV using ClamSMTP", "Sender": "netdev-owner@vger.kernel.org", "Precedence": "bulk", "List-ID": "<netdev.vger.kernel.org>", "X-Mailing-List": "netdev@vger.kernel.org" }, "content": "Print the value analogous to flowlabel. While being at it, also break\nthe overlong lines to not exceed 80 characters boundary.\n\nSigned-off-by: Phil Sutter <phil@nwl.cc>\n---\n ip/link_gre6.c | 9 ++++++++-\n 1 file changed, 8 insertions(+), 1 deletion(-)", "diff": "diff --git a/ip/link_gre6.c b/ip/link_gre6.c\nindex 447ac5d78ab7b..78b5215c65037 100644\n--- a/ip/link_gre6.c\n+++ b/ip/link_gre6.c\n@@ -462,7 +462,14 @@ static void gre_print_opt(struct link_util *lu, FILE *f, struct rtattr *tb[])\n \tif (flags & IP6_TNL_F_USE_ORIG_FLOWLABEL)\n \t\tfprintf(f, \"flowlabel inherit \");\n \telse\n-\t\tfprintf(f, \"flowlabel 0x%05x \", ntohl(flowinfo & IP6_FLOWINFO_FLOWLABEL));\n+\t\tfprintf(f, \"flowlabel 0x%05x \",\n+\t\t\tntohl(flowinfo & IP6_FLOWINFO_FLOWLABEL));\n+\n+\tif (flags & IP6_TNL_F_USE_ORIG_TCLASS)\n+\t\tfprintf(f, \"tclass inherit \");\n+\telse\n+\t\tfprintf(f, \"tclass 0x%02x \",\n+\t\t\tntohl(flowinfo & IP6_FLOWINFO_TCLASS) >> 20);\n \n \tif (flags & IP6_TNL_F_RCV_DSCP_COPY)\n \t\tfprintf(f, \"dscp inherit \");\n", "prefixes": [ "iproute", "2/2" ] }