Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/15298/?format=api
http://patchwork.dpdk.org/api/patches/15298/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/1472155518-853-2-git-send-email-qi.z.zhang@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<1472155518-853-2-git-send-email-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1472155518-853-2-git-send-email-qi.z.zhang@intel.com", "date": "2016-08-25T20:05:07", "name": "[dpdk-dev,01/12] net/i40e/base: add function to clear default VSI", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "e2044882ce7319c868e203ee7484d9f185c86e7e", "submitter": { "id": 504, "url": "http://patchwork.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 10, "url": "http://patchwork.dpdk.org/api/users/10/?format=api", "username": "bruce", "first_name": "Bruce", "last_name": "Richardson", "email": "bruce.richardson@intel.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/1472155518-853-2-git-send-email-qi.z.zhang@intel.com/mbox/", "series": [], "comments": "http://patchwork.dpdk.org/api/patches/15298/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/15298/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 8E230567F;\n\tThu, 25 Aug 2016 10:06:05 +0200 (CEST)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n\tby dpdk.org (Postfix) with ESMTP id 50D145589\n\tfor <dev@dpdk.org>; Thu, 25 Aug 2016 10:06:03 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n\tby fmsmga101.fm.intel.com with ESMTP; 25 Aug 2016 01:06:04 -0700", "from unknown (HELO localhost.localdomain.sh.intel.com)\n\t([10.239.129.103])\n\tby FMSMGA003.fm.intel.com with ESMTP; 25 Aug 2016 01:06:01 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.28,574,1464678000\"; d=\"scan'208\";a=\"753271265\"", "From": "Zhang Qi <qi.z.zhang@intel.com>", "To": "jingjing.wu@intel.com,\n\thelin.zhang@intel.com", "Cc": "dev@dpdk.org,\n\tZhang Qi <qi.z.zhang@intel.com>", "Date": "Thu, 25 Aug 2016 16:05:07 -0400", "Message-Id": "<1472155518-853-2-git-send-email-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1472155518-853-1-git-send-email-qi.z.zhang@intel.com>", "References": "<1472155518-853-1-git-send-email-qi.z.zhang@intel.com>", "Subject": "[dpdk-dev] [PATCH 01/12] net/i40e/base: add function to clear\n\tdefault VSI", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <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 function that help to return the VSI to Promiscuous Unicast mode.\n\nSigned-off-by: Zhang Qi <qi.z.zhang@intel.com>\n---\n drivers/net/i40e/base/i40e_common.c | 28 ++++++++++++++++++++++++++++\n drivers/net/i40e/base/i40e_prototype.h | 2 ++\n 2 files changed, 30 insertions(+)", "diff": "diff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 98ed4b6..a442067 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -2215,6 +2215,34 @@ enum i40e_status_code i40e_aq_set_default_vsi(struct i40e_hw *hw,\n }\n \n /**\n+ * i40e_aq_clear_default_vsi\n+ * @hw: pointer to the hw struct\n+ * @seid: vsi number\n+ * @cmd_details: pointer to command details structure or NULL\n+ **/\n+enum i40e_status_code i40e_aq_clear_default_vsi(struct i40e_hw *hw,\n+\t\t\t\tu16 seid,\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 *)\n+\t\t&desc.params.raw;\n+\tenum i40e_status_code status;\n+\n+\ti40e_fill_default_direct_cmd_desc(&desc,\n+\t\t\t\t\ti40e_aqc_opc_set_vsi_promiscuous_modes);\n+\n+\tcmd->promiscuous_flags = CPU_TO_LE16(0);\n+\tcmd->valid_flags = CPU_TO_LE16(I40E_AQC_SET_VSI_DEFAULT);\n+\tcmd->seid = CPU_TO_LE16(seid);\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_unicast_promiscuous\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 03dda93..f17636b 100644\n--- a/drivers/net/i40e/base/i40e_prototype.h\n+++ b/drivers/net/i40e/base/i40e_prototype.h\n@@ -124,6 +124,8 @@ enum i40e_status_code i40e_aq_set_phy_debug(struct i40e_hw *hw, u8 cmd_flags,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n enum i40e_status_code i40e_aq_set_default_vsi(struct i40e_hw *hw, u16 vsi_id,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n+enum i40e_status_code i40e_aq_clear_default_vsi(struct i40e_hw *hw, u16 vsi_id,\n+\t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n enum i40e_status_code i40e_aq_get_phy_capabilities(struct i40e_hw *hw,\n \t\t\tbool qualified_modules, bool report_init,\n \t\t\tstruct i40e_aq_get_phy_abilities_resp *abilities,\n", "prefixes": [ "dpdk-dev", "01/12" ] }{ "id": 15298, "url": "