Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/97814/?format=api
http://patches.dpdk.org/api/patches/97814/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210902134254.28373-6-marchana@marvell.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": "<20210902134254.28373-6-marchana@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210902134254.28373-6-marchana@marvell.com", "date": "2021-09-02T13:42:51", "name": "[5/8] crypto/cnxk: add cn9k IPsec inbound session create function", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "05d1c2c823add830eb79dbd210cc6e8c89093b63", "submitter": { "id": 1515, "url": "http://patches.dpdk.org/api/people/1515/?format=api", "name": "Archana Muniganti", "email": "marchana@marvell.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/20210902134254.28373-6-marchana@marvell.com/mbox/", "series": [ { "id": 18630, "url": "http://patches.dpdk.org/api/series/18630/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=18630", "date": "2021-09-02T13:42:46", "name": "add cn9k lookaside IPsec support", "version": 1, "mbox": "http://patches.dpdk.org/series/18630/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/97814/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/97814/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 E136BA0C4C;\n\tThu, 2 Sep 2021 15:44:15 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 606C2406A3;\n\tThu, 2 Sep 2021 15:44:09 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 4136A40041\n for <dev@dpdk.org>; Thu, 2 Sep 2021 15:44:08 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with SMTP id 1825LHm0028342\n for <dev@dpdk.org>; Thu, 2 Sep 2021 06:44:07 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com with ESMTP id 3atrd2hs0u-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 02 Sep 2021 06:44:07 -0700", "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server (TLS) id 15.0.1497.18;\n Thu, 2 Sep 2021 06:44:06 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Thu, 2 Sep 2021 06:44:06 -0700", "from hyd1409.caveonetworks.com.com (unknown [10.29.45.15])\n by maili.marvell.com (Postfix) with ESMTP id 911D23F7065;\n Thu, 2 Sep 2021 06:44:03 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=J94Py4agDQfq3Bdn271Ljnmz+xrBCSTYt2PAylEg6Yg=;\n b=Ev9L4YhH4Lsnl6z/OljY0SfxTKMiPwJ0ipBdS8EKR6ZdHB1k6ra+eDffgv6gI7TmAEYF\n wz+OTqbviVoG1Xk+bOuMJiGB3UIoiqWa1hZn4qca6eeIBHfrMzI6HHlr8EzTOzHVgefY\n x01T7u0P1SIWJlHj+6BWJWB5kV58skLcRemzIKsbnFD4E5gC2Y6DbPMwixXfx3rcSKo0\n dnYFTRn6clIjjRwFoiTbVcPb/JyexYPFXmRhYbpB6RtKGQuTJfzj+NdnhQSCtqYzqOB5\n hcWl1sx47fTY3lFXhYPMJVCmWxU/WpaPi3xwobNtPkctrpY/3UrX2HtoKUvzTNUTMN9C fw==", "From": "Archana Muniganti <marchana@marvell.com>", "To": "<gakhil@marvell.com>", "CC": "Archana Muniganti <marchana@marvell.com>, <ktejasree@marvell.com>,\n <adwivedi@marvell.com>, <anoobj@marvell.com>, <jerinj@marvell.com>,\n <dev@dpdk.org>, Vamsi Attunuru <vattunuru@marvell.com>", "Date": "Thu, 2 Sep 2021 19:12:51 +0530", "Message-ID": "<20210902134254.28373-6-marchana@marvell.com>", "X-Mailer": "git-send-email 2.22.0", "In-Reply-To": "<20210902134254.28373-1-marchana@marvell.com>", "References": "<20210902134254.28373-1-marchana@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "-QIKmMl9AKnOgrANIR1_d8Iphasmz-gE", "X-Proofpoint-ORIG-GUID": "-QIKmMl9AKnOgrANIR1_d8Iphasmz-gE", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.182.1,Aquarius:18.0.790,Hydra:6.0.391,FMLib:17.0.607.475\n definitions=2021-09-02_04,2021-09-02_02,2020-04-07_01", "Subject": "[dpdk-dev] [PATCH 5/8] crypto/cnxk: add cn9k IPsec inbound session\n create function", "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": "Adding logic for IPsec inbound session creation.\n\nSigned-off-by: Ankur Dwivedi <adwivedi@marvell.com>\nSigned-off-by: Archana Muniganti <marchana@marvell.com>\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\nSigned-off-by: Vamsi Attunuru <vattunuru@marvell.com>\n---\n drivers/crypto/cnxk/cn9k_ipsec.c | 64 +++++++++++++++++++++++++++++---\n 1 file changed, 59 insertions(+), 5 deletions(-)", "diff": "diff --git a/drivers/crypto/cnxk/cn9k_ipsec.c b/drivers/crypto/cnxk/cn9k_ipsec.c\nindex 52fbc5e350..76d81e83a5 100644\n--- a/drivers/crypto/cnxk/cn9k_ipsec.c\n+++ b/drivers/crypto/cnxk/cn9k_ipsec.c\n@@ -422,12 +422,66 @@ cn9k_ipsec_inb_sa_create(struct cnxk_cpt_qp *qp,\n \t\t\t struct rte_crypto_sym_xform *crypto_xform,\n \t\t\t struct rte_security_session *sec_sess)\n {\n-\tRTE_SET_USED(qp);\n-\tRTE_SET_USED(ipsec);\n-\tRTE_SET_USED(crypto_xform);\n-\tRTE_SET_USED(sec_sess);\n+\tstruct rte_crypto_sym_xform *auth_xform = crypto_xform;\n+\tstruct cnxk_cpt_inst_tmpl *inst_tmpl;\n+\tstruct roc_ie_on_inb_sa *in_sa;\n+\tstruct cn9k_sec_session *sess;\n+\tstruct cn9k_ipsec_sa *sa;\n+\tconst uint8_t *auth_key;\n+\tunion cpt_inst_w4 w4;\n+\tunion cpt_inst_w7 w7;\n+\tint auth_key_len = 0;\n+\tsize_t ctx_len = 0;\n+\tint ret;\n \n-\treturn 0;\n+\tsess = get_sec_session_private_data(sec_sess);\n+\tsa = &sess->sa;\n+\tin_sa = &sa->in_sa;\n+\n+\tmemset(sa, 0, sizeof(struct cn9k_ipsec_sa));\n+\n+\tsa->dir = RTE_SECURITY_IPSEC_SA_DIR_INGRESS;\n+\n+\tret = fill_ipsec_common_sa(ipsec, crypto_xform, &in_sa->common_sa);\n+\tif (ret)\n+\t\treturn ret;\n+\n+\tif (crypto_xform->type == RTE_CRYPTO_SYM_XFORM_AEAD) {\n+\t\tctx_len = offsetof(struct roc_ie_on_inb_sa,\n+\t\t\t\t sha1_or_gcm.hmac_key[0]);\n+\t} else {\n+\t\tauth_key = auth_xform->auth.key.data;\n+\t\tauth_key_len = auth_xform->auth.key.length;\n+\n+\t\tif (auth_xform->auth.algo == RTE_CRYPTO_AUTH_SHA1_HMAC) {\n+\t\t\tmemcpy(in_sa->sha1_or_gcm.hmac_key, auth_key,\n+\t\t\t auth_key_len);\n+\t\t\tctx_len = offsetof(struct roc_ie_on_inb_sa,\n+\t\t\t\t\t sha1_or_gcm.selector);\n+\t\t} else if (auth_xform->auth.algo ==\n+\t\t\t RTE_CRYPTO_AUTH_SHA256_HMAC) {\n+\t\t\tmemcpy(in_sa->sha2.hmac_key, auth_key, auth_key_len);\n+\t\t\tctx_len = offsetof(struct roc_ie_on_inb_sa,\n+\t\t\t\t\t sha2.selector);\n+\t\t}\n+\t}\n+\n+\tinst_tmpl = &sa->inst;\n+\n+\tw4.u64 = 0;\n+\tw4.s.opcode_major = ROC_IE_ON_MAJOR_OP_PROCESS_INBOUND_IPSEC;\n+\tw4.s.opcode_minor = ctx_len >> 3;\n+\tinst_tmpl->w4 = w4.u64;\n+\n+\tw7.u64 = 0;\n+\tw7.s.egrp = ROC_CPT_DFLT_ENG_GRP_SE;\n+\tw7.s.cptr = rte_mempool_virt2iova(in_sa);\n+\tinst_tmpl->w7 = w7.u64;\n+\n+\tret = cn9k_cpt_enq_sa_write(\n+\t\tsa, qp, ROC_IE_ON_MAJOR_OP_WRITE_IPSEC_INBOUND, ctx_len);\n+\n+\treturn ret;\n }\n \n static inline int\n", "prefixes": [ "5/8" ] }{ "id": 97814, "url": "