get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 824135,
    "url": "http://patchwork.ozlabs.org/api/patches/824135/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/150768146296.5320.684345674569171719.stgit@anamdev.jf.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": "<150768146296.5320.684345674569171719.stgit@anamdev.jf.intel.com>",
    "list_archive_url": null,
    "date": "2017-10-11T00:24:23",
    "name": "[jkirsher/next-queue,v4,2/6] i40e: Map TCs with the VSI seids",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": false,
    "hash": "e36cad701fee2fd9bd9da4bb2ea46fab8f90927b",
    "submitter": {
        "id": 68504,
        "url": "http://patchwork.ozlabs.org/api/people/68504/?format=api",
        "name": "Nambiar, Amritha",
        "email": "amritha.nambiar@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/150768146296.5320.684345674569171719.stgit@anamdev.jf.intel.com/mbox/",
    "series": [
        {
            "id": 7487,
            "url": "http://patchwork.ozlabs.org/api/series/7487/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=7487",
            "date": "2017-10-11T00:24:12",
            "name": "tc-flower based cloud filters in i40e",
            "version": 4,
            "mbox": "http://patchwork.ozlabs.org/series/7487/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/824135/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/824135/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 3yBZX23LMnz9t5Q\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 11 Oct 2017 11:25:54 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id A8D5688B67;\n\tWed, 11 Oct 2017 00:25:52 +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 TXyNK0Ggrm57; Wed, 11 Oct 2017 00:25:51 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 4ACAF88B72;\n\tWed, 11 Oct 2017 00:25:51 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 32D021C0FDB\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Oct 2017 00:25:50 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 2CFAD88FEC\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Oct 2017 00:25:50 +0000 (UTC)",
            "from whitealder.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id xeJz7Nc38JmI for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Oct 2017 00:25:49 +0000 (UTC)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id E607588FE3\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 11 Oct 2017 00:25:48 +0000 (UTC)",
            "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby fmsmga101.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t10 Oct 2017 17:25:48 -0700",
            "from anamdev.jf.intel.com ([10.166.29.110])\n\tby orsmga004.jf.intel.com with ESMTP; 10 Oct 2017 17:25:48 -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,359,1503385200\"; d=\"scan'208\";a=\"137247070\"",
        "From": "Amritha Nambiar <amritha.nambiar@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com",
        "Date": "Tue, 10 Oct 2017 17:24:23 -0700",
        "Message-ID": "<150768146296.5320.684345674569171719.stgit@anamdev.jf.intel.com>",
        "In-Reply-To": "<150768099999.5320.1633617713417675266.stgit@anamdev.jf.intel.com>",
        "References": "<150768099999.5320.1633617713417675266.stgit@anamdev.jf.intel.com>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Cc": "jiri@resnulli.us, netdev@vger.kernel.org, jhs@mojatatu.com,\n\txiyou.wangcong@gmail.com",
        "Subject": "[Intel-wired-lan] [jkirsher/next-queue PATCH v4 2/6] i40e: Map TCs\n\twith the VSI seids",
        "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>",
        "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": "Add mapping of TCs with the seids of the channel VSIs. TC0\nwill be mapped to the main VSI seid and all other TCs are\nmapped to the seid of the corresponding channel VSI.\n\nSigned-off-by: Amritha Nambiar <amritha.nambiar@intel.com>\n---\n drivers/net/ethernet/intel/i40e/i40e.h      |    1 +\n drivers/net/ethernet/intel/i40e/i40e_main.c |    2 ++\n 2 files changed, 3 insertions(+)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e.h b/drivers/net/ethernet/intel/i40e/i40e.h\nindex eb01776..f3c501e 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e.h\n@@ -739,6 +739,7 @@ struct i40e_vsi {\n \tu16 next_base_queue;\t/* next queue to be used for channel setup */\n \n \tstruct list_head ch_list;\n+\tu16 tc_seid_map[I40E_MAX_TRAFFIC_CLASS];\n \n \tvoid *priv;\t/* client driver data reference. */\n \ndiff --git a/drivers/net/ethernet/intel/i40e/i40e_main.c b/drivers/net/ethernet/intel/i40e/i40e_main.c\nindex 75f944f..33a8f429 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -6100,6 +6100,7 @@ static int i40e_configure_queue_channels(struct i40e_vsi *vsi)\n \tint ret = 0, i;\n \n \t/* Create app vsi with the TCs. Main VSI with TC0 is already set up */\n+\tvsi->tc_seid_map[0] = vsi->seid;\n \tfor (i = 1; i < I40E_MAX_TRAFFIC_CLASS; i++) {\n \t\tif (vsi->tc_config.enabled_tc & BIT(i)) {\n \t\t\tch = kzalloc(sizeof(*ch), GFP_KERNEL);\n@@ -6130,6 +6131,7 @@ static int i40e_configure_queue_channels(struct i40e_vsi *vsi)\n \t\t\t\t\ti, ch->num_queue_pairs);\n \t\t\t\tgoto err_free;\n \t\t\t}\n+\t\t\tvsi->tc_seid_map[i] = ch->seid;\n \t\t}\n \t}\n \treturn ret;\n",
    "prefixes": [
        "jkirsher/next-queue",
        "v4",
        "2/6"
    ]
}