get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/818948/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 818948,
    "url": "http://patchwork.ozlabs.org/api/patches/818948/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/20170927062322.5476-12-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": "<20170927062322.5476-12-jiri@resnulli.us>",
    "list_archive_url": null,
    "date": "2017-09-27T06:23:21",
    "name": "[net-next,v3,11/12] mlxsw: spectrum: Notify multicast router on RIF MTU changes",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "da8d12056eaa47e0f8b1cd68f18706db2fe2bc87",
    "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/20170927062322.5476-12-jiri@resnulli.us/mbox/",
    "series": [
        {
            "id": 5290,
            "url": "http://patchwork.ozlabs.org/api/series/5290/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=5290",
            "date": "2017-09-27T06:23:12",
            "name": "mlxsw: Add support for offloading IPv4 multicast routes",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/5290/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/818948/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/818948/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=\"bil7R9GH\"; dkim-atps=neutral"
        ],
        "Received": [
            "from vger.kernel.org (vger.kernel.org [209.132.180.67])\n\tby ozlabs.org (Postfix) with ESMTP id 3y277l1w8jz9sBW\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 27 Sep 2017 16:24:03 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1751965AbdI0GYA (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 27 Sep 2017 02:24:00 -0400",
            "from mail-wm0-f68.google.com ([74.125.82.68]:34449 \"EHLO\n\tmail-wm0-f68.google.com\" rhost-flags-OK-OK-OK-OK) by vger.kernel.org\n\twith ESMTP id S1751059AbdI0GXf (ORCPT\n\t<rfc822;netdev@vger.kernel.org>); Wed, 27 Sep 2017 02:23:35 -0400",
            "by mail-wm0-f68.google.com with SMTP id i131so10521682wma.1\n\tfor <netdev@vger.kernel.org>; Tue, 26 Sep 2017 23:23:35 -0700 (PDT)",
            "from localhost (jirka.pirko.cz. [84.16.102.26])\n\tby smtp.gmail.com with ESMTPSA id\n\tk52sm18178716wrf.62.2017.09.26.23.23.33\n\t(version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256);\n\tTue, 26 Sep 2017 23:23:34 -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=nV8FNEJTCNnVT+TNK+Ntpj+1pv2mwCnrwMNziBRPd7Y=;\n\tb=bil7R9GHq8StfFEPIrbgTxFyANl8Gtdwo+4Yy/2i3SDKemJnAN7tv563pIcujdTSF4\n\tG+gibq4eJ5VpM57aopFGUQGGpTlplWPLikmAxGa8zmqXby0BG3gTaRYI193zIMpwvRBr\n\tokWgLrFu3wVJwYfGvy2z3UDQ79NzQZynbWncJhlPRSrmtgXCilRdaqMwFXff8MSKK9Fi\n\tJGALfsGgwRHOgkc6XsbGRkE9J70bjKGGprwT3D2tvhs7RJl2pPYlgBIUisZErN0qvYXn\n\tc5tHkt0/iQ3IKI4tBJEatvfPbP4vurfqaLpwLCcFDxfbdFAVHOZRs6X4S0h4Anjr5L3W\n\tDdrQ==",
        "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=nV8FNEJTCNnVT+TNK+Ntpj+1pv2mwCnrwMNziBRPd7Y=;\n\tb=a1u3VWaJu4IyJt32g6UQ+LAOoTtq5KcusWxWOyuxildiz7wYj5425hbCD4fsxJkgOA\n\tguXhToANhAiAAUdDlFZy9Pe8RnTsMsf/2lQ/RvSEiVrvrm2WRkYuKbU5OMtNCfF1Yom2\n\tPdRIsXyPuWXpr+DeCiRFen5I0MbVHInDs/g26jgkbA9raoK6BMH9cX60/wOt2p87vgQU\n\t+W0L7n2JxlwpacACq8c2NQOuK+CQruGjOcYTC3z8DoXAF089Bipeu4o5v5n6Psa2NKd1\n\tEO7VRzTePDg9+1iA+Q67GyTLrl+yV7yvXFxLj8Tz2jw6a9EYSYy1QiKu4t4C6asPn1KB\n\tjIZA==",
        "X-Gm-Message-State": "AHPjjUhqgAkhtbeeF1izfk8nNHmtPncYMGFCPqRHoqQsHcDl8IkMd60Q\n\tz7q8ocEmcNh/rbhCAWaSp9NoacdW",
        "X-Google-Smtp-Source": "AOwi7QDnyDDsNZz1OnM6yxqcmqwiJdvVlYgfMi2VAL9WPhXoGgr8hKfb8MR5EHTtn2HjShBqsVTtAg==",
        "X-Received": "by 10.28.45.9 with SMTP id t9mr532292wmt.94.1506493414336;\n\tTue, 26 Sep 2017 23:23:34 -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,\n\tlinyunsheng@huawei.com",
        "Subject": "[patch net-next v3 11/12] mlxsw: spectrum: Notify multicast router\n\ton RIF MTU changes",
        "Date": "Wed, 27 Sep 2017 08:23:21 +0200",
        "Message-Id": "<20170927062322.5476-12-jiri@resnulli.us>",
        "X-Mailer": "git-send-email 2.9.5",
        "In-Reply-To": "<20170927062322.5476-1-jiri@resnulli.us>",
        "References": "<20170927062322.5476-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\nDue to the fact that multicast routes hold the minimum MTU of all the\negress RIFs and trap packets that don't meet it, notify the mulitcast\nrouter code on RIF MTU changes.\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---\n drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c | 11 +++++++++++\n 1 file changed, 11 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\nindex 7758442..dbd9c19 100644\n--- a/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n+++ b/drivers/net/ethernet/mellanox/mlxsw/spectrum_router.c\n@@ -5773,6 +5773,17 @@ int mlxsw_sp_netdevice_router_port_event(struct net_device *dev)\n \tif (err)\n \t\tgoto err_rif_fdb_op;\n \n+\tif (rif->mtu != dev->mtu) {\n+\t\tstruct mlxsw_sp_vr *vr;\n+\n+\t\t/* The RIF is relevant only to its mr_table instance, as unlike\n+\t\t * unicast routing, in multicast routing a RIF cannot be shared\n+\t\t * between several multicast routing tables.\n+\t\t */\n+\t\tvr = &mlxsw_sp->router->vrs[rif->vr_id];\n+\t\tmlxsw_sp_mr_rif_mtu_update(vr->mr4_table, rif, dev->mtu);\n+\t}\n+\n \tether_addr_copy(rif->addr, dev->dev_addr);\n \trif->mtu = dev->mtu;\n \n",
    "prefixes": [
        "net-next",
        "v3",
        "11/12"
    ]
}