Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/6926/?format=api
https://patches.dpdk.org/api/patches/6926/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1441523526-26202-16-git-send-email-jingjing.wu@intel.com/", "project": { "id": 1, "url": "https://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": "<1441523526-26202-16-git-send-email-jingjing.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1441523526-26202-16-git-send-email-jingjing.wu@intel.com", "date": "2015-09-06T07:11:29", "name": "[dpdk-dev,15/52] i40e/base: OEM Post Update AQ command implementation", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "a2cad2197f856405cbde86ffb42660b1fc4a3afb", "submitter": { "id": 47, "url": "https://patches.dpdk.org/api/people/47/?format=api", "name": "Jingjing Wu", "email": "jingjing.wu@intel.com" }, "delegate": null, "mbox": "https://patches.dpdk.org/project/dpdk/patch/1441523526-26202-16-git-send-email-jingjing.wu@intel.com/mbox/", "series": [], "comments": "https://patches.dpdk.org/api/patches/6926/comments/", "check": "pending", "checks": "https://patches.dpdk.org/api/patches/6926/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 83FB39200;\n\tSun, 6 Sep 2015 09:13:05 +0200 (CEST)", "from mga02.intel.com (mga02.intel.com [134.134.136.20])\n\tby dpdk.org (Postfix) with ESMTP id F085191FC\n\tfor <dev@dpdk.org>; Sun, 6 Sep 2015 09:13:01 +0200 (CEST)", "from orsmga003.jf.intel.com ([10.7.209.27])\n\tby orsmga101.jf.intel.com with ESMTP; 06 Sep 2015 00:12:47 -0700", "from shvmail01.sh.intel.com ([10.239.29.42])\n\tby orsmga003.jf.intel.com with ESMTP; 06 Sep 2015 00:12:46 -0700", "from shecgisg004.sh.intel.com (shecgisg004.sh.intel.com\n\t[10.239.29.89])\n\tby shvmail01.sh.intel.com with ESMTP id t867Cika018574;\n\tSun, 6 Sep 2015 15:12:44 +0800", "from shecgisg004.sh.intel.com (localhost [127.0.0.1])\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/SuSE Linux 0.8) with ESMTP\n\tid t867CfKj026342; Sun, 6 Sep 2015 15:12:44 +0800", "(from wujingji@localhost)\n\tby shecgisg004.sh.intel.com (8.13.6/8.13.6/Submit) id t867CfiP026338; \n\tSun, 6 Sep 2015 15:12:41 +0800" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.17,478,1437462000\"; d=\"scan'208\";a=\"639504731\"", "From": "Jingjing Wu <jingjing.wu@intel.com>", "To": "dev@dpdk.org", "Date": "Sun, 6 Sep 2015 15:11:29 +0800", "Message-Id": "<1441523526-26202-16-git-send-email-jingjing.wu@intel.com>", "X-Mailer": "git-send-email 1.7.4.1", "In-Reply-To": "<1441523526-26202-1-git-send-email-jingjing.wu@intel.com>", "References": "<1441523526-26202-1-git-send-email-jingjing.wu@intel.com>", "Subject": "[dpdk-dev] [PATCH 15/52] i40e/base: OEM Post Update AQ command\n\timplementation", "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": "Signed-off-by: Jingjing Wu <jingjing.wu@intel.com>\n---\n drivers/net/i40e/base/i40e_adminq_cmd.h | 21 +++++++++++++++++++++\n drivers/net/i40e/base/i40e_common.c | 22 ++++++++++++++++++++++\n drivers/net/i40e/base/i40e_prototype.h | 3 +++\n 3 files changed, 46 insertions(+)", "diff": "diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h\nindex aaf9f22..6365e55 100644\n--- a/drivers/net/i40e/base/i40e_adminq_cmd.h\n+++ b/drivers/net/i40e/base/i40e_adminq_cmd.h\n@@ -234,6 +234,7 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_nvm_update\t\t\t= 0x0703,\n \ti40e_aqc_opc_nvm_config_read\t\t= 0x0704,\n \ti40e_aqc_opc_nvm_config_write\t\t= 0x0705,\n+\ti40e_aqc_opc_oem_post_update\t\t= 0x0720,\n \n \t/* virtualization commands */\n \ti40e_aqc_opc_send_msg_to_pf\t\t= 0x0801,\n@@ -1886,6 +1887,26 @@ struct i40e_aqc_nvm_config_data_immediate_field {\n \n I40E_CHECK_STRUCT_LEN(0xc, i40e_aqc_nvm_config_data_immediate_field);\n \n+/* OEM Post Update (indirect 0x0720)\n+ * no command data struct used\n+ */\n+ struct i40e_aqc_nvm_oem_post_update {\n+#define I40E_AQ_NVM_OEM_POST_UPDATE_EXTERNAL_DATA\t0x01\n+\tu8 sel_data;\n+\tu8 reserved[7];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x8, i40e_aqc_nvm_oem_post_update);\n+\n+struct i40e_aqc_nvm_oem_post_update_buffer {\n+\tu8 str_len;\n+\tu8 dev_addr;\n+\t__le16 eeprom_addr;\n+\tu8 data[36];\n+};\n+\n+I40E_CHECK_STRUCT_LEN(0x28, i40e_aqc_nvm_oem_post_update_buffer);\n+\n /* Send to PF command (indirect 0x0801) id is only used by PF\n * Send to VF command (indirect 0x0802) id is only used by PF\n * Send to Peer PF command (indirect 0x0803)\ndiff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 3617f01..8c8c4a9 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -3061,6 +3061,28 @@ enum i40e_status_code i40e_aq_write_nvm_config(struct i40e_hw *hw,\n }\n \n /**\n+ * i40e_aq_oem_post_update - triggers an OEM specific flow after update\n+ * @hw: pointer to the hw struct\n+ * @cmd_details: pointer to command details structure or NULL\n+ **/\n+enum i40e_status_code i40e_aq_oem_post_update(struct i40e_hw *hw,\n+\t\t\t\tvoid *buff, u16 buff_size,\n+\t\t\t\tstruct i40e_asq_cmd_details *cmd_details)\n+{\n+\tstruct i40e_aq_desc desc;\n+\tenum i40e_status_code status;\n+\n+\tUNREFERENCED_2PARAMETER(buff, buff_size);\n+\n+\ti40e_fill_default_direct_cmd_desc(&desc, i40e_aqc_opc_oem_post_update);\n+\tstatus = i40e_asq_send_command(hw, &desc, NULL, 0, cmd_details);\n+\tif (status && LE16_TO_CPU(desc.retval) == I40E_AQ_RC_ESRCH)\n+\t\tstatus = I40E_ERR_NOT_IMPLEMENTED;\n+\n+\treturn status;\n+}\n+\n+/**\n * i40e_aq_erase_nvm\n * @hw: pointer to the hw struct\n * @module_pointer: module pointer location in words from the NVM beginning\ndiff --git a/drivers/net/i40e/base/i40e_prototype.h b/drivers/net/i40e/base/i40e_prototype.h\nindex eadbebe..5c271e3 100644\n--- a/drivers/net/i40e/base/i40e_prototype.h\n+++ b/drivers/net/i40e/base/i40e_prototype.h\n@@ -214,6 +214,9 @@ enum i40e_status_code i40e_aq_write_nvm_config(struct i40e_hw *hw,\n \t\t\t\tu8 cmd_flags, void *data, u16 buf_size,\n \t\t\t\tu16 element_count,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n+enum i40e_status_code i40e_aq_oem_post_update(struct i40e_hw *hw,\n+\t\t\t\tvoid *buff, u16 buff_size,\n+\t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n enum i40e_status_code i40e_aq_discover_capabilities(struct i40e_hw *hw,\n \t\t\t\tvoid *buff, u16 buff_size, u16 *data_size,\n \t\t\t\tenum i40e_admin_queue_opc list_type_opc,\n", "prefixes": [ "dpdk-dev", "15/52" ] }{ "id": 6926, "url": "