Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/99366/?format=api
http://patches.dpdk.org/api/patches/99366/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210921132009.3461020-15-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": "<20210921132009.3461020-15-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210921132009.3461020-15-qi.z.zhang@intel.com", "date": "2021-09-21T13:20:03", "name": "[v3,14/20] net/ice/base: add helper function for ptype markers match", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "13ada9d1c5cc318ad4d89a6b2de694e98b08a5e8", "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/20210921132009.3461020-15-qi.z.zhang@intel.com/mbox/", "series": [ { "id": 19057, "url": "http://patches.dpdk.org/api/series/19057/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19057", "date": "2021-09-21T13:19:49", "name": "ice/base: add parser module", "version": 3, "mbox": "http://patches.dpdk.org/series/19057/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/99366/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/99366/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 B4BE9A0C4C;\n\tTue, 21 Sep 2021 15:18:53 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D5A324118B;\n\tTue, 21 Sep 2021 15:17:31 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 765524117F\n for <dev@dpdk.org>; Tue, 21 Sep 2021 15:17:28 +0200 (CEST)", "from orsmga008.jf.intel.com ([10.7.209.65])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 21 Sep 2021 06:17:27 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by orsmga008.jf.intel.com with ESMTP; 21 Sep 2021 06:17:25 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10113\"; a=\"202847487\"", "E=Sophos;i=\"5.85,311,1624345200\"; d=\"scan'208\";a=\"202847487\"", "E=Sophos;i=\"5.85,311,1624345200\"; d=\"scan'208\";a=\"484173917\"" ], "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": "Tue, 21 Sep 2021 21:20:03 +0800", "Message-Id": "<20210921132009.3461020-15-qi.z.zhang@intel.com>", "X-Mailer": "git-send-email 2.26.2", "In-Reply-To": "<20210921132009.3461020-1-qi.z.zhang@intel.com>", "References": "<20210921132009.3461020-1-qi.z.zhang@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH v3 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>\nAcked-by: Junfeng Guo <junfeng.guo@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": [ "v3", "14/20" ] }{ "id": 99366, "url": "