get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/108757/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 108757,
    "url": "http://patchwork.dpdk.org/api/patches/108757/?format=api",
    "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220317085558.2575554-1-g.singh@nxp.com/",
    "project": {
        "id": 1,
        "url": "http://patchwork.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": "<20220317085558.2575554-1-g.singh@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20220317085558.2575554-1-g.singh@nxp.com",
    "date": "2022-03-17T08:55:57",
    "name": "[1/2] common/dpaax: remove dead code",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "883c2bbc4aa03701e70add8d070991c0e753b7be",
    "submitter": {
        "id": 1068,
        "url": "http://patchwork.dpdk.org/api/people/1068/?format=api",
        "name": "Gagandeep Singh",
        "email": "g.singh@nxp.com"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patchwork.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220317085558.2575554-1-g.singh@nxp.com/mbox/",
    "series": [
        {
            "id": 22172,
            "url": "http://patchwork.dpdk.org/api/series/22172/?format=api",
            "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=22172",
            "date": "2022-03-17T08:55:57",
            "name": "[1/2] common/dpaax: remove dead code",
            "version": 1,
            "mbox": "http://patchwork.dpdk.org/series/22172/mbox/"
        }
    ],
    "comments": "http://patchwork.dpdk.org/api/patches/108757/comments/",
    "check": "success",
    "checks": "http://patchwork.dpdk.org/api/patches/108757/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 03518A0093;\n\tThu, 17 Mar 2022 09:56:26 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B692A4067B;\n\tThu, 17 Mar 2022 09:56:25 +0100 (CET)",
            "from EUR05-AM6-obe.outbound.protection.outlook.com\n (mail-am6eur05on2064.outbound.protection.outlook.com [40.107.22.64])\n by mails.dpdk.org (Postfix) with ESMTP id 8CD2B40151;\n Thu, 17 Mar 2022 09:56:24 +0100 (CET)",
            "from AS8PR04MB8198.eurprd04.prod.outlook.com (2603:10a6:20b:3b0::14)\n by AM0PR04MB5458.eurprd04.prod.outlook.com (2603:10a6:208:110::25)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.5081.17; Thu, 17 Mar\n 2022 08:56:22 +0000",
            "from AS8PR04MB8198.eurprd04.prod.outlook.com\n ([fe80::c99e:702:9368:f27a]) by AS8PR04MB8198.eurprd04.prod.outlook.com\n ([fe80::c99e:702:9368:f27a%2]) with mapi id 15.20.5081.017; Thu, 17 Mar 2022\n 08:56:22 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=bIqQfSiDJCYa1vvS4GihZq39SLC3XXWuTpcVNccPLlWSgtWXTTnriaxEiNGiFGChm/t21dHkI6yMPOVXMbTrmcLsJJgFSkWq6t6hZQe9HIp+86uUyZ+J0QzRZRGAw0BDjE0VelPhsqA2bM8OwGyublyubx579j8CaGPYBi4PZlX+6BIYoiHrqhTaBmazSuw+1YLO7C185q6aD5vPsJldzUeT1pLZnYNp3UBKL44p0mDIv6FQH/XKNehgcGdvSxuZXIj7XtMGNn/RhcZcycmGpD4cqXz41Ao0vCIh4VmuqCJVTY55HeC7QK22AO7Z2mNvg2Z/dBPz3dAv6Bbuyn6Spg==",
        "ARC-Message-Signature": "i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com;\n s=arcselector9901;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1;\n bh=TA3izKzPZPog1BrJD6+1W7vMLOepTKg6lbSXU30HCAo=;\n b=E9179BM7fNnv0A9Q6ur+Bm7pLAKY1XU03zruZkobQKM10QoFjhozMbqwk0AdjgfVX4b1Jj53WTVbilftVUgyCh3Z1gnzfSADvn9XAm/2pLU1GMm5+K5a4pspMmTY0a8cOyayrE59Omc7UQX4a22b8QRhHSa/yZKOH214tMxQPngMGS7GpNZDgqdK4AoxGsq5pvgZrcvM+w10M3aDVCKFFRx1jZLVy+S/dn+3tjwO20tJ6fJNcGH7nAkIWK/0mN4dzWw+k8g6+6rDFRshPCXaV8btKE9rCR5ZySumnStW8yD1pQBzvvqnVjjbzkUmqpU/7fjdx8nOWuNGg5GoWDqBlg==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass\n smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass\n header.d=nxp.com; arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=TA3izKzPZPog1BrJD6+1W7vMLOepTKg6lbSXU30HCAo=;\n b=PGiS9CaJtR/CLzI/ARuLsM9MdNCpenEfbv8e/HGqHCYCeMXCCPa8sL8iumtFEGDwbRMsVi//Jl22x2NClQC4/3Zm9wGroMVngDque08cvtT9Rv2QGK0INuTEWTjjb7uPy9N/vp/l2RxFkkciBRkd4jMwYOFMNn5jPCavwwssmp4=",
        "Authentication-Results": "dkim=none (message not signed)\n header.d=none;dmarc=none action=none header.from=nxp.com;",
        "From": "Gagandeep Singh <g.singh@nxp.com>",
        "To": "gakhil@marvell.com,\n\tdev@dpdk.org",
        "Cc": "Gagandeep Singh <g.singh@nxp.com>,\n\tstable@dpdk.org",
        "Subject": "[PATCH 1/2] common/dpaax: remove dead code",
        "Date": "Thu, 17 Mar 2022 14:25:57 +0530",
        "Message-Id": "<20220317085558.2575554-1-g.singh@nxp.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-ClientProxiedBy": "SI2PR04CA0004.apcprd04.prod.outlook.com\n (2603:1096:4:197::22) To AS8PR04MB8198.eurprd04.prod.outlook.com\n (2603:10a6:20b:3b0::14)",
        "MIME-Version": "1.0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "d17a1297-8910-40bd-584d-08da07f40239",
        "X-MS-TrafficTypeDiagnostic": "AM0PR04MB5458:EE_",
        "X-Microsoft-Antispam-PRVS": "\n <AM0PR04MB54584A93B5DB3601E9A8E8A3E1129@AM0PR04MB5458.eurprd04.prod.outlook.com>",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n 4jMNoyatWV0z9GsShY7X0XAkEqC07PBtk+LW3cOdkS4sdlcL4xKc7nbrVw3x38Gdb8yOIQqi0aI19OZlltop1uKqtr6vI9GXBfj0wzqe1nx4s7ZV6IKAPr0rKIxgQk60ZVGz6NMO5tLnRGhdS1sBBGwJPVBiVPW09+NwWFwL73Y5Zgdbzh40ab82/Awl0/QdHB/mCRD7T2phMTcU6Oroy7sAVpMm9JYfwwHG/+eHWJrYrY/WINswRWAGMjuffdOAxNALC9v0DpDNcks8tzp3VkxosuTDAbZ0QGrXI+mu4CwhZkCNxXJKgU8bogsllS3tM7urhO3sDLnRnloM+5H6JCPefuoyyvT9/BQHq0daxaLsWIAiXHGl4zapAjzDIZh9pqg6LNJsPkSvmVCcAmO9GVILjQMfRSE9pj0pbUKlq0DBHS2TDdH7fP0c27ZaC7Ro48Dl3nou4R48Bk5D2bbYvvB+dMXp580KKaIPhqcFCwqjsWqKXJX9aw7NmRM0YR1WrlYSj/TQK8LXzmEaHFcEWG9k4SuuK39MlfOAn62gM8QeO6V2JKxmfz4GJ2M778TqfwBNXgpNrAuTploLlYmh/T+hv55SrcCkVnRE9luW3UQe7pucV0oE7QkxgXKcVysm/yMtzvq95vDx2sFV2F6uNUHvq8VxOJPv61JOyxo5p0GH8WEOTBYEZ3V6h0yXceNh9K4zE0Bs0TqdUFQGa3oCZA==",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:AS8PR04MB8198.eurprd04.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(13230001)(4636009)(366004)(8936002)(5660300002)(52116002)(8676002)(4326008)(186003)(1076003)(2616005)(2906002)(26005)(316002)(66946007)(83380400001)(66476007)(66556008)(55236004)(6512007)(6666004)(6506007)(38100700002)(36756003)(38350700002)(6486002)(86362001)(508600001);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n XGQhVbUuDylV5pXihZIDblPCqrn3EW2jM3iLnv2AWJzGzf0YF1uEAG/gmCi55mRjWao1BWaeNVticPMKpC9ItM7D0HfK+AZHdp/zNpNCUGxC2deGJw3Kg9wcWuqmEsC55gg2IeZPmIlxkLZidFzB8d464tkKsIvq8CpzukjJZyl97vFh5r0frHCXEx28PF2v+ZLOqxHLxZ7kj8pgx9j1gx3i1gXe2zhY8bCJ0cdRtw7B0Ucv2K2eATvfUghs6py8IFJ4mK+NdMYxuoHjqGYy0sOXRJEv5GFAf1n5GSjxUW9iP3uqeTRpNp37j6nl8qmcCE9fxk5BYBvsGOFh294Dfh6tyXHt34iSdQbS5VDDpASFR1inv0+hDLdviIt7VpL5EZ9lmbHDEgIuYrPu5N1B+XFQVgsFYL9xg3h/p26fTad/Q8KyeDC6LdRhPQ88Eq+YiIZlfL5FwnVIcvw2LgHkDp+2zlXyYQVJubAehpRaHXSrLn/ti+JR4zZGpPSaAKcwu12L+beqVaZrAQZFp6o9ZSKtJlO649b6u8+5mE4HYQJeE4VcBaMxaHZuDuRErdSCqpdYBUMWrcNz9nQ8v1VppvAUDIOAcpgjqVAvGCEAXXAMJ+mW6XjHzq+G3CiAsdCwFSkfmbGWrLph7l89hpz4Fkoc0rPdP16dicFFcqv7Eled2pHmxhze2sRZtEXnndotGLlYSguG2gV6T963mQ1HMZAB/1nE/HsDhg/nxhql3JePRmso6ChT9a/p9eC0E2c70+JlUukwRGyGFilwR/Go0V2ylsVkQyNdk8nXq2gG4W55zFFXMQ3n0k/rgAADDQGm+ZyJBUmIWMAmrC1Hpwd8zb2Eh3uZzpO2YFCNCEXEXfa7u9B8s6fom04ga3eDJELQrRp8gn1Uy6KReKONexqZpy8kbBoglvsdR+jk5bjbMpUjpl1kLCyLOSNvCC6vSVkvwwpJ2NndjgzQ71rpITQVx1X3vzt1cVkbAm+0voDI/FdLpOfdNcVIRM3thGYyf5XNPYjfa8l6uefKodHG5DunewQQhdkWSYodwkklALbH+fgSHcOU2UtwCWcEijiXeV2tbLUWu1Cxo6ptN3hWqyO4VE+JOyiM2/USm7012nN+9E/ltNYkiNv7yq7UMkCWOV+4mMo0UvZrWlWiZ5AzNR9NCnipUg+7vxlW+sfx8Wd70YClHm6SoW499uxdug/oaOAHQtaOBgtUgd97h2Jh08Kb2lCOaMxERt5D8ExhkLAheQXYcqbeG8nzfB/h4GlVSGpPf6jWmziuPO9UDwC7dqXd/grfYNmwdKaHijWIET6v4wBT7hZX7nwi4gGmdgxiqD0ZoXRPixRyX3YUVA2/vplMpe+I/TPuyoOgNplGLVnzbKjjiY4+bRi6ISwoGnajcDIVYMGS51hOBKJwM+4TlNUEGFLVaUvPpc1pw45sU1opVxFoVmLz60cZtbqjivkhLIsl",
        "X-OriginatorOrg": "nxp.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n d17a1297-8910-40bd-584d-08da07f40239",
        "X-MS-Exchange-CrossTenant-AuthSource": "AS8PR04MB8198.eurprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "17 Mar 2022 08:56:22.2697 (UTC)",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635",
        "X-MS-Exchange-CrossTenant-MailboxType": "HOSTED",
        "X-MS-Exchange-CrossTenant-UserPrincipalName": "\n xfIlWIGP/5Xmx0DtDkB/OT/9cxKjbRdP81r5vCHTY3eavV5oxrGu/TRIJqgSVy1w",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "AM0PR04MB5458",
        "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 patch remove structural and logical dead code from\ncaamflib.\n\ncoverity issues: 375251 375258 375261 375267 375269 375285 373161\n\t\t 375249 375257\n\nFixes: 6127fff842a7 (\"common/dpaax: remove outdated caamflib code\")\nFixes: 81eb760d2207 (\"common/dpaax/caamflib: remove some inline keys\")\nCc: stable@dpdk.org\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\n---\n drivers/common/dpaax/caamflib/desc/pdcp.h | 196 +++++-----------------\n drivers/common/dpaax/caamflib/desc/sdap.h |  44 +----\n 2 files changed, 45 insertions(+), 195 deletions(-)",
    "diff": "diff --git a/drivers/common/dpaax/caamflib/desc/pdcp.h b/drivers/common/dpaax/caamflib/desc/pdcp.h\nindex 2fe56c53c6..46153b9c29 100644\n--- a/drivers/common/dpaax/caamflib/desc/pdcp.h\n+++ b/drivers/common/dpaax/caamflib/desc/pdcp.h\n@@ -1,6 +1,6 @@\n /* SPDX-License-Identifier: BSD-3-Clause or GPL-2.0+\n  * Copyright 2008-2013 Freescale Semiconductor, Inc.\n- * Copyright 2019-2021 NXP\n+ * Copyright 2019-2022 NXP\n  */\n \n #ifndef __DESC_PDCP_H__\n@@ -776,21 +776,11 @@ pdcp_insert_uplane_snow_snow_op(struct program *p,\n \n \t\treturn 0;\n \t}\n-\t/* Non-proto is supported only for 5bit cplane and 18bit uplane */\n-\tswitch (sn_size) {\n-\tcase PDCP_SN_SIZE_18:\n-\t\toffset = 5;\n-\t\tlength = 3;\n-\t\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n-\t\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_5:\n-\tcase PDCP_SN_SIZE_7:\n-\tcase PDCP_SN_SIZE_12:\n-\tcase PDCP_SN_SIZE_15:\n-\t\tpr_err(\"Invalid sn_size for %s\\n\", __func__);\n-\t\treturn -ENOTSUP;\n-\t}\n+\t/* sn_size is 18 */\n+\toffset = 5;\n+\tlength = 3;\n+\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n+\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n \n \tif (dir == OP_TYPE_ENCAP_PROTOCOL)\n \t\tMATHB(p, SEQINSZ, SUB, length, VSEQINSZ, 4, IMMED2);\n@@ -901,21 +891,11 @@ pdcp_insert_uplane_zuc_zuc_op(struct program *p,\n \n \t\treturn 0;\n \t}\n-\t/* Non-proto is supported only for 5bit cplane and 18bit uplane */\n-\tswitch (sn_size) {\n-\tcase PDCP_SN_SIZE_18:\n-\t\toffset = 5;\n-\t\tlength = 3;\n-\t\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n-\t\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_5:\n-\tcase PDCP_SN_SIZE_7:\n-\tcase PDCP_SN_SIZE_12:\n-\tcase PDCP_SN_SIZE_15:\n-\t\tpr_err(\"Invalid sn_size for %s\\n\", __func__);\n-\t\treturn -ENOTSUP;\n-\t}\n+\t/* sn_size is 18 */\n+\toffset = 5;\n+\tlength = 3;\n+\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n+\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n \n \tSEQLOAD(p, MATH0, offset, length, 0);\n \tJUMP(p, 1, LOCAL_JUMP, ALL_TRUE, CALM);\n@@ -1190,27 +1170,11 @@ pdcp_insert_cplane_snow_aes_op(struct program *p,\n \n \t\treturn 0;\n \t}\n-\t/* Non-proto is supported only for 5bit cplane and 18bit uplane */\n-\tswitch (sn_size) {\n-\tcase PDCP_SN_SIZE_5:\n-\t\toffset = 7;\n-\t\tlength = 1;\n-\t\tsn_mask = (swap == false) ? PDCP_C_PLANE_SN_MASK :\n-\t\t\t\t\tPDCP_C_PLANE_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_18:\n-\t\toffset = 5;\n-\t\tlength = 3;\n-\t\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n-\t\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_7:\n-\tcase PDCP_SN_SIZE_12:\n-\tcase PDCP_SN_SIZE_15:\n-\t\tpr_err(\"Invalid sn_size for %s\\n\", __func__);\n-\t\treturn -ENOTSUP;\n-\n-\t}\n+\t/* sn_size is 18 */\n+\toffset = 5;\n+\tlength = 3;\n+\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n+\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n \n \tSEQLOAD(p, MATH0, offset, length, 0);\n \tJUMP(p, 1, LOCAL_JUMP, ALL_TRUE, CALM);\n@@ -1421,27 +1385,11 @@ pdcp_insert_cplane_aes_snow_op(struct program *p,\n \n \t\treturn 0;\n \t}\n-\t/* Non-proto is supported only for 5bit cplane and 18bit uplane */\n-\tswitch (sn_size) {\n-\tcase PDCP_SN_SIZE_5:\n-\t\toffset = 7;\n-\t\tlength = 1;\n-\t\tsn_mask = (swap == false) ? PDCP_C_PLANE_SN_MASK :\n-\t\t\t\t\tPDCP_C_PLANE_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_18:\n-\t\toffset = 5;\n-\t\tlength = 3;\n-\t\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n-\t\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_7:\n-\tcase PDCP_SN_SIZE_12:\n-\tcase PDCP_SN_SIZE_15:\n-\t\tpr_err(\"Invalid sn_size for %s\\n\", __func__);\n-\t\treturn -ENOTSUP;\n-\n-\t}\n+\t/* sn_size is 18 */\n+\toffset = 5;\n+\tlength = 3;\n+\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n+\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n \n \tif (dir == OP_TYPE_ENCAP_PROTOCOL)\n \t\tMATHB(p, SEQINSZ, SUB, length, VSEQINSZ, 4, IMMED2);\n@@ -1548,27 +1496,11 @@ pdcp_insert_cplane_snow_zuc_op(struct program *p,\n \t\t\t (uint16_t)authdata->algtype);\n \t\treturn 0;\n \t}\n-\t/* Non-proto is supported only for 5bit cplane and 18bit uplane */\n-\tswitch (sn_size) {\n-\tcase PDCP_SN_SIZE_5:\n-\t\toffset = 7;\n-\t\tlength = 1;\n-\t\tsn_mask = (swap == false) ? PDCP_C_PLANE_SN_MASK :\n-\t\t\t\t\tPDCP_C_PLANE_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_18:\n-\t\toffset = 5;\n-\t\tlength = 3;\n-\t\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n-\t\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_7:\n-\tcase PDCP_SN_SIZE_12:\n-\tcase PDCP_SN_SIZE_15:\n-\t\tpr_err(\"Invalid sn_size for %s\\n\", __func__);\n-\t\treturn -ENOTSUP;\n-\n-\t}\n+\t/* sn_size is 18 */\n+\toffset = 5;\n+\tlength = 3;\n+\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n+\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n \n \tpkeyjump = JUMP(p, keyjump, LOCAL_JUMP, ALL_TRUE, SHRD | SELF | BOTH);\n \tKEY(p, KEY1, cipherdata->key_enc_flags, cipherdata->key,\n@@ -1667,27 +1599,12 @@ pdcp_insert_cplane_aes_zuc_op(struct program *p,\n \n \t\treturn 0;\n \t}\n-\t/* Non-proto is supported only for 5bit cplane and 18bit uplane */\n-\tswitch (sn_size) {\n-\tcase PDCP_SN_SIZE_5:\n-\t\toffset = 7;\n-\t\tlength = 1;\n-\t\tsn_mask = (swap == false) ? PDCP_C_PLANE_SN_MASK :\n-\t\t\t\t\tPDCP_C_PLANE_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_18:\n-\t\toffset = 5;\n-\t\tlength = 3;\n-\t\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n-\t\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_7:\n-\tcase PDCP_SN_SIZE_12:\n-\tcase PDCP_SN_SIZE_15:\n-\t\tpr_err(\"Invalid sn_size for %s\\n\", __func__);\n-\t\treturn -ENOTSUP;\n+\t/* sn_size is 18 */\n+\toffset = 5;\n+\tlength = 3;\n+\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n+\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n \n-\t}\n \tpkeyjump = JUMP(p, keyjump, LOCAL_JUMP, ALL_TRUE, SHRD | SELF | BOTH);\n \tKEY(p, KEY1, cipherdata->key_enc_flags, cipherdata->key,\n \t    cipherdata->keylen, INLINE_KEY(cipherdata));\n@@ -1789,27 +1706,12 @@ pdcp_insert_cplane_zuc_snow_op(struct program *p,\n \n \t\treturn 0;\n \t}\n-\t/* Non-proto is supported only for 5bit cplane and 18bit uplane */\n-\tswitch (sn_size) {\n-\tcase PDCP_SN_SIZE_5:\n-\t\toffset = 7;\n-\t\tlength = 1;\n-\t\tsn_mask = (swap == false) ? PDCP_C_PLANE_SN_MASK :\n-\t\t\t\t\tPDCP_C_PLANE_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_18:\n-\t\toffset = 5;\n-\t\tlength = 3;\n-\t\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n-\t\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_7:\n-\tcase PDCP_SN_SIZE_12:\n-\tcase PDCP_SN_SIZE_15:\n-\t\tpr_err(\"Invalid sn_size for %s\\n\", __func__);\n-\t\treturn -ENOTSUP;\n+\t/* sn_size is 18 */\n+\toffset = 5;\n+\tlength = 3;\n+\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n+\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n \n-\t}\n \tpkeyjump = JUMP(p, keyjump, LOCAL_JUMP, ALL_TRUE, SHRD | SELF | BOTH);\n \tKEY(p, KEY1, cipherdata->key_enc_flags, cipherdata->key,\n \t    cipherdata->keylen, INLINE_KEY(cipherdata));\n@@ -1929,26 +1831,12 @@ pdcp_insert_cplane_zuc_aes_op(struct program *p,\n \t\t\t (uint16_t)authdata->algtype);\n \t\treturn 0;\n \t}\n-\t/* Non-proto is supported only for 5bit cplane and 18bit uplane */\n-\tswitch (sn_size) {\n-\tcase PDCP_SN_SIZE_5:\n-\t\toffset = 7;\n-\t\tlength = 1;\n-\t\tsn_mask = (swap == false) ? PDCP_C_PLANE_SN_MASK :\n-\t\t\t\t\tPDCP_C_PLANE_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_18:\n-\t\toffset = 5;\n-\t\tlength = 3;\n-\t\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n-\t\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n-\t\tbreak;\n-\tcase PDCP_SN_SIZE_7:\n-\tcase PDCP_SN_SIZE_12:\n-\tcase PDCP_SN_SIZE_15:\n-\t\tpr_err(\"Invalid sn_size for %s\\n\", __func__);\n-\t\treturn -ENOTSUP;\n-\t}\n+\n+\t/* sn_size is 18 */\n+\toffset = 5;\n+\tlength = 3;\n+\tsn_mask = (swap == false) ? PDCP_U_PLANE_18BIT_SN_MASK :\n+\t\t\t\tPDCP_U_PLANE_18BIT_SN_MASK_BE;\n \n \tSEQLOAD(p, MATH0, offset, length, 0);\n \tJUMP(p, 1, LOCAL_JUMP, ALL_TRUE, CALM);\ndiff --git a/drivers/common/dpaax/caamflib/desc/sdap.h b/drivers/common/dpaax/caamflib/desc/sdap.h\nindex 07a544295e..b38c15a24f 100644\n--- a/drivers/common/dpaax/caamflib/desc/sdap.h\n+++ b/drivers/common/dpaax/caamflib/desc/sdap.h\n@@ -1,5 +1,5 @@\n /* SPDX-License-Identifier: BSD-3-Clause\n- * Copyright 2020-2021 NXP\n+ * Copyright 2020-2022 NXP\n  */\n \n #ifndef __DESC_SDAP_H__\n@@ -29,52 +29,14 @@\n static inline int\n rta_inline_pdcp_sdap_query(enum auth_type_pdcp auth_alg,\n \t\t      enum cipher_type_pdcp cipher_alg,\n-\t\t      enum pdcp_sn_size sn_size,\n-\t\t      int8_t hfn_ovd)\n+\t\t      __rte_unused enum pdcp_sn_size sn_size,\n+\t\t      __rte_unused int8_t hfn_ovd)\n {\n-\tint nb_key_to_inline = 0;\n-\n \tif ((cipher_alg != PDCP_CIPHER_TYPE_NULL) &&\n \t\t\t(auth_alg != PDCP_AUTH_TYPE_NULL))\n \t\treturn 2;\n \telse\n \t\treturn 0;\n-\n-\t/**\n-\t * Shared Descriptors for some of the cases does not fit in the\n-\t * MAX_DESC_SIZE of the descriptor\n-\t * The cases which exceed are for RTA_SEC_ERA=8 and HFN override\n-\t * enabled and 12/18 bit uplane and either of following Algo combo.\n-\t * - AES-SNOW\n-\t * - AES-ZUC\n-\t * - SNOW-SNOW\n-\t * - SNOW-ZUC\n-\t * - ZUC-SNOW\n-\t * - ZUC-SNOW\n-\t *\n-\t * We cannot make inline for all cases, as this will impact performance\n-\t * due to extra memory accesses for the keys.\n-\t */\n-\n-\t/* Inline only the cipher key */\n-\tif ((rta_sec_era == RTA_SEC_ERA_8) && hfn_ovd &&\n-\t\t((sn_size == PDCP_SN_SIZE_12) ||\n-\t\t (sn_size == PDCP_SN_SIZE_18)) &&\n-\t\t(cipher_alg != PDCP_CIPHER_TYPE_NULL) &&\n-\t\t((auth_alg == PDCP_AUTH_TYPE_SNOW) ||\n-\t\t (auth_alg == PDCP_AUTH_TYPE_ZUC))) {\n-\n-\t\tnb_key_to_inline++;\n-\n-\t\t/* Sub case where inlining another key is required */\n-\t\tif ((cipher_alg == PDCP_CIPHER_TYPE_AES) &&\n-\t\t\t(auth_alg == PDCP_AUTH_TYPE_SNOW))\n-\t\t\tnb_key_to_inline++;\n-\t}\n-\n-\t/* Inline both keys */\n-\n-\treturn nb_key_to_inline;\n }\n \n static inline void key_loading_opti(struct program *p,\n",
    "prefixes": [
        "1/2"
    ]
}