Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/98883/?format=api
http://patches.dpdk.org/api/patches/98883/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210915061103.28375-1-vvelumuri@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": "<20210915061103.28375-1-vvelumuri@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20210915061103.28375-1-vvelumuri@marvell.com", "date": "2021-09-15T06:11:01", "name": "[v1,1/3] common/cnxk: set key length setting for PDCP algos", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "da4b2af1eab2fd74693d8e1bdb1e885dbce69324", "submitter": { "id": 2363, "url": "http://patches.dpdk.org/api/people/2363/?format=api", "name": "Vidya Sagar Velumuri", "email": "vvelumuri@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/20210915061103.28375-1-vvelumuri@marvell.com/mbox/", "series": [ { "id": 18916, "url": "http://patches.dpdk.org/api/series/18916/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=18916", "date": "2021-09-15T06:11:01", "name": "[v1,1/3] common/cnxk: set key length setting for PDCP algos", "version": 1, "mbox": "http://patches.dpdk.org/series/18916/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/98883/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/98883/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 33467A0C43;\n\tWed, 15 Sep 2021 08:11:24 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E9A924003F;\n\tWed, 15 Sep 2021 08:11:23 +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 7B5F84003C\n for <dev@dpdk.org>; Wed, 15 Sep 2021 08:11:22 +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\n 18EIsXIQ015712;\n Tue, 14 Sep 2021 23:11:21 -0700", "from dc5-exch02.marvell.com ([199.233.59.182])\n by mx0a-0016f401.pphosted.com with ESMTP id 3b31e81wmv-3\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 14 Sep 2021 23:11:21 -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 Tue, 14 Sep 2021 23:11:19 -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; Tue, 14 Sep 2021 23:11:19 -0700", "from vvelumuri_asim.marvell.com (unknown [10.29.53.48])\n by maili.marvell.com (Postfix) with ESMTP id E1DDA3F7061;\n Tue, 14 Sep 2021 23:11:16 -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 : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=p2EPTeBsOeFhRWy7hOSP6V5eF4Rec4g4Ctly0Z8k1+E=;\n b=U10dmNpuacd+O11bw8mMMIzqUn2GCrHS7QrHgRb6Jqmkp4sRFcfmt8/Xr5pg612Btqwj\n 1AR7ThL50kyeQ5zIv49DEklMa6gGickBZa70dqA/cS+UghfYSyA+QG2jNCx8MXS2J6nQ\n EekrmvLHwVl6/6t/O3i9VpTCexW2cD1QH0ANlZ24mi/xerapoOOW65czPWv4oxy8hl7g\n XUgV+4C0RBLIE6oyfosHQEFJ7TbE6p8EwzfD7muq5dA1YhLO19SlDnBQMDj1GdksZSWO\n np96L7OCzO3BO/5LC2IyA8kM2VWRPQJTf2JMbxzPLP/Zf41hUicEihZSOCWkY27GaUku IQ==", "From": "Vidya Sagar Velumuri <vvelumuri@marvell.com>", "To": "<adwivedi@marvell.com>, <anoobj@marvell.com>, <ktejasree@marvell.com>,\n <ndabilpuram@marvell.com>, <kirankumark@marvell.com>,\n <skori@marvell.com>, <skoteshwar@marvell.com>, <gakhil@marvell.com>,\n <declan.doherty@intel.com>", "CC": "<dev@dpdk.org>", "Date": "Wed, 15 Sep 2021 06:11:01 +0000", "Message-ID": "<20210915061103.28375-1-vvelumuri@marvell.com>", "X-Mailer": "git-send-email 2.31.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "Vye4hKk6-KvAHvpBRtEFKcTmM4_pYJG2", "X-Proofpoint-ORIG-GUID": "Vye4hKk6-KvAHvpBRtEFKcTmM4_pYJG2", "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-15_01,2021-09-14_01,2020-04-07_01", "Subject": "[dpdk-dev] [PATCH v1 1/3] common/cnxk: set key length setting for\n PDCP algos", "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": "Set proper bits in the context based on key length for PDCP\n\nSigned-off-by: Vidya Sagar Velumuri <vvelumuri@marvell.com>", "diff": "diff --git a/drivers/common/cnxk/roc_se.c b/drivers/common/cnxk/roc_se.c\nindex 03fbc5f2f7..4edbc8e547 100644\n--- a/drivers/common/cnxk/roc_se.c\n+++ b/drivers/common/cnxk/roc_se.c\n@@ -160,6 +160,13 @@ cpt_pdcp_mac_len_set(struct roc_se_zuc_snow3g_ctx *zs_ctx, uint16_t mac_len)\n {\n \troc_se_pdcp_mac_len_type mac_type = 0;\n \n+\tif (roc_model_is_cn9k()) {\n+\t\tif (mac_len != 4) {\n+\t\t\tplt_err(\"Only mac len 4 is supported on cn9k\");\n+\t\t\treturn -ENOTSUP;\n+\t\t}\n+\t}\n+\n \tswitch (mac_len) {\n \tcase 4:\n \t\tmac_type = ROC_SE_PDCP_MAC_LEN_32_BIT;\n@@ -230,6 +237,9 @@ roc_se_auth_key_set(struct roc_se_ctx *se_ctx, roc_se_auth_type type,\n \t\tcase ROC_SE_ZUC_EIA3:\n \t\t\tzs_ctx->zuc.otk_ctx.w0.s.alg_type =\n \t\t\t\tROC_SE_PDCP_ALG_TYPE_ZUC;\n+\t\t\tret = cpt_pdcp_key_type_set(zs_ctx, key_len);\n+\t\t\tif (ret)\n+\t\t\t\treturn ret;\n \t\t\tret = cpt_pdcp_mac_len_set(zs_ctx, mac_len);\n \t\t\tif (ret)\n \t\t\t\treturn ret;\n", "prefixes": [ "v1", "1/3" ] }{ "id": 98883, "url": "