get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 560707,
    "url": "http://patchwork.ozlabs.org/api/patches/560707/?format=api",
    "web_url": "http://patchwork.ozlabs.org/project/intel-wired-lan/patch/1450901156-30904-3-git-send-email-deepthi.kavalur@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": "<1450901156-30904-3-git-send-email-deepthi.kavalur@intel.com>",
    "list_archive_url": null,
    "date": "2015-12-23T20:05:42",
    "name": "[next,S25,02/16] i40e: AQ Add set_switch_config",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": false,
    "hash": "9a1e5cbd3cd2116331e31d746822cfda981ed93e",
    "submitter": {
        "id": 67654,
        "url": "http://patchwork.ozlabs.org/api/people/67654/?format=api",
        "name": "Deepthi Kavalur",
        "email": "deepthi.kavalur@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/1450901156-30904-3-git-send-email-deepthi.kavalur@intel.com/mbox/",
    "series": [],
    "comments": "http://patchwork.ozlabs.org/api/patches/560707/comments/",
    "check": "pending",
    "checks": "http://patchwork.ozlabs.org/api/patches/560707/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<intel-wired-lan-bounces@lists.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"
        ],
        "Received": [
            "from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133])\n\tby ozlabs.org (Postfix) with ESMTP id 5A5AE140BA2\n\tfor <incoming@patchwork.ozlabs.org>;\n\tThu, 24 Dec 2015 07:06:15 +1100 (AEDT)",
            "from localhost (localhost [127.0.0.1])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 8DDBB95AA0;\n\tWed, 23 Dec 2015 20:06:14 +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 5Rcf1j+MGt-K; Wed, 23 Dec 2015 20:06:03 +0000 (UTC)",
            "from ash.osuosl.org (ash.osuosl.org [140.211.166.34])\n\tby hemlock.osuosl.org (Postfix) with ESMTP id 9BFAB95A9F;\n\tWed, 23 Dec 2015 20:06:02 +0000 (UTC)",
            "from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136])\n\tby ash.osuosl.org (Postfix) with ESMTP id 1838D1C07F9\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 23 Dec 2015 20:05:59 +0000 (UTC)",
            "from localhost (localhost [127.0.0.1])\n\tby silver.osuosl.org (Postfix) with ESMTP id 1280633076\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 23 Dec 2015 20:05:59 +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 yJzjAgcpH3S5 for <intel-wired-lan@lists.osuosl.org>;\n\tWed, 23 Dec 2015 20:05:57 +0000 (UTC)",
            "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n\tby silver.osuosl.org (Postfix) with ESMTP id 6B22532023\n\tfor <intel-wired-lan@lists.osuosl.org>;\n\tWed, 23 Dec 2015 20:05:57 +0000 (UTC)",
            "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga103.fm.intel.com with ESMTP; 23 Dec 2015 12:05:57 -0800",
            "from dkavalur-mobl.amr.corp.intel.com (HELO\n\tlocalhost.localdomain.localdomain) ([134.134.176.72])\n\tby FMSMGA003.fm.intel.com with ESMTP; 23 Dec 2015 12:05:57 -0800"
        ],
        "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.20,470,1444719600\"; d=\"scan'208\";a=\"622911034\"",
        "From": "Deepthi Kavalur <deepthi.kavalur@intel.com>",
        "To": "intel-wired-lan@lists.osuosl.org",
        "Date": "Wed, 23 Dec 2015 12:05:42 -0800",
        "Message-Id": "<1450901156-30904-3-git-send-email-deepthi.kavalur@intel.com>",
        "X-Mailer": "git-send-email 2.1.0",
        "In-Reply-To": "<1450901156-30904-1-git-send-email-deepthi.kavalur@intel.com>",
        "References": "<1450901156-30904-1-git-send-email-deepthi.kavalur@intel.com>",
        "Subject": "[Intel-wired-lan] [next PATCH S25 02/16] i40e: AQ Add\n\tset_switch_config",
        "X-BeenThere": "intel-wired-lan@lists.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.lists.osuosl.org>",
        "List-Unsubscribe": "<http://lists.osuosl.org/mailman/options/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.osuosl.org?subject=unsubscribe>",
        "List-Archive": "<http://lists.osuosl.org/pipermail/intel-wired-lan/>",
        "List-Post": "<mailto:intel-wired-lan@lists.osuosl.org>",
        "List-Help": "<mailto:intel-wired-lan-request@lists.osuosl.org?subject=help>",
        "List-Subscribe": "<http://lists.osuosl.org/mailman/listinfo/intel-wired-lan>, \n\t<mailto:intel-wired-lan-request@lists.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@lists.osuosl.org",
        "Sender": "\"Intel-wired-lan\" <intel-wired-lan-bounces@lists.osuosl.org>"
    },
    "content": "From: Shannon Nelson <shannon.nelson@intel.com>\n\nAdd the new Set Switch Config AdminQ command, and mark the L2 Filter\nbit as deprecated in the Add VEB command.\n\nSigned-off-by: Shannon Nelson <shannon.nelson@intel.com>\nAcked-by: Kevin Scott <kevin.c.scott@intel.com>\nSigned-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>\nChange-ID: I5b24790f14c56f0ddf3f70df1e486844146b039f\n---\nTesting-Hints:\nApply and compile cleanly.\n\n drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h   | 15 ++++++++++++++-\n drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h | 15 ++++++++++++++-\n 2 files changed, 28 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\nindex 6e0834e..7e96615 100644\n--- a/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40e/i40e_adminq_cmd.h\n@@ -145,6 +145,7 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_remove_statistics\t\t= 0x0202,\n \ti40e_aqc_opc_set_port_parameters\t= 0x0203,\n \ti40e_aqc_opc_get_switch_resource_alloc\t= 0x0204,\n+\ti40e_aqc_opc_set_switch_config\t\t= 0x0205,\n \n \ti40e_aqc_opc_add_vsi\t\t\t= 0x0210,\n \ti40e_aqc_opc_update_vsi_parameters\t= 0x0211,\n@@ -683,6 +684,17 @@ struct i40e_aqc_switch_resource_alloc_element_resp {\n \n I40E_CHECK_STRUCT_LEN(0x10, i40e_aqc_switch_resource_alloc_element_resp);\n \n+/* Set Switch Configuration (direct 0x0205) */\n+struct i40e_aqc_set_switch_config {\n+\t__le16\tflags;\n+#define I40E_AQ_SET_SWITCH_CFG_PROMISC\t\t0x0001\n+#define I40E_AQ_SET_SWITCH_CFG_L2_FILTER\t0x0002\n+\t__le16\tvalid_flags;\n+\tu8\treserved[12];\n+};\n+\n+I40E_CHECK_CMD_LENGTH(i40e_aqc_set_switch_config);\n+\n /* Add VSI (indirect 0x0210)\n  *    this indirect command uses struct i40e_aqc_vsi_properties_data\n  *    as the indirect buffer (128 bytes)\n@@ -909,7 +921,8 @@ struct i40e_aqc_add_veb {\n \t\t\t\t\tI40E_AQC_ADD_VEB_PORT_TYPE_SHIFT)\n #define I40E_AQC_ADD_VEB_PORT_TYPE_DEFAULT\t0x2\n #define I40E_AQC_ADD_VEB_PORT_TYPE_DATA\t\t0x4\n-#define I40E_AQC_ADD_VEB_ENABLE_L2_FILTER\t0x8\n+#define I40E_AQC_ADD_VEB_ENABLE_L2_FILTER\t0x8     /* deprecated */\n+#define I40E_AQC_ADD_VEB_ENABLE_DISABLE_STATS\t0x10\n \tu8\tenable_tcs;\n \tu8\treserved[9];\n };\ndiff --git a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\nindex 220b972..2c8f3ed 100644\n--- a/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n+++ b/drivers/net/ethernet/intel/i40evf/i40e_adminq_cmd.h\n@@ -145,6 +145,7 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_remove_statistics\t\t= 0x0202,\n \ti40e_aqc_opc_set_port_parameters\t= 0x0203,\n \ti40e_aqc_opc_get_switch_resource_alloc\t= 0x0204,\n+\ti40e_aqc_opc_set_switch_config\t\t= 0x0205,\n \n \ti40e_aqc_opc_add_vsi\t\t\t= 0x0210,\n \ti40e_aqc_opc_update_vsi_parameters\t= 0x0211,\n@@ -680,6 +681,17 @@ struct i40e_aqc_switch_resource_alloc_element_resp {\n \n I40E_CHECK_STRUCT_LEN(0x10, i40e_aqc_switch_resource_alloc_element_resp);\n \n+/* Set Switch Configuration (direct 0x0205) */\n+struct i40e_aqc_set_switch_config {\n+\t__le16\tflags;\n+#define I40E_AQ_SET_SWITCH_CFG_PROMISC\t\t0x0001\n+#define I40E_AQ_SET_SWITCH_CFG_L2_FILTER\t0x0002\n+\t__le16\tvalid_flags;\n+\tu8\treserved[12];\n+};\n+\n+I40E_CHECK_CMD_LENGTH(i40e_aqc_set_switch_config);\n+\n /* Add VSI (indirect 0x0210)\n  *    this indirect command uses struct i40e_aqc_vsi_properties_data\n  *    as the indirect buffer (128 bytes)\n@@ -906,7 +918,8 @@ struct i40e_aqc_add_veb {\n \t\t\t\t\tI40E_AQC_ADD_VEB_PORT_TYPE_SHIFT)\n #define I40E_AQC_ADD_VEB_PORT_TYPE_DEFAULT\t0x2\n #define I40E_AQC_ADD_VEB_PORT_TYPE_DATA\t\t0x4\n-#define I40E_AQC_ADD_VEB_ENABLE_L2_FILTER\t0x8\n+#define I40E_AQC_ADD_VEB_ENABLE_L2_FILTER\t0x8     /* deprecated */\n+#define I40E_AQC_ADD_VEB_ENABLE_DISABLE_STATS\t0x10\n \tu8\tenable_tcs;\n \tu8\treserved[9];\n };\n",
    "prefixes": [
        "next",
        "S25",
        "02/16"
    ]
}