get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 813285,
    "url": "http://patchwork.ozlabs.org/api/patches/813285/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/netdev/patch/150529676964.57063.13731545596355696552.stgit@anamdev.jf.intel.com/",
    "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": "<150529676964.57063.13731545596355696552.stgit@anamdev.jf.intel.com>",
    "list_archive_url": null,
    "date": "2017-09-13T09:59:29",
    "name": "[RFC,v3,3/7] i40e: Map TCs with the VSI seids",
    "commit_ref": null,
    "pull_url": null,
    "state": "rfc",
    "archived": true,
    "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": 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/150529676964.57063.13731545596355696552.stgit@anamdev.jf.intel.com/mbox/",
    "series": [
        {
            "id": 2861,
            "url": "http://patchwork.ozlabs.org/api/series/2861/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/netdev/list/?series=2861",
            "date": "2017-09-13T09:59:13",
            "name": "tc-flower based cloud filters in i40e",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/2861/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/813285/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/813285/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 3xsccG1yHYz9s76\n\tfor <patchwork-incoming@ozlabs.org>;\n\tWed, 13 Sep 2017 20:00:46 +1000 (AEST)",
            "(majordomo@vger.kernel.org) by vger.kernel.org via listexpand\n\tid S1752158AbdIMKAl (ORCPT <rfc822;patchwork-incoming@ozlabs.org>);\n\tWed, 13 Sep 2017 06:00:41 -0400",
            "from mga04.intel.com ([192.55.52.120]:2883 \"EHLO mga04.intel.com\"\n\trhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP\n\tid S1752134AbdIMKAj (ORCPT <rfc822;netdev@vger.kernel.org>);\n\tWed, 13 Sep 2017 06:00:39 -0400",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t13 Sep 2017 03:00:37 -0700",
            "from anamdev.jf.intel.com ([10.166.29.110])\n\tby orsmga005.jf.intel.com with ESMTP; 13 Sep 2017 03:00:37 -0700"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos;i=\"5.42,387,1500966000\"; d=\"scan'208\";a=\"148654152\"",
        "Subject": "[RFC PATCH v3 3/7] i40e: Map TCs with the VSI seids",
        "From": "Amritha Nambiar <amritha.nambiar@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com",
        "Cc": "alexander.h.duyck@intel.com, netdev@vger.kernel.org,\n\tamritha.nambiar@intel.com",
        "Date": "Wed, 13 Sep 2017 02:59:29 -0700",
        "Message-ID": "<150529676964.57063.13731545596355696552.stgit@anamdev.jf.intel.com>",
        "In-Reply-To": "<150529632024.57063.15338545678487601430.stgit@anamdev.jf.intel.com>",
        "References": "<150529632024.57063.15338545678487601430.stgit@anamdev.jf.intel.com>",
        "User-Agent": "StGit/0.17.1-dirty",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain; charset=\"utf-8\"",
        "Content-Transfer-Encoding": "7bit",
        "Sender": "netdev-owner@vger.kernel.org",
        "Precedence": "bulk",
        "List-ID": "<netdev.vger.kernel.org>",
        "X-Mailing-List": "netdev@vger.kernel.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 266e1dc..d846da9 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e.h\n@@ -738,6 +738,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 5ef3927..0455283 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_main.c\n+++ b/drivers/net/ethernet/intel/i40e/i40e_main.c\n@@ -6093,6 +6093,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@@ -6122,6 +6123,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": [
        "RFC",
        "v3",
        "3/7"
    ]
}