Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/99124/?format=api
https://patches.dpdk.org/api/patches/99124/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210917110242.3127658-15-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": "<20210917110242.3127658-15-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210917110242.3127658-15-qi.z.zhang@intel.com", "date": "2021-09-17T11:02:36", "name": "[14/20] net/ice/base: add helper function for ptype markers match", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "13ada9d1c5cc318ad4d89a6b2de694e98b08a5e8", "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/20210917110242.3127658-15-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 19007, "url": "https://patches.dpdk.org/api/series/19007/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=19007", "date": "2021-09-17T11:02:22", "name": "ice/base: add parser module", "version": 1, "mbox": "https://patches.dpdk.org/series/19007/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/99124/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/99124/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 90488A0C46;\n\tFri, 17 Sep 2021 13:01:29 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 120BD41167;\n\tFri, 17 Sep 2021 13:00:02 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 3DCFB4115C\n for <dev@dpdk.org>; Fri, 17 Sep 2021 12:59:59 +0200 (CEST)", "from fmsmga006.fm.intel.com ([10.253.24.20])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 17 Sep 2021 03:59:58 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by fmsmga006.fm.intel.com with ESMTP; 17 Sep 2021 03:59:57 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10109\"; a=\"286458735\"", "E=Sophos;i=\"5.85,301,1624345200\"; d=\"scan'208\";a=\"286458735\"", "E=Sophos;i=\"5.85,301,1624345200\"; d=\"scan'208\";a=\"699440797\"" ], "X-ExtLoop1": "1", "From": "Qi Zhang <qi.z.zhang@intel.com>", "To": "qiming.yang@intel.com", "Cc": "junfeng.guo@intel.com,\n\tdev@dpdk.org,\n\tQi Zhang <qi.z.zhang@intel.com>", "Date": "Fri, 17 Sep 2021 19:02:36 +0800", "Message-Id": "<20210917110242.3127658-15-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20210917110242.3127658-1-qi.z.zhang@intel.com>", "References": "<20210917110242.3127658-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 14/20] net/ice/base: add helper function for\n ptype markers match", "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": "Add internal helper function ice_ptype_mk_tcam_match for ptype markers\nmatching in tcam table.\n\nSigned-off-by: Qi Zhang <qi.z.zhang@intel.com>\n---\n drivers/net/ice/base/ice_ptype_mk.c | 22 ++++++++++++++++++++++\n drivers/net/ice/base/ice_ptype_mk.h | 3 +++\n 2 files changed, 25 insertions(+)", "diff": "diff --git a/drivers/net/ice/base/ice_ptype_mk.c b/drivers/net/ice/base/ice_ptype_mk.c\nindex 33623dcfbc..97c41cb586 100644\n--- a/drivers/net/ice/base/ice_ptype_mk.c\n+++ b/drivers/net/ice/base/ice_ptype_mk.c\n@@ -52,3 +52,25 @@ struct ice_ptype_mk_tcam_item *ice_ptype_mk_tcam_table_get(struct ice_hw *hw)\n \t\t\t\t\tice_parser_sect_item_get,\n \t\t\t\t\t_parse_ptype_mk_tcam_item, true);\n }\n+\n+/**\n+ * ice_ptype_mk_tcam_match - match a pattern on a ptype marker tcam table\n+ * @table: ptype marker tcam table to search\n+ * @pat: pattern to match\n+ * @len: length of the pattern\n+ */\n+struct ice_ptype_mk_tcam_item *\n+ice_ptype_mk_tcam_match(struct ice_ptype_mk_tcam_item *table,\n+\t\t\tu8 *pat, int len)\n+{\n+\tint i;\n+\n+\tfor (i = 0; i < ICE_PTYPE_MK_TCAM_TABLE_SIZE; i++) {\n+\t\tstruct ice_ptype_mk_tcam_item *item = &table[i];\n+\n+\t\tif (ice_ternary_match(item->key, item->key_inv, pat, len))\n+\t\t\treturn item;\n+\t}\n+\n+\treturn NULL;\n+}\ndiff --git a/drivers/net/ice/base/ice_ptype_mk.h b/drivers/net/ice/base/ice_ptype_mk.h\nindex c93cd8f0ad..2cd49b1b63 100644\n--- a/drivers/net/ice/base/ice_ptype_mk.h\n+++ b/drivers/net/ice/base/ice_ptype_mk.h\n@@ -15,4 +15,7 @@ struct ice_ptype_mk_tcam_item {\n void ice_ptype_mk_tcam_dump(struct ice_hw *hw,\n \t\t\t struct ice_ptype_mk_tcam_item *item);\n struct ice_ptype_mk_tcam_item *ice_ptype_mk_tcam_table_get(struct ice_hw *hw);\n+struct ice_ptype_mk_tcam_item *\n+ice_ptype_mk_tcam_match(struct ice_ptype_mk_tcam_item *table,\n+\t\t\tu8 *pat, int len);\n #endif /* _ICE_PTYPE_MK_H_ */\n", "prefixes": [ "14/20" ] }{ "id": 99124, "url": "