Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/22711/?format=api
http://patches.dpdk.org/api/patches/22711/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1490798651-116457-2-git-send-email-beilei.xing@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": "<1490798651-116457-2-git-send-email-beilei.xing@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1490798651-116457-2-git-send-email-beilei.xing@intel.com", "date": "2017-03-29T14:44:06", "name": "[dpdk-dev,v7,1/6] net/i40e/base: change ppp to ddp", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a89885509497165be74256ce87955fd16f59a334", "submitter": { "id": 410, "url": "http://patches.dpdk.org/api/people/410/?format=api", "name": "Xing, Beilei", "email": "beilei.xing@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/1490798651-116457-2-git-send-email-beilei.xing@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/22711/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/22711/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 E0CA9D35C;\n\tWed, 29 Mar 2017 17:04:33 +0200 (CEST)", "from mga05.intel.com (mga05.intel.com [192.55.52.43])\n\tby dpdk.org (Postfix) with ESMTP id AA82437AC\n\tfor <dev@dpdk.org>; Wed, 29 Mar 2017 16:45:17 +0200 (CEST)", "from orsmga004.jf.intel.com ([10.7.209.38])\n\tby fmsmga105.fm.intel.com with ESMTP; 29 Mar 2017 07:45:16 -0700", "from unknown (HELO dpdk9.sh.intel.com) ([10.239.129.31])\n\tby orsmga004.jf.intel.com with ESMTP; 29 Mar 2017 07:45:15 -0700" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.36,241,1486454400\"; d=\"scan'208\";a=\"71600680\"", "From": "Beilei Xing <beilei.xing@intel.com>", "To": "jingjing.wu@intel.com", "Cc": "helin.zhang@intel.com,\n\tdev@dpdk.org", "Date": "Wed, 29 Mar 2017 22:44:06 +0800", "Message-Id": "<1490798651-116457-2-git-send-email-beilei.xing@intel.com>", "X-Mailer": "git-send-email 2.5.5", "In-Reply-To": "<1490798651-116457-1-git-send-email-beilei.xing@intel.com>", "References": "<1490790397-81848-1-git-send-email-beilei.xing@intel.com>\n\t<1490798651-116457-1-git-send-email-beilei.xing@intel.com>", "Subject": "[dpdk-dev] [PATCH v7 1/6] net/i40e/base: change ppp to ddp", "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": "Change pipeline personalization profile(ppp) to dynamic\ndevice profile(ddp).\n\nSigned-off-by: Beilei Xing <beilei.xing@intel.com>\n---\n drivers/net/i40e/base/i40e_adminq_cmd.h | 18 +++++++++---------\n drivers/net/i40e/base/i40e_common.c | 32 ++++++++++++++++----------------\n drivers/net/i40e/base/i40e_prototype.h | 4 ++--\n drivers/net/i40e/base/i40e_type.h | 28 ++++++++++++++--------------\n 4 files changed, 41 insertions(+), 41 deletions(-)", "diff": "diff --git a/drivers/net/i40e/base/i40e_adminq_cmd.h b/drivers/net/i40e/base/i40e_adminq_cmd.h\nindex 8fb3725..fdc6555 100644\n--- a/drivers/net/i40e/base/i40e_adminq_cmd.h\n+++ b/drivers/net/i40e/base/i40e_adminq_cmd.h\n@@ -199,9 +199,9 @@ enum i40e_admin_queue_opc {\n \ti40e_aqc_opc_add_mirror_rule\t= 0x0260,\n \ti40e_aqc_opc_delete_mirror_rule\t= 0x0261,\n \n-\t/* Pipeline Personalization Profile */\n-\ti40e_aqc_opc_write_personalization_profile\t= 0x0270,\n-\ti40e_aqc_opc_get_personalization_profile_list\t= 0x0271,\n+\t/* Dynamic Device Profile */\n+\ti40e_aqc_opc_write_dynamic_device_profile\t= 0x0270,\n+\ti40e_aqc_opc_get_dynamic_device_profile_list\t= 0x0271,\n \n \t/* DCB commands */\n \ti40e_aqc_opc_dcb_ignore_pfc\t= 0x0301,\n@@ -1538,8 +1538,8 @@ struct i40e_aqc_add_delete_mirror_rule_completion {\n \n I40E_CHECK_CMD_LENGTH(i40e_aqc_add_delete_mirror_rule_completion);\n \n-/* Pipeline Personalization Profile */\n-struct i40e_aqc_write_personalization_profile {\n+/* Dynamic Device Profile */\n+struct i40e_aqc_write_dynamic_device_profile {\n \tu8 flags;\n \tu8 reserved[3];\n \t__le32 profile_track_id;\n@@ -1547,9 +1547,9 @@ struct i40e_aqc_write_personalization_profile {\n \t__le32 addr_low;\n };\n \n-I40E_CHECK_CMD_LENGTH(i40e_aqc_write_personalization_profile);\n+I40E_CHECK_CMD_LENGTH(i40e_aqc_write_dynamic_device_profile);\n \n-struct i40e_aqc_write_ppp_resp {\n+struct i40e_aqc_write_ddp_resp {\n \t__le32 error_offset;\n \t__le32 error_info;\n \t__le32 addr_high;\n@@ -1558,8 +1558,8 @@ struct i40e_aqc_write_ppp_resp {\n \n struct i40e_aqc_get_applied_profiles {\n \tu8 flags;\n-#define I40E_AQC_GET_PPP_GET_CONF\t0x1\n-#define I40E_AQC_GET_PPP_GET_RDPU_CONF\t0x2\n+#define I40E_AQC_GET_DDP_GET_CONF\t0x1\n+#define I40E_AQC_GET_DDP_GET_RDPU_CONF\t0x2\n \tu8 rsv[3];\n \t__le32 reserved;\n \t__le32 addr_high;\ndiff --git a/drivers/net/i40e/base/i40e_common.c b/drivers/net/i40e/base/i40e_common.c\nindex 33ad49c..b5939ee 100644\n--- a/drivers/net/i40e/base/i40e_common.c\n+++ b/drivers/net/i40e/base/i40e_common.c\n@@ -7155,7 +7155,7 @@ enum i40e_status_code i40e_aq_clear_all_wol_filters(struct i40e_hw *hw,\n \n \n /**\n- * i40e_aq_write_ppp - Write pipeline personalization profile (ppp)\n+ * i40e_aq_write_ddp - Write dynamic device profile (ddp)\n * @hw: pointer to the hw struct\n * @buff: command buffer (size in bytes = buff_size)\n * @buff_size: buffer size in bytes\n@@ -7165,20 +7165,20 @@ enum i40e_status_code i40e_aq_clear_all_wol_filters(struct i40e_hw *hw,\n * @cmd_details: pointer to command details structure or NULL\n **/\n enum\n-i40e_status_code i40e_aq_write_ppp(struct i40e_hw *hw, void *buff,\n+i40e_status_code i40e_aq_write_ddp(struct i40e_hw *hw, void *buff,\n \t\t\t\t u16 buff_size, u32 track_id,\n \t\t\t\t u32 *error_offset, u32 *error_info,\n \t\t\t\t struct i40e_asq_cmd_details *cmd_details)\n {\n \tstruct i40e_aq_desc desc;\n-\tstruct i40e_aqc_write_personalization_profile *cmd =\n-\t\t(struct i40e_aqc_write_personalization_profile *)\n+\tstruct i40e_aqc_write_dynamic_device_profile *cmd =\n+\t\t(struct i40e_aqc_write_dynamic_device_profile *)\n \t\t&desc.params.raw;\n-\tstruct i40e_aqc_write_ppp_resp *resp;\n+\tstruct i40e_aqc_write_ddp_resp *resp;\n \tenum i40e_status_code status;\n \n \ti40e_fill_default_direct_cmd_desc(&desc,\n-\t\t\t\t i40e_aqc_opc_write_personalization_profile);\n+\t\t\t\t i40e_aqc_opc_write_dynamic_device_profile);\n \n \tdesc.flags |= CPU_TO_LE16(I40E_AQ_FLAG_BUF | I40E_AQ_FLAG_RD);\n \tif (buff_size > I40E_AQ_LARGE_BUF)\n@@ -7190,7 +7190,7 @@ i40e_status_code i40e_aq_write_ppp(struct i40e_hw *hw, void *buff,\n \n \tstatus = i40e_asq_send_command(hw, &desc, buff, buff_size, cmd_details);\n \tif (!status) {\n-\t\tresp = (struct i40e_aqc_write_ppp_resp *)&desc.params.raw;\n+\t\tresp = (struct i40e_aqc_write_ddp_resp *)&desc.params.raw;\n \t\tif (error_offset)\n \t\t\t*error_offset = LE32_TO_CPU(resp->error_offset);\n \t\tif (error_info)\n@@ -7201,14 +7201,14 @@ i40e_status_code i40e_aq_write_ppp(struct i40e_hw *hw, void *buff,\n }\n \n /**\n- * i40e_aq_get_ppp_list - Read pipeline personalization profile (ppp)\n+ * i40e_aq_get_ddp_list - Read dynamic device profile (ddp)\n * @hw: pointer to the hw struct\n * @buff: command buffer (size in bytes = buff_size)\n * @buff_size: buffer size in bytes\n * @cmd_details: pointer to command details structure or NULL\n **/\n enum\n-i40e_status_code i40e_aq_get_ppp_list(struct i40e_hw *hw, void *buff,\n+i40e_status_code i40e_aq_get_ddp_list(struct i40e_hw *hw, void *buff,\n \t\t\t\t u16 buff_size, u8 flags,\n \t\t\t\t struct i40e_asq_cmd_details *cmd_details)\n {\n@@ -7218,7 +7218,7 @@ i40e_status_code i40e_aq_get_ppp_list(struct i40e_hw *hw, void *buff,\n \tenum i40e_status_code status;\n \n \ti40e_fill_default_direct_cmd_desc(&desc,\n-\t\t\t i40e_aqc_opc_get_personalization_profile_list);\n+\t\t\t i40e_aqc_opc_get_dynamic_device_profile_list);\n \n \tdesc.flags |= CPU_TO_LE16((u16)I40E_AQ_FLAG_BUF);\n \tif (buff_size > I40E_AQ_LARGE_BUF)\n@@ -7297,7 +7297,7 @@ i40e_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile,\n \t\t\t\tbreak;\n \t}\n \tif (i == dev_cnt) {\n-\t\ti40e_debug(hw, I40E_DEBUG_PACKAGE, \"Device doesn't support PPP\");\n+\t\ti40e_debug(hw, I40E_DEBUG_PACKAGE, \"Device doesn't support DDP\");\n \t\treturn I40E_ERR_DEVICE_NOT_SUPPORTED;\n \t}\n \n@@ -7316,7 +7316,7 @@ i40e_write_profile(struct i40e_hw *hw, struct i40e_profile_segment *profile,\n \t\t\tsizeof(struct i40e_profile_section_header);\n \n \t\t/* Write profile */\n-\t\tstatus = i40e_aq_write_ppp(hw, (void *)sec, (u16)section_size,\n+\t\tstatus = i40e_aq_write_ddp(hw, (void *)sec, (u16)section_size,\n \t\t\t\t\t track_id, &offset, &info, NULL);\n \t\tif (status) {\n \t\t\ti40e_debug(hw, I40E_DEBUG_PACKAGE,\n@@ -7358,10 +7358,10 @@ i40e_add_pinfo_to_list(struct i40e_hw *hw,\n \t\t\t\t\t sec->section.offset);\n \tpinfo->track_id = track_id;\n \tpinfo->version = profile->version;\n-\tpinfo->op = I40E_PPP_ADD_TRACKID;\n-\tmemcpy(pinfo->name, profile->name, I40E_PPP_NAME_SIZE);\n+\tpinfo->op = I40E_DDP_ADD_TRACKID;\n+\tmemcpy(pinfo->name, profile->name, I40E_DDP_NAME_SIZE);\n \n-\tstatus = i40e_aq_write_ppp(hw, (void *)sec, sec->data_end,\n+\tstatus = i40e_aq_write_ddp(hw, (void *)sec, sec->data_end,\n \t\t\t\ttrack_id, &offset, &info, NULL);\n \treturn status;\n-}\n\\ No newline at end of file\n+}\ndiff --git a/drivers/net/i40e/base/i40e_prototype.h b/drivers/net/i40e/base/i40e_prototype.h\nindex 8662147..4bd589e 100644\n--- a/drivers/net/i40e/base/i40e_prototype.h\n+++ b/drivers/net/i40e/base/i40e_prototype.h\n@@ -565,11 +565,11 @@ enum i40e_status_code i40e_write_phy_register(struct i40e_hw *hw,\n u8 i40e_get_phy_address(struct i40e_hw *hw, u8 dev_num);\n enum i40e_status_code i40e_blink_phy_link_led(struct i40e_hw *hw,\n \t\t\t\t\t u32 time, u32 interval);\n-enum i40e_status_code i40e_aq_write_ppp(struct i40e_hw *hw, void *buff,\n+enum i40e_status_code i40e_aq_write_ddp(struct i40e_hw *hw, void *buff,\n \t\t\t\tu16 buff_size, u32 track_id,\n \t\t\t\tu32 *error_offset, u32 *error_info,\n \t\t\t\tstruct i40e_asq_cmd_details *cmd_details);\n-enum i40e_status_code i40e_aq_get_ppp_list(struct i40e_hw *hw, void *buff,\n+enum i40e_status_code i40e_aq_get_ddp_list(struct i40e_hw *hw, void *buff,\n \t\t\t\t u16 buff_size, u8 flags,\n \t\t\t\t struct i40e_asq_cmd_details *cmd_details);\n struct i40e_generic_seg_header *\ndiff --git a/drivers/net/i40e/base/i40e_type.h b/drivers/net/i40e/base/i40e_type.h\nindex fc81a93..b1ca47b 100644\n--- a/drivers/net/i40e/base/i40e_type.h\n+++ b/drivers/net/i40e/base/i40e_type.h\n@@ -1880,19 +1880,19 @@ struct i40e_lldp_variables {\n #define I40E_FLEX_57_SHIFT\t\t6\n #define I40E_FLEX_57_MASK\t\t(0x1ULL << I40E_FLEX_57_SHIFT)\n \n-/* Version format for PPP */\n-struct i40e_ppp_version {\n+/* Version format for DDP */\n+struct i40e_ddp_version {\n \tu8 major;\n \tu8 minor;\n \tu8 update;\n \tu8 draft;\n };\n \n-#define I40E_PPP_NAME_SIZE\t32\n+#define I40E_DDP_NAME_SIZE\t32\n \n /* Package header */\n struct i40e_package_header {\n-\tstruct i40e_ppp_version version;\n+\tstruct i40e_ddp_version version;\n \tu32 segment_count;\n \tu32 segment_offset[1];\n };\n@@ -1904,16 +1904,16 @@ struct i40e_generic_seg_header {\n #define SEGMENT_TYPE_I40E\t0x00000011\n #define SEGMENT_TYPE_X722\t0x00000012\n \tu32 type;\n-\tstruct i40e_ppp_version version;\n+\tstruct i40e_ddp_version version;\n \tu32 size;\n-\tchar name[I40E_PPP_NAME_SIZE];\n+\tchar name[I40E_DDP_NAME_SIZE];\n };\n \n struct i40e_metadata_segment {\n \tstruct i40e_generic_seg_header header;\n-\tstruct i40e_ppp_version version;\n+\tstruct i40e_ddp_version version;\n \tu32 track_id;\n-\tchar name[I40E_PPP_NAME_SIZE];\n+\tchar name[I40E_DDP_NAME_SIZE];\n };\n \n struct i40e_device_id_entry {\n@@ -1923,8 +1923,8 @@ struct i40e_device_id_entry {\n \n struct i40e_profile_segment {\n \tstruct i40e_generic_seg_header header;\n-\tstruct i40e_ppp_version version;\n-\tchar name[I40E_PPP_NAME_SIZE];\n+\tstruct i40e_ddp_version version;\n+\tchar name[I40E_DDP_NAME_SIZE];\n \tu32 device_table_count;\n \tstruct i40e_device_id_entry device_table[1];\n };\n@@ -1951,11 +1951,11 @@ struct i40e_profile_section_header {\n \n struct i40e_profile_info {\n \tu32 track_id;\n-\tstruct i40e_ppp_version version;\n+\tstruct i40e_ddp_version version;\n \tu8 op;\n-#define I40E_PPP_ADD_TRACKID\t\t0x01\n-#define I40E_PPP_REMOVE_TRACKID\t0x02\n+#define I40E_DDP_ADD_TRACKID\t\t0x01\n+#define I40E_DDP_REMOVE_TRACKID\t0x02\n \tu8 reserved[7];\n-\tu8 name[I40E_PPP_NAME_SIZE];\n+\tu8 name[I40E_DDP_NAME_SIZE];\n };\n #endif /* _I40E_TYPE_H_ */\n", "prefixes": [ "dpdk-dev", "v7", "1/6" ] }{ "id": 22711, "url": "