Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/99014/?format=api
https://patches.dpdk.org/api/patches/99014/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210916095304.3058210-8-qi.z.zhang@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": "<20210916095304.3058210-8-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210916095304.3058210-8-qi.z.zhang@intel.com", "date": "2021-09-16T09:52:59", "name": "[07/12] net/ice/base: add package segment ID", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "69196c2db6772f8c84c3edd30c47fa2df0275cb2", "submitter": { "id": 504, "url": "https://patches.dpdk.org/api/people/504/?format=api", "name": "Qi Zhang", "email": "qi.z.zhang@intel.com" }, "delegate": { "id": 1540, "url": "https://patches.dpdk.org/api/users/1540/?format=api", "username": "qzhan15", "first_name": "Qi", "last_name": "Zhang", "email": "qi.z.zhang@intel.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20210916095304.3058210-8-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 18975, "url": "https://patches.dpdk.org/api/series/18975/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=18975", "date": "2021-09-16T09:52:52", "name": "ice base code batch 2 for DPDK 21.11", "version": 1, "mbox": "https://patches.dpdk.org/series/18975/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/99014/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/99014/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 mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id BE01DA0C41;\n\tThu, 16 Sep 2021 11:50:40 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3CF5B41125;\n\tThu, 16 Sep 2021 11:50:16 +0200 (CEST)", "from mga14.intel.com (mga14.intel.com [192.55.52.115])\n by mails.dpdk.org (Postfix) with ESMTP id EED2F4111E\n for <dev@dpdk.org>; Thu, 16 Sep 2021 11:50:14 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Sep 2021 02:50:14 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga008.fm.intel.com with ESMTP; 16 Sep 2021 02:50:12 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10108\"; a=\"222185867\"", "E=Sophos;i=\"5.85,298,1624345200\"; d=\"scan'208\";a=\"222185867\"", "E=Sophos;i=\"5.85,298,1624345200\"; d=\"scan'208\";a=\"509246964\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "junfeng.guo@intel.com, dev@dpdk.org, Qi Zhang <qi.z.zhang@intel.com>,\n Dan Nowlin <dan.nowlin@intel.com>", "Date": "Thu, 16 Sep 2021 17:52:59 +0800", "Message-Id": "<20210916095304.3058210-8-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20210916095304.3058210-1-qi.z.zhang@intel.com>", "References": "<20210916095304.3058210-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 07/12] net/ice/base: add package segment ID", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.29", "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": "DDP package format is shared with different devices, for E810 device\nwe only support SEGMENT_TYPE_ICE_810.\n\nSigned-off-by: Dan Nowlin <dan.nowlin@intel.com>\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_flex_pipe.c | 9 +++++++--\n drivers/net/ice/base/ice_flex_type.h | 2 +-\n drivers/net/ice/base/ice_type.h | 1 +\n 3 files changed, 9 insertions(+), 3 deletions(-)", "diff": "diff --git a/drivers/net/ice/base/ice_flex_pipe.c b/drivers/net/ice/base/ice_flex_pipe.c\nindex 8a6fc8a9a5..3631ddba2c 100644\n--- a/drivers/net/ice/base/ice_flex_pipe.c\n+++ b/drivers/net/ice/base/ice_flex_pipe.c\n@@ -1263,8 +1263,13 @@ ice_init_pkg_info(struct ice_hw *hw, struct ice_pkg_hdr *pkg_hdr)\n \tif (!pkg_hdr)\n \t\treturn ICE_ERR_PARAM;\n \n+\thw->pkg_seg_id = SEGMENT_TYPE_ICE_E810;\n+\n+\tice_debug(hw, ICE_DBG_INIT, \"Pkg using segment id: 0x%08X\\n\",\n+\t\t hw->pkg_seg_id);\n+\n \tseg_hdr = (struct ice_generic_seg_hdr *)\n-\t\tice_find_seg_in_pkg(hw, SEGMENT_TYPE_ICE, pkg_hdr);\n+\t\tice_find_seg_in_pkg(hw, hw->pkg_seg_id, pkg_hdr);\n \tif (seg_hdr) {\n \t\tstruct ice_meta_sect *meta;\n \t\tstruct ice_pkg_enum state;\n@@ -1496,7 +1501,7 @@ ice_chk_pkg_compat(struct ice_hw *hw, struct ice_pkg_hdr *ospkg,\n \t}\n \n \t/* find ICE segment in given package */\n-\t*seg = (struct ice_seg *)ice_find_seg_in_pkg(hw, SEGMENT_TYPE_ICE,\n+\t*seg = (struct ice_seg *)ice_find_seg_in_pkg(hw, hw->pkg_seg_id,\n \t\t\t\t\t\t ospkg);\n \tif (!*seg) {\n \t\tice_debug(hw, ICE_DBG_INIT, \"no ice segment in package.\\n\");\ndiff --git a/drivers/net/ice/base/ice_flex_type.h b/drivers/net/ice/base/ice_flex_type.h\nindex 247b85a192..3f2038c931 100644\n--- a/drivers/net/ice/base/ice_flex_type.h\n+++ b/drivers/net/ice/base/ice_flex_type.h\n@@ -33,7 +33,7 @@ struct ice_pkg_hdr {\n /* generic segment */\n struct ice_generic_seg_hdr {\n #define SEGMENT_TYPE_METADATA\t0x00000001\n-#define SEGMENT_TYPE_ICE\t0x00000010\n+#define SEGMENT_TYPE_ICE_E810\t0x00000010\n \t__le32 seg_type;\n \tstruct ice_pkg_ver seg_format_ver;\n \t__le32 seg_size;\ndiff --git a/drivers/net/ice/base/ice_type.h b/drivers/net/ice/base/ice_type.h\nindex b1e03b10ff..b2b3291fb7 100644\n--- a/drivers/net/ice/base/ice_type.h\n+++ b/drivers/net/ice/base/ice_type.h\n@@ -1208,6 +1208,7 @@ struct ice_hw {\n \n \t/* Active package version (currently active) */\n \tstruct ice_pkg_ver active_pkg_ver;\n+\tu32 pkg_seg_id;\n \tu32 active_track_id;\n \tu8 active_pkg_name[ICE_PKG_NAME_SIZE];\n \tu8 active_pkg_in_nvm;\n", "prefixes": [ "07/12" ] }{ "id": 99014, "url": "