Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/114698/?format=api
http://patches.dpdk.org/api/patches/114698/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220808080606.220-9-anoobj@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": "<20220808080606.220-9-anoobj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220808080606.220-9-anoobj@marvell.com", "date": "2022-08-08T08:05:56", "name": "[08/18] crypto/cnxk: fix endianness in anti-replay", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "a8fac6af23e600b5273854d825ede9f4863c4523", "submitter": { "id": 1205, "url": "http://patches.dpdk.org/api/people/1205/?format=api", "name": "Anoob Joseph", "email": "anoobj@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/20220808080606.220-9-anoobj@marvell.com/mbox/", "series": [ { "id": 24219, "url": "http://patches.dpdk.org/api/series/24219/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=24219", "date": "2022-08-08T08:05:48", "name": "Fixes and improvements in cnxk crypto PMDs", "version": 1, "mbox": "http://patches.dpdk.org/series/24219/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/114698/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/114698/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 4F09DA034C;\n\tMon, 8 Aug 2022 10:07:10 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 29D8442C3C;\n\tMon, 8 Aug 2022 10:06:32 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id B972342BF4\n for <dev@dpdk.org>; Mon, 8 Aug 2022 10:06:30 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 277N0ebX006022\n for <dev@dpdk.org>; Mon, 8 Aug 2022 01:06:30 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com (PPS) with ESMTPS id 3hsqtmmxeg-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Mon, 08 Aug 2022 01:06:29 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Mon, 8 Aug 2022 01:06:27 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Mon, 8 Aug 2022 01:06:27 -0700", "from BG-LT92004.corp.innovium.com (unknown [10.28.160.62])\n by maili.marvell.com (Postfix) with ESMTP id 543933F7043;\n Mon, 8 Aug 2022 01:06:25 -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=Lt5En0iNnf3iEtTDhzPIHZ6WpGSX/nQJAm2ATQ3LWuM=;\n b=HewCZGZOBtY5yi0MTNYOf9KLxnKlohvFOsu5PFqvL+M/9fZTXk7TgZyiFdgAPeqO33hk\n SpyJBM8zOQ9rtJ+Cna/u0mwQCxB2LC2IgfdAbRdYrk6eQCHm/vv9vAZvCPTJKgZeLJy7\n rgWz80TYPnDH9nvM17e4gGRFTujl6oTSl0vcK3niq5WknKjSc7hx6IIZ2UNLzsf9tQvV\n pvMhlbR3bFyggohi5VNDUlxiCY5BoM545ViqR4mDfKIHAwdr/h7ajkZ1BySNBK6aq0wK\n rBVwH1fxmgVpl5WEdd/L6fF/7CiIXQx7DInZfv7h6aNr2hyFrpwf9KNAoCOEqyXbZixu Zw==", "From": "Anoob Joseph <anoobj@marvell.com>", "To": "Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>", "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Archana Muniganti\n <marchana@marvell.com>, <dev@dpdk.org>", "Subject": "[PATCH 08/18] crypto/cnxk: fix endianness in anti-replay", "Date": "Mon, 8 Aug 2022 13:35:56 +0530", "Message-ID": "<20220808080606.220-9-anoobj@marvell.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20220808080606.220-1-anoobj@marvell.com>", "References": "<20220808080606.220-1-anoobj@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "yhXJVxh8B0i2tkyweTZAi0AfgrOXfUhi", "X-Proofpoint-ORIG-GUID": "yhXJVxh8B0i2tkyweTZAi0AfgrOXfUhi", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.883,Hydra:6.0.517,FMLib:17.11.122.1\n definitions=2022-08-08_05,2022-08-05_01,2022-06-22_01", "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": "From: Tejasree Kondoj <ktejasree@marvell.com>\n\nFixing anti-replay endianness issue in lookaside IPsec.\n\nFixes: c1eac1b966c2 (\"crypto/cnxk: add anti-replay as per new firmware\")\nCc: ktejasree@marvell.com\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n drivers/crypto/cnxk/cn9k_cryptodev_ops.c | 21 +++++++++++----------\n 1 file changed, 11 insertions(+), 10 deletions(-)", "diff": "diff --git a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c b/drivers/crypto/cnxk/cn9k_cryptodev_ops.c\nindex 3d69723809..b753c1cb4b 100644\n--- a/drivers/crypto/cnxk/cn9k_cryptodev_ops.c\n+++ b/drivers/crypto/cnxk/cn9k_cryptodev_ops.c\n@@ -487,22 +487,19 @@ cn9k_cpt_crypto_adapter_enqueue(uintptr_t base, struct rte_crypto_op *op)\n }\n \n static inline int\n-ipsec_antireplay_check(struct cn9k_ipsec_sa *sa, uint32_t win_sz,\n-\t\t struct roc_ie_on_inb_hdr *data)\n+ipsec_antireplay_check(struct cn9k_ipsec_sa *sa, uint32_t win_sz, struct roc_ie_on_inb_hdr *data)\n {\n+\tuint32_t esn_low, esn_hi, seql, seqh = 0;\n \tstruct roc_ie_on_common_sa *common_sa;\n \tstruct roc_ie_on_inb_sa *in_sa;\n-\tstruct roc_ie_on_sa_ctl *ctl;\n-\tuint32_t seql, seqh = 0;\n-\tuint64_t seq;\n+\tuint64_t seq, seq_in_sa;\n \tuint8_t esn;\n \tint ret;\n \n \tin_sa = &sa->in_sa;\n \tcommon_sa = &in_sa->common_sa;\n-\tctl = &common_sa->ctl;\n \n-\tesn = ctl->esn_en;\n+\tesn = common_sa->ctl.esn_en;\n \tseql = rte_be_to_cpu_32(data->seql);\n \n \tif (!esn) {\n@@ -517,9 +514,13 @@ ipsec_antireplay_check(struct cn9k_ipsec_sa *sa, uint32_t win_sz,\n \n \tret = cnxk_on_anti_replay_check(seq, &sa->ar, win_sz);\n \tif (esn && !ret) {\n-\t\tcommon_sa = &sa->in_sa.common_sa;\n-\t\tif (seq > common_sa->seq_t.u64)\n-\t\t\tcommon_sa->seq_t.u64 = seq;\n+\t\tesn_low = rte_be_to_cpu_32(common_sa->seq_t.tl);\n+\t\tesn_hi = rte_be_to_cpu_32(common_sa->seq_t.th);\n+\t\tseq_in_sa = ((uint64_t)esn_hi << 32) | esn_low;\n+\t\tif (seq > seq_in_sa) {\n+\t\t\tcommon_sa->seq_t.tl = rte_cpu_to_be_32(seql);\n+\t\t\tcommon_sa->seq_t.th = rte_cpu_to_be_32(seqh);\n+\t\t}\n \t}\n \n \treturn ret;\n", "prefixes": [ "08/18" ] }{ "id": 114698, "url": "