Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/126265/?format=api
http://patches.dpdk.org/api/patches/126265/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230419195109.1659341-1-arkadiuszx.kusztal@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": "<20230419195109.1659341-1-arkadiuszx.kusztal@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230419195109.1659341-1-arkadiuszx.kusztal@intel.com", "date": "2023-04-19T19:51:08", "name": "[1/2] crypto/qat: add hash mode 2", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "eb933637cb5ad856bd53b1f91cc401dfb46a1692", "submitter": { "id": 452, "url": "http://patches.dpdk.org/api/people/452/?format=api", "name": "Arkadiusz Kusztal", "email": "arkadiuszx.kusztal@intel.com" }, "delegate": { "id": 6690, "url": "http://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230419195109.1659341-1-arkadiuszx.kusztal@intel.com/mbox/", "series": [ { "id": 27779, "url": "http://patches.dpdk.org/api/series/27779/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=27779", "date": "2023-04-19T19:51:08", "name": "[1/2] crypto/qat: add hash mode 2", "version": 1, "mbox": "http://patches.dpdk.org/series/27779/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/126265/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/126265/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 63A544298C;\n\tWed, 19 Apr 2023 21:51:17 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1C15040A79;\n\tWed, 19 Apr 2023 21:51:17 +0200 (CEST)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id BCA9E4021F\n for <dev@dpdk.org>; Wed, 19 Apr 2023 21:51:15 +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 19 Apr 2023 12:51:14 -0700", "from silpixa00401012.ir.intel.com ([10.243.22.82])\n by fmsmga006.fm.intel.com with ESMTP; 19 Apr 2023 12:51:13 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1681933875; x=1713469875;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=FABjBY4PPA14XaMTrSZXRL3+X/1YSZ3Xm6cqyXA3ddE=;\n b=j8YQVO7RFnK71cTegFlV/usQJ37oXml4e7VO76reZ2hh096bHNLcHG5J\n Lvv4C5vUKjWE6aM1dTtChDawVoHk4JqpA3Zegu6o05XQ7hXCFgxcumaM4\n wNV0yrD7s+4A//h2+COVUbMHy5MZ8OihTsVhN4lR68XTRtPnj2P8idF+c\n 1DF1KEChs65B8vdArLjjqNdzScsEV7pL3LBpf6Ga/aAKe4kwDZgCTs5/a\n f+9ftE4YyZoD9+jOHR7GN+9sjq4Vl8pi/9TavLM2T+5KP45XeVPmpeOo8\n l2wfP6WsX69uyXw9ieWV3qTxKF813C9Hxc0Cj10VfQt+MJV53FGfst/Cc A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10685\"; a=\"410779929\"", "E=Sophos;i=\"5.99,210,1677571200\"; d=\"scan'208\";a=\"410779929\"", "E=McAfee;i=\"6600,9927,10685\"; a=\"937791495\"", "E=Sophos;i=\"5.99,210,1677571200\"; d=\"scan'208\";a=\"937791495\"" ], "X-ExtLoop1": "1", "From": "Arek Kusztal <arkadiuszx.kusztal@intel.com>", "To": "dev@dpdk.org", "Cc": "gakhil@marvell.com, kai.ji@intel.com, ciara.power@intel.com,\n Arek Kusztal <arkadiuszx.kusztal@intel.com>", "Subject": "[PATCH 1/2] crypto/qat: add hash mode 2", "Date": "Wed, 19 Apr 2023 19:51:08 +0000", "Message-Id": "<20230419195109.1659341-1-arkadiuszx.kusztal@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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" }, "content": "This commit adds hash mode 2 to the Intel\nQuickAssist Technology symmetric crypto PMD.\n\nSigned-off-by: Arek Kusztal <arkadiuszx.kusztal@intel.com>\n---\n drivers/common/qat/qat_adf/icp_qat_fw_la.h | 10 ++++++++++\n drivers/crypto/qat/qat_sym_session.h | 2 ++\n 2 files changed, 12 insertions(+)", "diff": "diff --git a/drivers/common/qat/qat_adf/icp_qat_fw_la.h b/drivers/common/qat/qat_adf/icp_qat_fw_la.h\nindex c4901eb869..fe57d8e488 100644\n--- a/drivers/common/qat/qat_adf/icp_qat_fw_la.h\n+++ b/drivers/common/qat/qat_adf/icp_qat_fw_la.h\n@@ -80,6 +80,10 @@ struct icp_qat_fw_la_bulk_req {\n #define ICP_QAT_FW_LA_PARTIAL_END 2\n #define QAT_LA_PARTIAL_BITPOS 0\n #define QAT_LA_PARTIAL_MASK 0x3\n+#define QAT_FW_LA_MODE2_BITPOS 5\n+#define QAT_FW_LA_MODE2 1\n+#define QAT_FW_LA_NO_MODE2 0\n+#define QAT_FW_LA_MODE2_MASK 0x1\n #define ICP_QAT_FW_LA_FLAGS_BUILD(zuc_proto, gcm_iv_len, auth_rslt, proto, \\\n \tcmp_auth, ret_auth, update_state, \\\n \tciph_iv, ciphcfg, partial) \\\n@@ -187,6 +191,12 @@ struct icp_qat_fw_la_bulk_req {\n \tQAT_FIELD_SET(flags, val, QAT_LA_PARTIAL_BITPOS, \\\n \tQAT_LA_PARTIAL_MASK)\n \n+#define ICP_QAT_FW_HASH_FLAG_MODE2_SET(flags, val) \\\n+\tQAT_FIELD_SET(flags, \\\n+\t\tval, \\\n+\t\tQAT_FW_LA_MODE2_BITPOS, \\\n+\t\tQAT_FW_LA_MODE2_MASK)\n+\n struct icp_qat_fw_cipher_req_hdr_cd_pars {\n \tunion {\n \t\tstruct {\ndiff --git a/drivers/crypto/qat/qat_sym_session.h b/drivers/crypto/qat/qat_sym_session.h\nindex 6322d7e3bc..d487bca11f 100644\n--- a/drivers/crypto/qat/qat_sym_session.h\n+++ b/drivers/crypto/qat/qat_sym_session.h\n@@ -47,6 +47,7 @@\n \t\t\t\t\tICP_QAT_HW_CIPHER_DECRYPT)\n \n #define QAT_AES_CMAC_CONST_RB 0x87\n+#define QAT_PREFIX_TABLE_SZ\t128\n \n #define QAT_CRYPTO_SLICE_SPC\t1\n #define QAT_CRYPTO_SLICE_UCS\t2\n@@ -77,6 +78,7 @@ typedef int (*qat_sym_build_request_t)(void *in_op, struct qat_sym_session *ctx,\n struct qat_sym_cd {\n \tstruct icp_qat_hw_cipher_algo_blk cipher;\n \tstruct icp_qat_hw_auth_algo_blk hash;\n+\tuint8_t prefix_state[QAT_PREFIX_TABLE_SZ] __rte_cache_aligned;\n } __rte_packed __rte_cache_aligned;\n \n struct qat_sym_session {\n", "prefixes": [ "1/2" ] }{ "id": 126265, "url": "