get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 826670,
    "url": "http://patchwork.ozlabs.org/api/patches/826670/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171017010128.22141-4-vinicius.gomes@intel.com/",
    "project": {
        "id": 46,
        "url": "http://patchwork.ozlabs.org/api/projects/46/?format=api",
        "name": "Intel Wired Ethernet development",
        "link_name": "intel-wired-lan",
        "list_id": "intel-wired-lan.osuosl.org",
        "list_email": "intel-wired-lan@osuosl.org",
        "web_url": "",
        "scm_url": "",
        "webscm_url": "",
        "list_archive_url": "",
        "list_archive_url_format": "",
        "commit_url_format": ""
    },
    "msgid": "<20171017010128.22141-4-vinicius.gomes@intel.com>",
    "list_archive_url": null,
    "date": "2017-10-17T01:01:25",
    "name": "[next-queue,v9,3/6] net/sched: Add select_queue() class_ops for mqprio",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "48106645baac8cca3fce7d4871f4c923cfe8a206",
    "submitter": {
        "id": 72272,
        "url": "http://patchwork.ozlabs.org/api/people/72272/?format=api",
        "name": "Vinicius Costa Gomes",
        "email": "vinicius.gomes@intel.com"
    },
    "delegate": {
        "id": 68,
        "url": "http://patchwork.ozlabs.org/api/users/68/?format=api",
        "username": "jtkirshe",
        "first_name": "Jeff",
        "last_name": "Kirsher",
        "email": "jeffrey.t.kirsher@intel.com"
    },
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171017010128.22141-4-vinicius.gomes@intel.com/mbox/",
    "series": [
        {
            "id": 8543,
            "url": "http://patchwork.ozlabs.org/api/series/8543/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=8543",
            "date": "2017-10-17T01:01:23",
            "name": "TSN: Add qdisc based config interface for CBS",
            "version": 9,
            "mbox": "http://patchwork.ozlabs.org/series/8543/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/826670/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/826670/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@osuosl.org>",
        "X-Original-To": [
            "incoming@patchwork.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Delivered-To": [
            "patchwork-incoming@bilbo.ozlabs.org",
            "intel-wired-lan@lists.osuosl.org"
        ],
        "Authentication-Results": "ozlabs.org;\n\tspf=pass (mailfrom) smtp.mailfrom=osuosl.org\n\t(client-ip=140.211.166.137; helo=fraxinus.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137])\n\t(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))\n\t(No client certificate requested)\n\tby ozlabs.org (Postfix) with ESMTPS id 3yGH2l28qrz9sP1\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue, 17 Oct 2017 12:01:51 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 71E2786529;\n\tTue, 17 Oct 2017 01:01:49 +0000 (UTC)",
            "from fraxinus.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id 00O338Pf2TmM; Tue, 17 Oct 2017 01:01:47 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id E7038864B7;\n\tTue, 17 Oct 2017 01:01:47 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 48F771CEF32\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Oct 2017 01:01:45 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 3201286D1D\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Oct 2017 01:01:45 +0000 (UTC)",
            "from hemlock.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id GL9oI28Bfbpe for <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Oct 2017 01:01:44 +0000 (UTC)",
            "from mga03.intel.com (mga03.intel.com [134.134.136.65])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id 15AE086DA6\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Oct 2017 01:01:44 +0000 (UTC)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n\tby orsmga103.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t16 Oct 2017 18:01:43 -0700",
            "from ellie.jf.intel.com (HELO localhost.localdomain)\n\t([10.24.13.70])\n\tby fmsmga002.fm.intel.com with ESMTP; 16 Oct 2017 18:01:43 -0700"
        ],
        "X-Virus-Scanned": [
            "amavisd-new at osuosl.org",
            "amavisd-new at osuosl.org"
        ],
        "X-Greylist": "domain auto-whitelisted by SQLgrey-1.7.6",
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.43,389,1503385200\"; d=\"scan'208\";\n\ta=\"1231539036\"",
        "From": "Vinicius Costa Gomes <vinicius.gomes@intel.com>",
        "To": "netdev@vger.kernel.org,\n\tintel-wired-lan@lists.osuosl.org",
        "Date": "Mon, 16 Oct 2017 18:01:25 -0700",
        "Message-Id": "<20171017010128.22141-4-vinicius.gomes@intel.com>",
        "X-Mailer": "git-send-email 2.14.2",
        "In-Reply-To": "<20171017010128.22141-1-vinicius.gomes@intel.com>",
        "References": "<20171017010128.22141-1-vinicius.gomes@intel.com>",
        "Cc": "rodney.cummings@ni.com, andre.guedes@intel.com, jiri@resnulli.us,\n\tivan.briano@intel.com, richardcochran@gmail.com, henrik@austad.us,\n\tjhs@mojatatu.com, levipearson@gmail.com, boon.leong.ong@intel.com,\n\txiyou.wangcong@gmail.com,\n\tJesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>",
        "Subject": "[Intel-wired-lan] [next-queue PATCH v9 3/6] net/sched: Add\n\tselect_queue() class_ops for mqprio",
        "X-BeenThere": "intel-wired-lan@osuosl.org",
        "X-Mailman-Version": "2.1.18-1",
        "Precedence": "list",
        "List-Id": "Intel Wired Ethernet Linux Kernel Driver Development\n\t<intel-wired-lan.osuosl.org>",
        "List-Unsubscribe": "<https://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@osuosl.org?subject=help>",
        "List-Subscribe": "<https://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@osuosl.org?subject=subscribe>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"us-ascii\"",
        "Content-Transfer-Encoding": "7bit",
        "Errors-To": "intel-wired-lan-bounces@osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@osuosl.org>"
    },
    "content": "From: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>\n\nWhen replacing a child qdisc from mqprio, tc_modify_qdisc() must fetch\nthe netdev_queue pointer that the current child qdisc is associated\nwith before creating the new qdisc.\n\nCurrently, when using mqprio as root qdisc, the kernel will end up\ngetting the queue #0 pointer from the mqprio (root qdisc), which leaves\nany new child qdisc with a possibly wrong netdev_queue pointer.\n\nImplementing the Qdisc_class_ops select_queue() on mqprio fixes this\nissue and avoid an inconsistent state when child qdiscs are replaced.\n\nSigned-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>\n---\n net/sched/sch_mqprio.c | 7 +++++++\n 1 file changed, 7 insertions(+)",
    "diff": "diff --git a/net/sched/sch_mqprio.c b/net/sched/sch_mqprio.c\nindex 6bcdfe6e7b63..8c042ae323e3 100644\n--- a/net/sched/sch_mqprio.c\n+++ b/net/sched/sch_mqprio.c\n@@ -396,6 +396,12 @@ static void mqprio_walk(struct Qdisc *sch, struct qdisc_walker *arg)\n \t}\n }\n \n+static struct netdev_queue *mqprio_select_queue(struct Qdisc *sch,\n+\t\t\t\t\t\tstruct tcmsg *tcm)\n+{\n+\treturn mqprio_queue_get(sch, TC_H_MIN(tcm->tcm_parent));\n+}\n+\n static const struct Qdisc_class_ops mqprio_class_ops = {\n \t.graft\t\t= mqprio_graft,\n \t.leaf\t\t= mqprio_leaf,\n@@ -403,6 +409,7 @@ static const struct Qdisc_class_ops mqprio_class_ops = {\n \t.walk\t\t= mqprio_walk,\n \t.dump\t\t= mqprio_dump_class,\n \t.dump_stats\t= mqprio_dump_class_stats,\n+\t.select_queue\t= mqprio_select_queue,\n };\n \n static struct Qdisc_ops mqprio_qdisc_ops __read_mostly = {\n",
    "prefixes": [
        "next-queue",
        "v9",
        "3/6"
    ]
}