get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 831162,
    "url": "http://patchwork.ozlabs.org/api/patches/831162/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/150909694002.48377.13680917261556432785.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": "<150909694002.48377.13680917261556432785.stgit@anamdev.jf.intel.com>",
    "list_archive_url": null,
    "date": "2017-10-27T09:35:40",
    "name": "[jkirsher/next-queue,v5,2/6] i40e: Map TCs with the VSI seids",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "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/150909694002.48377.13680917261556432785.stgit@anamdev.jf.intel.com/mbox/",
    "series": [
        {
            "id": 10540,
            "url": "http://patchwork.ozlabs.org/api/series/10540/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=10540",
            "date": "2017-10-27T09:35:29",
            "name": "tc-flower based cloud filters in i40e",
            "version": 5,
            "mbox": "http://patchwork.ozlabs.org/series/10540/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/831162/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/831162/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 3yNf1606jVz9t2h\n\tfor <incoming@patchwork.ozlabs.org>;\n\tFri, 27 Oct 2017 20:37:29 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 659B7881B5;\n\tFri, 27 Oct 2017 09:37:28 +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 r4cw4G5Pc81x; Fri, 27 Oct 2017 09:37:26 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby fraxinus.osuosl.org (Postfix) with ESMTP id 9C37288DD0;\n\tFri, 27 Oct 2017 09:37:26 +0000 (UTC)",
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ash.osuosl.org (Postfix) with ESMTP id 3F40C1C071F\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 27 Oct 2017 09:37:25 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 370F98A1B0\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 27 Oct 2017 09:37:25 +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 USNyOCTab6Ju for <intel-wired-lan@lists.osuosl.org>;\n\tFri, 27 Oct 2017 09:37:17 +0000 (UTC)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby hemlock.osuosl.org (Postfix) with ESMTPS id ADADF89CCA\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tFri, 27 Oct 2017 09:37:17 +0000 (UTC)",
            "from fmsmga005.fm.intel.com ([10.253.24.32])\n\tby orsmga105.jf.intel.com with ESMTP; 27 Oct 2017 02:37:17 -0700",
            "from anamdev.jf.intel.com ([10.166.29.110])\n\tby fmsmga005.fm.intel.com with ESMTP; 27 Oct 2017 02:37:16 -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.44,304,1505804400\"; d=\"scan'208\";a=\"167802465\"",
        "From": "Amritha Nambiar <amritha.nambiar@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@intel.com",
        "Date": "Fri, 27 Oct 2017 02:35:40 -0700",
        "Message-ID": "<150909694002.48377.13680917261556432785.stgit@anamdev.jf.intel.com>",
        "In-Reply-To": "<150909628755.48377.16561267691881106259.stgit@anamdev.jf.intel.com>",
        "References": "<150909628755.48377.16561267691881106259.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 v5 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 1cf9ba2..2ff7384 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",
        "v5",
        "2/6"
    ]
}