get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 17851,
    "url": "http://patches.dpdk.org/api/patches/17851/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1481369093-102492-28-git-send-email-jingjing.wu@intel.com/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<1481369093-102492-28-git-send-email-jingjing.wu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1481369093-102492-28-git-send-email-jingjing.wu@intel.com",
    "date": "2016-12-10T11:24:49",
    "name": "[dpdk-dev,v3,27/31] net/i40e/base: add broadcast promiscuous control per VLAN",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "c88e3d5a5e6e85c7ced4c35a666da835ea465eb7",
    "submitter": {
        "id": 47,
        "url": "http://patches.dpdk.org/api/people/47/?format=api",
        "name": "Jingjing Wu",
        "email": "jingjing.wu@intel.com"
    },
    "delegate": {
        "id": 319,
        "url": "http://patches.dpdk.org/api/users/319/?format=api",
        "username": "fyigit",
        "first_name": "Ferruh",
        "last_name": "Yigit",
        "email": "ferruh.yigit@amd.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1481369093-102492-28-git-send-email-jingjing.wu@intel.com/mbox/",
    "series": [],
    "comments": "http://patches.dpdk.org/api/patches/17851/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/17851/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 01062FA78;\n\tSat, 10 Dec 2016 12:27:30 +0100 (CET)",
            "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n\tby dpdk.org (Postfix) with ESMTP id 7535E591F\n\tfor <dev@dpdk.org>; Sat, 10 Dec 2016 12:26:45 +0100 (CET)",
            "from orsmga001.jf.intel.com ([10.7.209.18])\n\tby orsmga105.jf.intel.com with ESMTP; 10 Dec 2016 03:26:45 -0800",
            "from dpdk2.sh.intel.com ([10.239.128.246])\n\tby orsmga001.jf.intel.com with ESMTP; 10 Dec 2016 03:26:44 -0800"
        ],
        "X-ExtLoop1": "1",
        "X-IronPort-AV": "E=Sophos; i=\"5.33,327,1477983600\"; d=\"scan'208\";\n\ta=\"1070414031\"",
        "From": "Jingjing Wu <jingjing.wu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "jingjing.wu@intel.com,\n\thelin.zhang@intel.com",
        "Date": "Sat, 10 Dec 2016 19:24:49 +0800",
        "Message-Id": "<1481369093-102492-28-git-send-email-jingjing.wu@intel.com>",
        "X-Mailer": "git-send-email 2.4.11",
        "In-Reply-To": "<1481369093-102492-1-git-send-email-jingjing.wu@intel.com>",
        "References": "<1481294364-83505-1-git-send-email-jingjing.wu@intel.com>\n\t<1481369093-102492-1-git-send-email-jingjing.wu@intel.com>",
        "Subject": "[dpdk-dev] [PATCH v3 27/31] net/i40e/base: add broadcast\n\tpromiscuous control per VLAN",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "Add a new adminq function that allows driver to configure per-VLAN\nbroadcast promiscuous mode, similar to how we handle unicast and\nmulticast promiscuous modes.\n\nSigned-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n drivers/net/i40e/base/i40e_common.c    | 34 ++++++++++++++++++++++++++++++++++\n drivers/net/i40e/base/i40e_prototype.h |  3 +++\n 2 files changed, 37 insertions(+)",
    "diff": "diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 852cbf7..14aaac6 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -2461,6 +2461,40 @@ enum i40e_status_code i40e_aq_set_vsi_uc_promisc_on_vlan(struct i40e_hw *hw,\n }\n \n /**\n+ * i40e_aq_set_vsi_bc_promisc_on_vlan\n+ * @hw: pointer to the hw struct\n+ * @seid: vsi number\n+ * @enable: set broadcast promiscuous enable/disable for a given VLAN\n+ * @vid: The VLAN tag filter - capture any broadcast packet with this VLAN tag\n+ * @cmd_details: pointer to command details structure or NULL\n+ **/\n+enum i40e_status_code i40e_aq_set_vsi_bc_promisc_on_vlan(struct i40e_hw *hw,\n+\t\t\t\tu16 seid, bool enable, u16 vid,\n+\t\t\t\tstruct i40e_asq_cmd_details *cmd_details)\n+{\n+\tstruct i40e_aq_desc desc;\n+\tstruct i40e_aqc_set_vsi_promiscuous_modes *cmd =\n+\t\t(struct i40e_aqc_set_vsi_promiscuous_modes *)&desc.params.raw;\n+\tenum i40e_status_code status;\n+\tu16 flags = 0;\n+\n+\ti40e_fill_default_direct_cmd_desc(&desc,\n+\t\t\t\t\ti40e_aqc_opc_set_vsi_promiscuous_modes);\n+\n+\tif (enable)\n+\t\tflags |= I40E_AQC_SET_VSI_PROMISC_BROADCAST;\n+\n+\tcmd->promiscuous_flags = CPU_TO_LE16(flags);\n+\tcmd->valid_flags = CPU_TO_LE16(I40E_AQC_SET_VSI_PROMISC_BROADCAST);\n+\tcmd->seid = CPU_TO_LE16(seid);\n+\tcmd->vlan_tag = CPU_TO_LE16(vid | I40E_AQC_SET_VSI_VLAN_VALID);\n+\n+\tstatus = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);\n+\n+\treturn status;\n+}\n+\n+/**\n  * i40e_aq_set_vsi_broadcast\n  * @hw: pointer to the hw struct\n  * @seid: vsi number\ndiff --git a/drivers/net/i40e/base/i40e_prototype.h b/drivers/net/i40e/base/i40e_prototype.h\nindex 98f5689..ed6cdd6 100644\n--- a/drivers/net/i40e/base/i40e_prototype.h\n+++ b/drivers/net/i40e/base/i40e_prototype.h\n@@ -181,6 +181,9 @@ enum i40e_status_code i40e_aq_set_vsi_mc_promisc_on_vlan(struct i40e_hw *hw,\n enum i40e_status_code i40e_aq_set_vsi_uc_promisc_on_vlan(struct i40e_hw *hw,\n \t\t\t\tu16 seid, bool enable, u16 vid,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n+enum i40e_status_code i40e_aq_set_vsi_bc_promisc_on_vlan(struct i40e_hw *hw,\n+\t\t\t\tu16 seid, bool enable, u16 vid,\n+\t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n enum i40e_status_code i40e_aq_set_vsi_vlan_promisc(struct i40e_hw *hw,\n \t\t\t\tu16 seid, bool enable,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n",
    "prefixes": [
        "dpdk-dev",
        "v3",
        "27/31"
    ]
}