Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/99368/?format=api
http://patches.dpdk.org/api/patches/99368/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210921132009.3461020-17-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-17-qi.z.zhang@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210921132009.3461020-17-qi.z.zhang@intel.com", "date": "2021-09-21T13:20:05", "name": "[v3,16/20] net/ice/base: add helper function to aggregate flags", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "3d05f7d0fb0e98689101f6bcf6a24bca30b9dabd", "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-17-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/99368/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/99368/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 40DB6A0C4C;\n\tTue, 21 Sep 2021 15:19:04 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 52B9641196;\n\tTue, 21 Sep 2021 15:17:34 +0200 (CEST)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 322A14116A\n for <dev@dpdk.org>; Tue, 21 Sep 2021 15:17:30 +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:29 -0700", "from dpdk51.sh.intel.com ([10.67.111.142])\n by orsmga008.jf.intel.com with ESMTP; 21 Sep 2021 06:17:28 -0700" ], "X-IronPort-AV": [ "E=McAfee;i=\"6200,9189,10113\"; a=\"202847498\"", "E=Sophos;i=\"5.85,311,1624345200\"; d=\"scan'208\";a=\"202847498\"", "E=Sophos;i=\"5.85,311,1624345200\"; d=\"scan'208\";a=\"484173930\"" ], "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:05 +0800", "Message-Id": "<20210921132009.3461020-17-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 16/20] net/ice/base: add helper function to\n aggregate flags", "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_xlt_kb_flg_get to aggregate 64 bit\npacket flag into 16 bit key builder flags.\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_xlt_kb.c | 27 +++++++++++++++++++++++++++\n drivers/net/ice/base/ice_xlt_kb.h | 1 +\n 2 files changed, 28 insertions(+)", "diff": "diff --git a/drivers/net/ice/base/ice_xlt_kb.c b/drivers/net/ice/base/ice_xlt_kb.c\nindex 8b4043a836..4c1ab747cf 100644\n--- a/drivers/net/ice/base/ice_xlt_kb.c\n+++ b/drivers/net/ice/base/ice_xlt_kb.c\n@@ -187,3 +187,30 @@ struct ice_xlt_kb *ice_xlt_kb_get_rss(struct ice_hw *hw)\n {\n \treturn _xlt_kb_get(hw, ICE_SID_XLT_KEY_BUILDER_RSS);\n }\n+\n+/**\n+ * ice_xlt_kb_flag_get - aggregate 64 bits packet flag into 16 bits xlt flag\n+ * @kb: xlt key build\n+ * @pkt_flag: 64 bits packet flag\n+ */\n+u16 ice_xlt_kb_flag_get(struct ice_xlt_kb *kb, u64 pkt_flag)\n+{\n+\tstruct ice_xlt_kb_entry *entry = &kb->entries[0];\n+\tu16 flg = 0;\n+\tint i;\n+\n+\t/* check flag 15 */\n+\tif (kb->flag15 & pkt_flag)\n+\t\tflg = (u16)(1u << 15);\n+\n+\t/* check flag 0 - 14 */\n+\tfor (i = 0; i < 15; i++) {\n+\t\t/* only check first entry */\n+\t\tu16 idx = (u16)(entry->flg0_14_sel[i] & 0x3f);\n+\n+\t\tif (pkt_flag & (1ul << idx))\n+\t\t\tflg |= (u16)(1u << i);\n+\t}\n+\n+\treturn flg;\n+}\ndiff --git a/drivers/net/ice/base/ice_xlt_kb.h b/drivers/net/ice/base/ice_xlt_kb.h\nindex a95d845f89..ec802b663a 100644\n--- a/drivers/net/ice/base/ice_xlt_kb.h\n+++ b/drivers/net/ice/base/ice_xlt_kb.h\n@@ -30,4 +30,5 @@ struct ice_xlt_kb *ice_xlt_kb_get_sw(struct ice_hw *hw);\n struct ice_xlt_kb *ice_xlt_kb_get_acl(struct ice_hw *hw);\n struct ice_xlt_kb *ice_xlt_kb_get_fd(struct ice_hw *hw);\n struct ice_xlt_kb *ice_xlt_kb_get_rss(struct ice_hw *hw);\n+u16 ice_xlt_kb_flag_get(struct ice_xlt_kb *kb, u64 pkt_flag);\n #endif /* _ICE_XLT_KB_H */\n", "prefixes": [ "v3", "16/20" ] }{ "id": 99368, "url": "