get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 98349,
    "url": "http://patches.dpdk.org/api/patches/98349/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210908120115.3548009-2-g.singh@nxp.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": "<20210908120115.3548009-2-g.singh@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210908120115.3548009-2-g.singh@nxp.com",
    "date": "2021-09-08T12:01:12",
    "name": "[v3,1/4] security: support PDCP short MAC-I",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "b8f7b6782b72d4279ee0220d2fa9bfc96e92f8d2",
    "submitter": {
        "id": 1068,
        "url": "http://patches.dpdk.org/api/people/1068/?format=api",
        "name": "Gagandeep Singh",
        "email": "g.singh@nxp.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/20210908120115.3548009-2-g.singh@nxp.com/mbox/",
    "series": [
        {
            "id": 18764,
            "url": "http://patches.dpdk.org/api/series/18764/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=18764",
            "date": "2021-09-08T12:01:11",
            "name": "support of MAC-I",
            "version": 3,
            "mbox": "http://patches.dpdk.org/series/18764/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/98349/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/98349/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 928DFA0C56;\n\tWed,  8 Sep 2021 14:01:48 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 9E967411DC;\n\tWed,  8 Sep 2021 14:01:42 +0200 (CEST)",
            "from EUR04-HE1-obe.outbound.protection.outlook.com\n (mail-eopbgr70089.outbound.protection.outlook.com [40.107.7.89])\n by mails.dpdk.org (Postfix) with ESMTP id 67D36411A2\n for <dev@dpdk.org>; Wed,  8 Sep 2021 14:01:41 +0200 (CEST)",
            "from VI1PR04MB6960.eurprd04.prod.outlook.com (2603:10a6:803:12d::10)\n by VI1PR04MB6958.eurprd04.prod.outlook.com (2603:10a6:803:137::16)\n with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4478.22; Wed, 8 Sep\n 2021 12:01:40 +0000",
            "from VI1PR04MB6960.eurprd04.prod.outlook.com\n ([fe80::d496:fcce:f667:7aa7]) by VI1PR04MB6960.eurprd04.prod.outlook.com\n ([fe80::d496:fcce:f667:7aa7%8]) with mapi id 15.20.4500.015; Wed, 8 Sep 2021\n 12:01:40 +0000",
            "from lsv03457.swis.in-blr01.nxp.com (14.142.151.118) by\n SG2PR06CA0108.apcprd06.prod.outlook.com (2603:1096:3:14::34) with Microsoft\n SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id\n 15.20.4500.14 via Frontend Transport; Wed, 8 Sep 2021 12:01:38 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=T/tW+SurLK+2S3aYz3bdV3d/kUSvonqvVz6cwrmY5GScsC5vWte5+VgQJ/4/03ymbYI3dhdjQSb4aVVD5f4EwONreenqt+SQXRc04hLE5FCGorc5cvHrbG97QW9y/fQkWG52BIQ8DGtIvb1k+sEQ43zsqqffVgQJsZlJskBi7HSDD47xHBRhROCdn0myfZYCerQ/w+hwoEIxThEe0E/ATP0ASJtRFFLAiHgdjGwCWGpbkKfoZstnQDk+Fcon7OikhSWB6784wuM3kOxniUmFxxHl65tHmN6C8QuCFnVr+1/1g8wPYSe7PWlhs5D3ex8iu95rVnmPCxxKmEJpuV0sEw==",
        "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;\n bh=JlmYNYqeHVZgViTc55q4RPpxP/+VzgI/Lv8kIAg2QgQ=;\n b=IgFuYXVvcDR7dBglv1cx9Coaczst2uKo75M4yzUWe4jxdKqFkXWnX96jWpU3Gj3xRy7FjFN3bq7KgoaUPw/jcX/RuXksn3wTC56eRprf59oBnggJrbAeiq1GFihMKUCL1f0XvKxEeg/pK/BvIbF2CCb8vZr0N0VOvMZ9Yh0Ptwwqs+1udUX4VZT6t+Ze0OPTOW4nQySB5h+QuIXPqewLGv94VrDmqt7f/sfKI6RgNfDrQ73bGSm80HbTcqxdHiiSqjqWc2Rg55kIfh1BEG6bZHU+2NE1Wv8yoeU2A1utadljrg9csjg3dur2cDt+O7WWBjC6td2gqDd/aL7jkjvSmg==",
        "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=JlmYNYqeHVZgViTc55q4RPpxP/+VzgI/Lv8kIAg2QgQ=;\n b=aZxq+29rb4T5+EGhkK6OwueqCuRoQGH3IObkx/rJUGNLQQ03nQXzRvUyEheRZv74pFrYyuzvZrueeIq0PkTj77+fMy/6lfqxUqcsfsNBpY/EY7QFRpm8tgVBK4NQCHKA+/KDD8XRheTJcZzWTfpwlitn3PD71lnlW+iSgULlsOo=",
        "Authentication-Results": "marvell.com; dkim=none (message not signed)\n header.d=none;marvell.com; dmarc=none action=none header.from=nxp.com;",
        "From": "Gagandeep Singh <g.singh@nxp.com>",
        "To": "gakhil@marvell.com,\n\tdev@dpdk.org",
        "Cc": "thomas@monjalon.net, Hemant Agrawal <hemant.agrawal@nxp.com>,\n Gagandeep Singh <g.singh@nxp.com>",
        "Date": "Wed,  8 Sep 2021 17:31:12 +0530",
        "Message-Id": "<20210908120115.3548009-2-g.singh@nxp.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20210908120115.3548009-1-g.singh@nxp.com>",
        "References": "<20210907085605.3010882-2-g.singh@nxp.com>\n <20210908120115.3548009-1-g.singh@nxp.com>",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-ClientProxiedBy": "SG2PR06CA0108.apcprd06.prod.outlook.com\n (2603:1096:3:14::34) To VI1PR04MB6960.eurprd04.prod.outlook.com\n (2603:10a6:803:12d::10)",
        "MIME-Version": "1.0",
        "X-MS-Exchange-MessageSentRepresentingType": "1",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "8f7be110-c770-4b44-a841-08d972c06aa5",
        "X-MS-TrafficTypeDiagnostic": "VI1PR04MB6958:",
        "X-MS-Exchange-Transport-Forked": "True",
        "X-Microsoft-Antispam-PRVS": "\n <VI1PR04MB6958B883906F54CB9104753CE1D49@VI1PR04MB6958.eurprd04.prod.outlook.com>",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:7691;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-MS-Exchange-AntiSpam-Relay": "0",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n b8iVwgwQ9C7NuFVaPRkKn0T1F7YLBU4FBClN6k8WLMjH8WbP20pbnIrsNNA109aEsNoseznL2/bNW6DR+RSjZcJAXYsHDC/TzfR3oeoA6PFlAjgqBjByHawze2WQnfOLi1PIQ979uBWvrpRIIOp/TfW/CkAx5sM/ha3OxMQauLZeWgXwTFoLvIEo74GWCEKPuSiIMNeEE6xPx372rMq6Cikfw6BJ2MG3o7FRnjxgMZhhUmdRBDHUJPoQ0oLke92O04PzC3hoqHCq9CCxmjNdRk9qhDHP/Sd3Z/GK3pGN19VSZucstJ9iotNpXgaUY0LRDOw0iwH6WG/ZPKHaA7nGTNOUxHKCtzyduEX6rhZoBpZjkIYOndIUzq1YLyWbyeTgAxWcp4OA25SXfBDyY6W/5irSRPpJnrSYbc69xWKejtoxNWtgZlOLXisCcSkiC9djxy3C+inTggezcaAWVa1GQl+bi4K06hQQrZYwv0nPHGo3F43Ud9rVQHCEnzb8qZMq6gpaF9yinPqy2Uobt8qvh8OZY0mQWLeKAJxeEpsMfTTfOw1NXf+kxYd7EbzvKIH9sg4hLha4Ne40RctRUDeLytXlKgdSIzi5l+oRXY3IHGES+W8r3WDlJwhR0BJoig1Dyq5ESP9F59YCN47VbdBdSOnSf7qtVJPO25JVKQYgQ5YBl94Ay32buJf7NYct9wS1pDbrP8uOQ515kHvmJtGPNEPnR3ppGpj6T2dZHi+mckk=",
        "X-Forefront-Antispam-Report": "CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:;\n IPV:NLI; SFV:NSPM; H:VI1PR04MB6960.eurprd04.prod.outlook.com; PTR:; CAT:NONE;\n SFS:(4636009)(396003)(376002)(346002)(366004)(136003)(39860400002)(15650500001)(6486002)(55236004)(86362001)(1006002)(6666004)(38100700002)(38350700002)(26005)(478600001)(66476007)(2906002)(8936002)(956004)(66946007)(54906003)(8676002)(316002)(83380400001)(1076003)(66556008)(5660300002)(4326008)(2616005)(52116002)(7696005)(186003)(36756003)(110426009);\n DIR:OUT; SFP:1101;",
        "X-MS-Exchange-AntiSpam-MessageData-ChunkCount": "1",
        "X-MS-Exchange-AntiSpam-MessageData-0": "\n Z+raSzISkK4P1MWZTwp4uFNo11GZ8BNtsmO3egS11TQrgi6ogo4VjXl7kqb799nTfYpnO5WCA4KYIKt9wrXzcMZYR9s69HRW7UxlTgWGfhjVGzotjSaj91STx3/kJ14fFyzTw56oSIm2o8o9GANAm5Xq3B4sqOuSH2YDIzsMn8CyiIfq7RMOZXAv93BCodScihQhCMKVj0NAXTGiH2NLYqWF75QbaIge4IeCqZMSwjZPXMqglEg5UyajPi1HOTaXosdWHsNTPaioAUc2CD5h7iud5N0XqDb74C2Koc2hOU5Cqf3SUcMYO/MAek6Lf94rV2PqJA7otPm+5oIJ+AA/1qJ7KeQMO3EZ8dvUq5Whr42MX5moNeTzHusKhJaYeRLUoziA1vNKjzIn/ZqaugTrxA+z7WyP9J6/ickELjOkGEqK/mSaHyLkEBMPhbrJZN53HtkXjgs3DhneX2sLTxJPf+74JLB6n5l9oI3y3TdGjOE+oWZwvIiI+FCcB8cweX120AMKZyFZNnBphH5xKRYSr35bOtVgIQsptq3t9iSwXYleANvkHV/vlKdaDLClzphN1cL8zCTGkZ4Ikdk1/M0F8GYCE2IeP8UeyRAvoJpHTojxItNICtukqP/36Cz168RcbzyxDzSarZjbKLfG6kF7EZOehuZGyfFjWbr1Mop9yvTP3xyAddwGsWVKHVgHtVLWrGx0SYKp48T1CLCSvnNYXDZIxqwFRRHQSTrAMXCc+AWajloyjBu/rgitU+TtWwRbG86zkol9B6PoZeUJWheo463JBydbg64joQFFHhl0CDcFqa1KoGDLEBh0Nex7q4Zlyt7Eyn0ns48ZKBvZhOLuS1/xG0S9ASY5M8Bex00PNppPlnbakAcI904vGKShGVUfCehS3ffVv9B8vKrtlRgzDHkGFdAdsNPo5RE3JZJLThxHqWQxepc8BtIimDen8O41piGt/kZsNMWwq0AZXxJXKuUExvlhmcIv0FDVF99sB+X1fvBtjDVCVYaNYG19Yxb1kMUV+gJAaiKd1FVyFVTV7/mreIZcVHQXu85EwFXGLaaLoYsaHmIdxd86zedod1c4vdYhUSUfzI454Nw3y2T/9x9IfsHIUK8gnGiR0+rLb8Rq6cEHOv6N2zYQLL4ZcbGbTaHKAaQaRc52JziOAA9BKY2R22PIw8iu9va9ZEEEhp3k+S5YQK2a09J3JJ+09qKhNcDdhib56zjWcu8mksZzU6FA06jzdzfvFDM0gSK8zZhG3OhegVwra84wMbwdbuYcYFcrneqeoBh9C9LD1veAILa4PowKMnzLxbbDewaZKEifHoccgAo59vXxPhbUrCGO",
        "X-OriginatorOrg": "nxp.com",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n 8f7be110-c770-4b44-a841-08d972c06aa5",
        "X-MS-Exchange-CrossTenant-AuthSource": "VI1PR04MB6960.eurprd04.prod.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Internal",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "08 Sep 2021 12:01:40.2973 (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 SxoWY3jvpYjx55qGAbrTUOpm8XyasyNPNmB9Tg7NGR0muasNt0t0szdpbDkL+sS6",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VI1PR04MB6958",
        "Subject": "[dpdk-dev] [PATCH v3 1/4] security: support PDCP short MAC-I",
        "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": "From: Hemant Agrawal <hemant.agrawal@nxp.com>\n\nThis patch add support to handle PDCP short MAC-I domain\nalong with standard control and data domains as it has to\nbe treated as special case with PDCP protocol offload support.\n\nShortMAC-I is the 16 least significant bits of calculated MAC-I. Usually\nwhen a RRC message is exchanged between UE and eNodeB it is integrity &\nciphered protected.\n\nMAC-I = f(key, varShortMAC-I, count, bearer, direction).\nHere varShortMAC-I is prepared by using (current cellId, pci of source cell\nand C-RNTI of old cell). Other parameters like count, bearer and\ndirection set to all 1.\n\nSigned-off-by: Gagandeep Singh <g.singh@nxp.com>\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\n---\n app/test-crypto-perf/cperf_options_parsing.c |  8 ++++++-\n doc/guides/prog_guide/rte_security.rst       | 11 ++++++++-\n doc/guides/tools/cryptoperf.rst              |  4 ++--\n drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c  | 25 ++++++++++----------\n lib/security/rte_security.h                  |  1 +\n 5 files changed, 33 insertions(+), 16 deletions(-)",
    "diff": "diff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-perf/cperf_options_parsing.c\nindex e84f56cfaa..0348972c85 100644\n--- a/app/test-crypto-perf/cperf_options_parsing.c\n+++ b/app/test-crypto-perf/cperf_options_parsing.c\n@@ -662,7 +662,8 @@ parse_pdcp_sn_sz(struct cperf_options *opts, const char *arg)\n \n const char *cperf_pdcp_domain_strs[] = {\n \t[RTE_SECURITY_PDCP_MODE_CONTROL] = \"control\",\n-\t[RTE_SECURITY_PDCP_MODE_DATA] = \"data\"\n+\t[RTE_SECURITY_PDCP_MODE_DATA] = \"data\",\n+\t[RTE_SECURITY_PDCP_MODE_SHORT_MAC] = \"short_mac\"\n };\n \n static int\n@@ -677,6 +678,11 @@ parse_pdcp_domain(struct cperf_options *opts, const char *arg)\n \t\t\tcperf_pdcp_domain_strs\n \t\t\t[RTE_SECURITY_PDCP_MODE_DATA],\n \t\t\tRTE_SECURITY_PDCP_MODE_DATA\n+\t\t},\n+\t\t{\n+\t\t\tcperf_pdcp_domain_strs\n+\t\t\t[RTE_SECURITY_PDCP_MODE_SHORT_MAC],\n+\t\t\tRTE_SECURITY_PDCP_MODE_SHORT_MAC\n \t\t}\n \t};\n \ndiff --git a/doc/guides/prog_guide/rte_security.rst b/doc/guides/prog_guide/rte_security.rst\nindex f72bc8a78f..ad92c16868 100644\n--- a/doc/guides/prog_guide/rte_security.rst\n+++ b/doc/guides/prog_guide/rte_security.rst\n@@ -1,5 +1,5 @@\n ..  SPDX-License-Identifier: BSD-3-Clause\n-    Copyright 2017,2020 NXP\n+    Copyright 2017,2020-2021 NXP\n \n \n \n@@ -408,6 +408,15 @@ PMD which supports the IPsec and PDCP protocol.\n                 },\n                 .crypto_capabilities = pmd_capabilities\n         },\n+\t{ /* PDCP Lookaside Protocol offload short MAC-I */\n+                .action = RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL,\n+                .protocol = RTE_SECURITY_PROTOCOL_PDCP,\n+                .pdcp = {\n+                        .domain = RTE_SECURITY_PDCP_MODE_SHORT_MAC,\n+                        .capa_flags = 0\n+                },\n+                .crypto_capabilities = pmd_capabilities\n+        },\n         {\n                 .action = RTE_SECURITY_ACTION_TYPE_NONE\n         }\ndiff --git a/doc/guides/tools/cryptoperf.rst b/doc/guides/tools/cryptoperf.rst\nindex be3109054d..d3963f23e3 100644\n--- a/doc/guides/tools/cryptoperf.rst\n+++ b/doc/guides/tools/cryptoperf.rst\n@@ -316,9 +316,9 @@ The following are the application command-line options:\n         Set PDCP sequence number size(n) in bits. Valid values of n will\n         be 5/7/12/15/18.\n \n-* ``--pdcp-domain <control/user>``\n+* ``--pdcp-domain <control/user/short_mac>``\n \n-        Set PDCP domain to specify Control/user plane.\n+        Set PDCP domain to specify short_mac/control/user plane.\n \n * ``--docsis-hdr-sz <n>``\n \ndiff --git a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\nindex d6a101499a..b8d57c2b22 100644\n--- a/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\n+++ b/drivers/crypto/dpaa2_sec/dpaa2_sec_dpseci.c\n@@ -3104,7 +3104,7 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,\n \tstruct rte_security_pdcp_xform *pdcp_xform = &conf->pdcp;\n \tstruct rte_crypto_sym_xform *xform = conf->crypto_xform;\n \tstruct rte_crypto_auth_xform *auth_xform = NULL;\n-\tstruct rte_crypto_cipher_xform *cipher_xform;\n+\tstruct rte_crypto_cipher_xform *cipher_xform = NULL;\n \tdpaa2_sec_session *session = (dpaa2_sec_session *)sess;\n \tstruct ctxt_priv *priv;\n \tstruct dpaa2_sec_dev_private *dev_priv = dev->data->dev_private;\n@@ -3136,18 +3136,18 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,\n \tflc = &priv->flc_desc[0].flc;\n \n \t/* find xfrm types */\n-\tif (xform->type == RTE_CRYPTO_SYM_XFORM_CIPHER && xform->next == NULL) {\n-\t\tcipher_xform = &xform->cipher;\n-\t} else if (xform->type == RTE_CRYPTO_SYM_XFORM_CIPHER &&\n-\t\t   xform->next->type == RTE_CRYPTO_SYM_XFORM_AUTH) {\n-\t\tsession->ext_params.aead_ctxt.auth_cipher_text = true;\n+\tif (xform->type == RTE_CRYPTO_SYM_XFORM_CIPHER) {\n \t\tcipher_xform = &xform->cipher;\n-\t\tauth_xform = &xform->next->auth;\n-\t} else if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH &&\n-\t\t   xform->next->type == RTE_CRYPTO_SYM_XFORM_CIPHER) {\n-\t\tsession->ext_params.aead_ctxt.auth_cipher_text = false;\n-\t\tcipher_xform = &xform->next->cipher;\n+\t\tif (xform->next != NULL) {\n+\t\t\tsession->ext_params.aead_ctxt.auth_cipher_text = true;\n+\t\t\tauth_xform = &xform->next->auth;\n+\t\t}\n+\t} else if (xform->type == RTE_CRYPTO_SYM_XFORM_AUTH) {\n \t\tauth_xform = &xform->auth;\n+\t\tif (xform->next != NULL) {\n+\t\t\tsession->ext_params.aead_ctxt.auth_cipher_text = false;\n+\t\t\tcipher_xform = &xform->next->cipher;\n+\t\t}\n \t} else {\n \t\tDPAA2_SEC_ERR(\"Invalid crypto type\");\n \t\treturn -EINVAL;\n@@ -3186,7 +3186,8 @@ dpaa2_sec_set_pdcp_session(struct rte_cryptodev *dev,\n \tsession->pdcp.hfn_threshold = pdcp_xform->hfn_threshold;\n \tsession->pdcp.hfn_ovd = pdcp_xform->hfn_ovrd;\n \t/* hfv ovd offset location is stored in iv.offset value*/\n-\tsession->pdcp.hfn_ovd_offset = cipher_xform->iv.offset;\n+\tif (cipher_xform)\n+\t\tsession->pdcp.hfn_ovd_offset = cipher_xform->iv.offset;\n \n \tcipherdata.key = (size_t)session->cipher_key.data;\n \tcipherdata.keylen = session->cipher_key.length;\ndiff --git a/lib/security/rte_security.h b/lib/security/rte_security.h\nindex 88d31de0a6..2e136d7929 100644\n--- a/lib/security/rte_security.h\n+++ b/lib/security/rte_security.h\n@@ -233,6 +233,7 @@ struct rte_security_macsec_xform {\n enum rte_security_pdcp_domain {\n \tRTE_SECURITY_PDCP_MODE_CONTROL,\t/**< PDCP control plane */\n \tRTE_SECURITY_PDCP_MODE_DATA,\t/**< PDCP data plane */\n+\tRTE_SECURITY_PDCP_MODE_SHORT_MAC,\t/**< PDCP short mac */\n };\n \n /** PDCP Frame direction */\n",
    "prefixes": [
        "v3",
        "1/4"
    ]
}