Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/85169/?format=api
http://patches.dpdk.org/api/patches/85169/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20201215060519.302145-13-qi.z.zhang@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": "<20201215060519.302145-13-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20201215060519.302145-13-qi.z.zhang@intel.com", "date": "2020-12-15T06:05:04", "name": "[12/27] net/ice/base: add function for NVM checksum verification", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "efcf100a3799f8487752db783d6ba853520049c4", "submitter": { "id": 504, "url": "http://patches.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 1540, "url": "http://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20201215060519.302145-13-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 14300, "url": "http://patches.dpdk.org/api/series/14300/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=14300", "date": "2020-12-15T06:04:52", "name": "ice base code update", "version": 1, "mbox": "http://patches.dpdk.org/series/14300/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/85169/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/85169/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dev-bounces@dpdk.org>", "X-Original-To": "patchwork@inbox.dpdk.org", "Delivered-To": "patchwork@inbox.dpdk.org", "Received": [ "from dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 12778A09E9;\n\tTue, 15 Dec 2020 07:05:56 +0100 (CET)", "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 4BD4ECA2C;\n\tTue, 15 Dec 2020 07:01:50 +0100 (CET)", "from mga01.intel.com (mga01.intel.com [192.55.52.88])\n by dpdk.org (Postfix) with ESMTP id 43F5CC9FA\n for <dev@dpdk.org>; Tue, 15 Dec 2020 07:01:45 +0100 (CET)", "from orsmga002.jf.intel.com ([10.7.209.21])\n by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 14 Dec 2020 22:01:44 -0800", "from dpdk51.sh.intel.com ([10.67.111.142])\n by orsmga002.jf.intel.com with ESMTP; 14 Dec 2020 22:01:43 -0800" ], "IronPort-SDR": [ "\n SYKEcWFFgACX7QbMbz9jA8NpS/wxJvj3FOn2AUZDHMu6LhMkUbwvuNboYPQmZAOW2omoXTetpL\n fYE3zDuYZUPQ==", "\n +eH4u8uVqYUZElFzxGlyZ9SzQvAYS9Mu6DeyxHfe6t4PAh5ZvHvwXMo+HC/0RQfobF8tL0kDhJ\n JfzZNTDE/0Qw==" ], "X-IronPort-AV": [ "E=McAfee;i=\"6000,8403,9835\"; a=\"193200261\"", "E=Sophos;i=\"5.78,420,1599548400\"; d=\"scan'208\";a=\"193200261\"", "E=Sophos;i=\"5.78,420,1599548400\"; d=\"scan'208\";a=\"351723508\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Milena Olech <milena.olech@intel.com>", "Date": "Tue, 15 Dec 2020 14:05:04 +0800", "Message-Id": "<20201215060519.302145-13-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20201215060519.302145-1-qi.z.zhang@intel.com>", "References": "<20201215060519.302145-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 12/27] net/ice/base: add function for NVM\n\tchecksum verification", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dev/>", "List-Post": "<mailto:dev@dpdk.org>", "List-Help": "<mailto:dev-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "AQ 0x0706 lets user to verify and recalculate NVM checksum. The usage\ndepends on command flags.\n\nSigned-off-by: Milena Olech <milena.olech@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_nvm.c | 28 ++++++++++++++++++++++++++++\n drivers/net/ice/base/ice_nvm.h | 1 +\n 2 files changed, 29 insertions(+)", "diff": "diff --git a/drivers/net/ice/base/ice_nvm.c b/drivers/net/ice/base/ice_nvm.c\nindex c807ce9ebc..45310bfc6b 100644\n--- a/drivers/net/ice/base/ice_nvm.c\n+++ b/drivers/net/ice/base/ice_nvm.c\n@@ -1077,6 +1077,34 @@ enum ice_status ice_nvm_validate_checksum(struct ice_hw *hw)\n \treturn status;\n }\n \n+/**\n+ * ice_nvm_recalculate_checksum\n+ * @hw: pointer to the HW struct\n+ *\n+ * Recalculate NVM PFA checksum (0x0706)\n+ */\n+enum ice_status ice_nvm_recalculate_checksum(struct ice_hw *hw)\n+{\n+\tstruct ice_aqc_nvm_checksum *cmd;\n+\tstruct ice_aq_desc desc;\n+\tenum ice_status status;\n+\n+\tstatus = ice_acquire_nvm(hw, ICE_RES_READ);\n+\tif (status)\n+\t\treturn status;\n+\n+\tcmd = &desc.params.nvm_checksum;\n+\n+\tice_fill_dflt_direct_cmd_desc(&desc, ice_aqc_opc_nvm_checksum);\n+\tcmd->flags = ICE_AQC_NVM_CHECKSUM_RECALC;\n+\n+\tstatus = ice_aq_send_cmd(hw, &desc, NULL, 0, NULL);\n+\n+\tice_release_nvm(hw);\n+\n+\treturn status;\n+}\n+\n /**\n * ice_nvm_access_get_features - Return the NVM access features structure\n * @cmd: NVM access command to process\ndiff --git a/drivers/net/ice/base/ice_nvm.h b/drivers/net/ice/base/ice_nvm.h\nindex 52f79ca5c9..48b71950e9 100644\n--- a/drivers/net/ice/base/ice_nvm.h\n+++ b/drivers/net/ice/base/ice_nvm.h\n@@ -119,4 +119,5 @@ enum ice_status ice_read_sr_word(struct ice_hw *hw, u16 offset, u16 *data);\n enum ice_status\n ice_read_sr_buf(struct ice_hw *hw, u16 offset, u16 *words, u16 *data);\n enum ice_status ice_nvm_validate_checksum(struct ice_hw *hw);\n+enum ice_status ice_nvm_recalculate_checksum(struct ice_hw *hw);\n #endif /* _ICE_NVM_H_ */\n", "prefixes": [ "12/27" ] }{ "id": 85169, "url": "