get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 826671,
    "url": "http://patchwork.ozlabs.org/api/patches/826671/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/20171017010128.22141-3-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-3-vinicius.gomes@intel.com>",
    "list_archive_url": null,
    "date": "2017-10-17T01:01:24",
    "name": "[next-queue,v9,2/6] net/sched: Change behavior of mq select_queue()",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "a83fa3bf537f583f636388e0f82cbd5fd28a0f5c",
    "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-3-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/826671/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/826671/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.133; helo=hemlock.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\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 3yGH2l6c0Pz9sPk\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 hemlock.osuosl.org (Postfix) with ESMTP id 2C59786DA6;\n\tTue, 17 Oct 2017 01:01:50 +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 V2QSYHXh5nbT; Tue, 17 Oct 2017 01:01:48 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 4620786D1D;\n\tTue, 17 Oct 2017 01:01:48 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 985571CEF32\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 903B986DA6\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 W7dweVebHLs3 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 E535886D9A\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tTue, 17 Oct 2017 01:01:43 +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:42 -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=\"1231539033\"",
        "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:24 -0700",
        "Message-Id": "<20171017010128.22141-3-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 2/6] net/sched: Change\n\tbehavior of mq select_queue()",
        "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\nCurrently, the class_ops select_queue() implementation on sch_mq\nreturns a pointer to netdev_queue #0 when it receives and invalid\nqdisc id. That can be misleading since all of mq's inner qdiscs are\nattached to a valid netdev_queue.\n\nHere we fix that by returning NULL when a qdisc id is invalid. This is\naligned with how select_queue() is implemented for sch_mqprio in the\nnext patch on this series, keeping a consistent behavior between these\ntwo qdiscs.\n\nSigned-off-by: Jesus Sanchez-Palencia <jesus.sanchez-palencia@intel.com>\n---\n net/sched/sch_mq.c | 10 +---------\n 1 file changed, 1 insertion(+), 9 deletions(-)",
    "diff": "diff --git a/net/sched/sch_mq.c b/net/sched/sch_mq.c\nindex f3a3e507422b..213b586a06a0 100644\n--- a/net/sched/sch_mq.c\n+++ b/net/sched/sch_mq.c\n@@ -130,15 +130,7 @@ static struct netdev_queue *mq_queue_get(struct Qdisc *sch, unsigned long cl)\n static struct netdev_queue *mq_select_queue(struct Qdisc *sch,\n \t\t\t\t\t    struct tcmsg *tcm)\n {\n-\tunsigned int ntx = TC_H_MIN(tcm->tcm_parent);\n-\tstruct netdev_queue *dev_queue = mq_queue_get(sch, ntx);\n-\n-\tif (!dev_queue) {\n-\t\tstruct net_device *dev = qdisc_dev(sch);\n-\n-\t\treturn netdev_get_tx_queue(dev, 0);\n-\t}\n-\treturn dev_queue;\n+\treturn mq_queue_get(sch, TC_H_MIN(tcm->tcm_parent));\n }\n \n static int mq_graft(struct Qdisc *sch, unsigned long cl, struct Qdisc *new,\n",
    "prefixes": [
        "next-queue",
        "v9",
        "2/6"
    ]
}