get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 813284,
    "url": "http://patchwork.ozlabs.org/api/patches/813284/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/150529676964.57063.13731545596355696552.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": "<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": "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": null,
    "mbox": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/150529676964.57063.13731545596355696552.stgit@anamdev.jf.intel.com/mbox/",
    "series": [
        {
            "id": 2860,
            "url": "http://patchwork.ozlabs.org/api/series/2860/?format=api",
            "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/list/?series=2860",
            "date": "2017-09-13T09:59:13",
            "name": "tc-flower based cloud filters in i40e",
            "version": 3,
            "mbox": "http://patchwork.ozlabs.org/series/2860/mbox/"
        }
    ],
    "comments": "http://patchwork.ozlabs.org/api/patches/813284/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/813284/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.136; helo=silver.osuosl.org;\n\tenvelope-from=intel-wired-lan-bounces@osuosl.org;\n\treceiver=<UNKNOWN>)",
        "Received": [
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\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 3xsccB71mhz9s9Y\n\tfor <incoming@patchwork.ozlabs.org>;\n\tWed, 13 Sep 2017 20:00:42 +1000 (AEST)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 87AC72DA33;\n\tWed, 13 Sep 2017 10:00:41 +0000 (UTC)",
            "from silver.osuosl.org ([127.0.0.1])\n\tby localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024)\n\twith ESMTP id tX8I8wC9vPoZ; Wed, 13 Sep 2017 10:00:39 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby silver.osuosl.org (Postfix) with ESMTP id A972030B81;\n\tWed, 13 Sep 2017 10:00:39 +0000 (UTC)",
            "from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138])\n\tby ash.osuosl.org (Postfix) with ESMTP id 75DC01C0BE0\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:00:38 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby whitealder.osuosl.org (Postfix) with ESMTP id 6BFA2889C7\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:00:38 +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 vOrvw0nlLTCy for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:00:37 +0000 (UTC)",
            "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby whitealder.osuosl.org (Postfix) with ESMTPS id C73CC889BC\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 13 Sep 2017 10:00:37 +0000 (UTC)",
            "from orsmga005.jf.intel.com ([10.7.209.41])\n\tby fmsmga101.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-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.42,387,1500966000\"; d=\"scan'208\";a=\"148654152\"",
        "From": "Amritha Nambiar <amritha.nambiar@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org, jeffrey.t.kirsher@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",
        "Cc": "netdev@vger.kernel.org",
        "Subject": "[Intel-wired-lan] [RFC PATCH v3 3/7] i40e: Map TCs with the VSI\n\tseids",
        "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 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"
    ]
}