get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 43925,
    "url": "http://patches.dpdk.org/api/patches/43925/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20180828130105.30779-2-akhil.goyal@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": "<20180828130105.30779-2-akhil.goyal@nxp.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20180828130105.30779-2-akhil.goyal@nxp.com",
    "date": "2018-08-28T13:01:03",
    "name": "[1/3] security: support pdcp protocol",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "1ba89a2c686578d13d6cb9333d604827ec9345fa",
    "submitter": {
        "id": 517,
        "url": "http://patches.dpdk.org/api/people/517/?format=api",
        "name": "Akhil Goyal",
        "email": "akhil.goyal@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/20180828130105.30779-2-akhil.goyal@nxp.com/mbox/",
    "series": [
        {
            "id": 1078,
            "url": "http://patches.dpdk.org/api/series/1078/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=1078",
            "date": "2018-08-28T13:01:02",
            "name": "security: support for pdcp",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/1078/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/43925/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/43925/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id DF1234C72;\n\tTue, 28 Aug 2018 15:04:19 +0200 (CEST)",
            "from EUR03-VE1-obe.outbound.protection.outlook.com\n\t(mail-eopbgr50081.outbound.protection.outlook.com [40.107.5.81])\n\tby dpdk.org (Postfix) with ESMTP id 4177A98\n\tfor <dev@dpdk.org>; Tue, 28 Aug 2018 15:04:17 +0200 (CEST)",
            "from GDB1.ap.freescale.net (14.143.30.134) by\n\tVI1PR04MB1390.eurprd04.prod.outlook.com (2a01:111:e400:5348::21) with\n\tMicrosoft SMTP Server (version=TLS1_2,\n\tcipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1080.17;\n\tTue, 28 Aug 2018 13:04:15 +0000"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1;\n\th=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n\tbh=XZHmG7tjKPOBc4bkl+QhsAxXn+dzrGi1y44G5Ki/vWM=;\n\tb=rWgukgBl3XjsUS0a97idAnxJ5fvf5MauobhxlGQERSuXqK7RzKss7HycHsHQ5qB63Nt6z8lz4lQBKtOSnLaF0g1sQ77ovpaf4uloXQoVZoAR6XJChldKM0IfSKCDBPBrR6YbI1yTgoSjN3xZ5eF1ddW2wKJwDQPVzHC4OrZz9Os=",
        "Authentication-Results": "spf=none (sender IP is )\n\tsmtp.mailfrom=akhil.goyal@nxp.com; ",
        "From": "akhil.goyal@nxp.com",
        "To": "dev@dpdk.org",
        "Cc": "Akhil Goyal <akhil.goyal@nxp.com>",
        "Date": "Tue, 28 Aug 2018 18:31:03 +0530",
        "Message-Id": "<20180828130105.30779-2-akhil.goyal@nxp.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20180828130105.30779-1-akhil.goyal@nxp.com>",
        "References": "<20180828130105.30779-1-akhil.goyal@nxp.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[14.143.30.134]",
        "X-ClientProxiedBy": "MAXPR0101CA0046.INDPRD01.PROD.OUTLOOK.COM\n\t(2603:1096:a00:d::32) To VI1PR04MB1390.eurprd04.prod.outlook.com\n\t(2a01:111:e400:5348::21)",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "3cbd772d-b8bd-4f40-35b1-08d60ce6c242",
        "X-MS-Office365-Filtering-HT": "Tenant",
        "X-Microsoft-Antispam": "BCL:0; PCL:0;\n\tRULEID:(7020095)(4652040)(8989137)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(4618075)(2017052603328)(7153060)(7193020);\n\tSRVR:VI1PR04MB1390; ",
        "X-Microsoft-Exchange-Diagnostics": [
            "1; VI1PR04MB1390;\n\t3:PPcIX7rKb0giHx3/vetRFXDQwzseIAZE3X3ocelbCUcbkTPFrYE1zaIBlDnrRQDns9crnJjImCdZ9vpMpOQe3FlkeDPEtmC4bqbGLYhEPBBe0p941s50m8DKYU/asNhX5izHq6KEzni7oT0riMmF3URVYkUFeK6HwcAxR2B+FGVx0OiWeWAiglPtqVkMBQzJhIpf/yWAIebVmN3xi4oFmLpErnfxU6a81SD/MRsK2xhgEAK1u4b8+LpmUSSByX2t;\n\t25:zLyGQgeA2MIctd/NNWwqUfM5Y3VopystgKIf6LUDfY4yFt2cf/pr2DNeIwnaldKPJR4G0wUgP2sPYtFTRcw9vBLQ/YwmFcrgnw50wYw0WPmWxD+wSYyos7/vVUrLO5ncPT+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s+6zEV/mKfIbulfKuuJm/lm9hoPKksLSw3BkxANN9e8auAWJuWclXbYn5dw4XGVr0u+VElgwQ3vi9KmfT3i4JOx3DiQmG18PLZnop/kx23nNDVuXpn0xvOAU3EhXZjJzb9cyOA==;\n\t5:Suf/1QqFa401tGUtmWcgZOE2pEIn+8f13ghd5842HsiK1qNq6e+WCpsRQB0Lp6OhV2oRszovzkZdurhKJJHCFdDci0VdrsX7gjr5FGXqv8jLa9c4Z5/JaLDvCeFSI96oPSPRbsLsduJRas8uCHtBoxaGsV+ZeB7unaJ7E7pcBP0=;\n\t7:g5jZtW8JcHPCgmpdABe9cYIh3+pbFb8IIJytaDgQHZBtQj5l20rPr3hqwIGjHNgePJfmuXNwu6hsKw4UmBa/dvgMrKiEuWJcv80e9m8MnyenxEXFjbAu9UqMN8GsCseqCotVxs0YUtEAlX/qHeIUwO1702qn+SyaKTCoxkHuSW6o112dT//pgHCrNEVtx+M64y7Whk0Bs7u8eJVWf67RdVObr7+22isSDKaHN1C09wLsrOFwK0i/aDZVtx1sJu6P"
        ],
        "X-MS-TrafficTypeDiagnostic": "VI1PR04MB1390:",
        "X-Microsoft-Antispam-PRVS": "<VI1PR04MB1390E2928BBA5120FBF1212CE60A0@VI1PR04MB1390.eurprd04.prod.outlook.com>",
        "X-Exchange-Antispam-Report-Test": "UriScan:(192374486261705)(185117386973197); ",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-Exchange-Antispam-Report-CFA-Test": "BCL:0; PCL:0;\n\tRULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(823301075)(10201501046)(93006095)(93001095)(3231311)(944501410)(52105095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123560045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(201708071742011)(7699016);\n\tSRVR:VI1PR04MB1390; BCL:0; PCL:0; RULEID:; SRVR:VI1PR04MB1390; ",
        "X-Forefront-PRVS": "077884B8B5",
        "X-Forefront-Antispam-Report": "SFV:NSPM;\n\tSFS:(10009020)(39860400002)(346002)(136003)(376002)(366004)(396003)(189003)(199004)(5009440100003)(8676002)(55236004)(97736004)(316002)(186003)(26005)(15650500001)(6506007)(386003)(50466002)(50226002)(51416003)(16526019)(16586007)(48376002)(76176011)(8936002)(478600001)(52116002)(33896004)(53936002)(25786009)(956004)(47776003)(2351001)(6666003)(7736002)(14444005)(36756003)(85782001)(1076002)(5660300001)(2361001)(11346002)(105586002)(9686003)(66066001)(6512007)(446003)(2906002)(106356001)(305945005)(486006)(4326008)(81156014)(81166006)(68736007)(6486002)(2616005)(476003)(6916009)(86362001)(575784001)(6116002)(3846002)(110426005)(85772001);\n\tDIR:OUT; SFP:1101; SCL:1; SRVR:VI1PR04MB1390; H:GDB1.ap.freescale.net;\n\tFPR:; \n\tSPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; ",
        "Received-SPF": "None (protection.outlook.com: nxp.com does not designate\n\tpermitted sender hosts)",
        "X-Microsoft-Antispam-Message-Info": "T5krZaZGLqIUkMvkMf70zAZLkKoLw6C4oIP/1sG7PQ1ADSUokmydkFaiN40LtNAXTzAzMvYwcxKxzJAn3sDlK5b+0BBunr67WRShQAuI6GoKol+Nzt0bt1Rpm/JstbYW9RaOIA7F/q0+QxTqOHEo/e5sL/GqfE41PzSEUdcdN3RH0Qch+m31tfZ0cgmKQOrA8fq7JpFFCjrnT0WqukeWKwDomga3fp08vNzi2NS+6XkuK0z1E7DQBVl4QGTQ/05UyrpShRdVJHvNJyxgpJgvKVupuuhPoZSe7x+Q4cg+HbEhhZ2GuzJW5Qjs6aJUGbu3wxoOTV03diOrnfFZCvp+TwdDUyGlwnrn4p5o9HjTb+w=",
        "SpamDiagnosticOutput": "1:99",
        "SpamDiagnosticMetadata": "NSPM",
        "X-OriginatorOrg": "nxp.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "28 Aug 2018 13:04:15.1076\n\t(UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "3cbd772d-b8bd-4f40-35b1-08d60ce6c242",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "Hosted",
        "X-MS-Exchange-CrossTenant-Id": "686ea1d3-bc2b-4c6f-a92c-d99c5c301635",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "VI1PR04MB1390",
        "Subject": "[dpdk-dev] [PATCH 1/3] security: support pdcp protocol",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Akhil Goyal <akhil.goyal@nxp.com>\n\nSigned-off-by: Hemant Agrawal <hemant.agrawal@nxp.com>\nSigned-off-by: Akhil Goyal <akhil.goyal@nxp.com>\n---\n doc/guides/prog_guide/rte_security.rst | 90 ++++++++++++++++++++++++--\n lib/librte_security/rte_security.c     |  4 ++\n lib/librte_security/rte_security.h     | 62 ++++++++++++++++++\n 3 files changed, 149 insertions(+), 7 deletions(-)",
    "diff": "diff --git a/doc/guides/prog_guide/rte_security.rst b/doc/guides/prog_guide/rte_security.rst\nindex 0812abe77..412fff016 100644\n--- a/doc/guides/prog_guide/rte_security.rst\n+++ b/doc/guides/prog_guide/rte_security.rst\n@@ -10,8 +10,8 @@ The security library provides a framework for management and provisioning\n of security protocol operations offloaded to hardware based devices. The\n library defines generic APIs to create and free security sessions which can\n support full protocol offload as well as inline crypto operation with\n-NIC or crypto devices. The framework currently only supports the IPSec protocol\n-and associated operations, other protocols will be added in future.\n+NIC or crypto devices. The framework currently only supports the IPSec and PDCP\n+protocol and associated operations, other protocols will be added in future.\n \n Design Principles\n -----------------\n@@ -253,6 +253,46 @@ for any protocol header addition.\n         +--------|--------+\n                  V\n \n+PDCP Flow Diagram\n+~~~~~~~~~~~~~~~~~\n+\n+.. code-block:: c\n+\n+        Transmitting PDCP Entity          Receiving PDCP Entity\n+                  |                                   ^\n+                  |                       +-----------|-----------+\n+                  V                       | In order delivery and |\n+        +---------|----------+            | Duplicate detection   |\n+        | Sequence Numbering |            |  (Data Plane only)    |\n+        +---------|----------+            +-----------|-----------+\n+                  |                                   |\n+        +---------|----------+            +-----------|----------+\n+        | Header Compression*|            | Header Decompression*|\n+        | (Data-Plane only)  |            |   (Data Plane only)  |\n+        +---------|----------+            +-----------|----------+\n+                  |                                   |\n+        +---------|-----------+           +-----------|----------+\n+        | Integrity Protection|           |Integrity Verification|\n+        | (Control Plane only)|           | (Control Plane only) |\n+        +---------|-----------+           +-----------|----------+\n+        +---------|-----------+            +----------|----------+\n+        |     Ciphering       |            |     Deciphering     |\n+        +---------|-----------+            +----------|----------+\n+        +---------|-----------+            +----------|----------+\n+        |   Add PDCP header   |            | Remove PDCP Header  |\n+        +---------|-----------+            +----------|----------+\n+                  |                                   |\n+                  +----------------->>----------------+\n+\n+\n+.. note::\n+\n+    * Header Compression and decompression are not supported currently.\n+\n+Just like IPSec, in case of PDCP also header addition/deletion, cipher/\n+de-cipher, integrity protection/verification is done based on the action\n+type chosen.\n+\n Device Features and Capabilities\n ---------------------------------\n \n@@ -271,7 +311,7 @@ structure in the *DPDK API Reference*.\n \n Each driver (crypto or ethernet) defines its own private array of capabilities\n for the operations it supports. Below is an example of the capabilities for a\n-PMD which supports the IPSec protocol.\n+PMD which supports the IPSec and PDCP protocol.\n \n .. code-block:: c\n \n@@ -298,6 +338,22 @@ PMD which supports the IPSec protocol.\n                 },\n                 .crypto_capabilities = pmd_capabilities\n         },\n+        { /* PDCP Lookaside Protocol offload Data Plane */\n+                .action = RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL,\n+                .protocol = RTE_SECURITY_PROTOCOL_PDCP,\n+                .pdcp = {\n+                        .domain = RTE_SECURITY_PDCP_MODE_DATA,\n+                },\n+                .crypto_capabilities = pmd_capabilities\n+        },\n+        { /* PDCP Lookaside Protocol offload Control */\n+                .action = RTE_SECURITY_ACTION_TYPE_LOOKASIDE_PROTOCOL,\n+                .protocol = RTE_SECURITY_PROTOCOL_PDCP,\n+                .pdcp = {\n+                        .domain = RTE_SECURITY_PDCP_MODE_CONTROL,\n+                },\n+                .crypto_capabilities = pmd_capabilities\n+        },\n         {\n                 .action = RTE_SECURITY_ACTION_TYPE_NONE\n         }\n@@ -429,6 +485,7 @@ Security Session configuration structure is defined as ``rte_security_session_co\n         union {\n                 struct rte_security_ipsec_xform ipsec;\n                 struct rte_security_macsec_xform macsec;\n+                struct rte_security_pdcp_xform pdcp;\n         };\n         /**< Configuration parameters for security session */\n         struct rte_crypto_sym_xform *crypto_xform;\n@@ -463,15 +520,17 @@ The ``rte_security_session_protocol`` is defined as\n .. code-block:: c\n \n     enum rte_security_session_protocol {\n-        RTE_SECURITY_PROTOCOL_IPSEC,\n+        RTE_SECURITY_PROTOCOL_IPSEC = 1,\n         /**< IPsec Protocol */\n         RTE_SECURITY_PROTOCOL_MACSEC,\n         /**< MACSec Protocol */\n+        RTE_SECURITY_PROTOCOL_PDCP,\n+        /**< PDCP Protocol */\n     };\n \n-Currently the library defines configuration parameters for IPSec only. For other\n-protocols like MACSec, structures and enums are defined as place holders which\n-will be updated in the future.\n+Currently the library defines configuration parameters for IPSec and PDCP only.\n+For other protocols like MACSec, structures and enums are defined as place holders\n+which will be updated in the future.\n \n IPsec related configuration parameters are defined in ``rte_security_ipsec_xform``\n \n@@ -494,6 +553,23 @@ IPsec related configuration parameters are defined in ``rte_security_ipsec_xform\n         /**< Tunnel parameters, NULL for transport mode */\n     };\n \n+PDCP related configuration parameters are defined in ``rte_security_pdcp_xform``\n+\n+.. code-block:: c\n+\n+    struct rte_security_pdcp_xform {\n+        int8_t bearer;\t/**< PDCP bearer ID */\n+        enum rte_security_pdcp_domain domain;\n+        /** < PDCP mode of operation: Control or data */\n+        enum rte_security_pdcp_direction pkt_dir;\n+        /**< PDCP Frame Direction 0:UL 1:DL */\n+        enum rte_security_pdcp_sn_size sn_size;\n+        /**< Sequence number size, 5/7/12/15 */\n+        int8_t hfn_ovd; /**< Overwrite HFN per operation */\n+        uint32_t hfn;\t/**< Hyper Frame Number */\n+        uint32_t hfn_threshold;\t/**< HFN Threashold for key renegotiation */\n+    };\n+\n \n Security API\n ~~~~~~~~~~~~\ndiff --git a/lib/librte_security/rte_security.c b/lib/librte_security/rte_security.c\nindex 1954960a5..c6355de95 100644\n--- a/lib/librte_security/rte_security.c\n+++ b/lib/librte_security/rte_security.c\n@@ -131,6 +131,10 @@ rte_security_capability_get(struct rte_security_ctx *instance,\n \t\t\t\t\tcapability->ipsec.direction ==\n \t\t\t\t\t\t\tidx->ipsec.direction)\n \t\t\t\t\treturn capability;\n+\t\t\t} else if (idx->protocol == RTE_SECURITY_PROTOCOL_PDCP) {\n+\t\t\t\tif (capability->pdcp.domain ==\n+\t\t\t\t\t\t\tidx->pdcp.domain)\n+\t\t\t\t\treturn capability;\n \t\t\t}\n \t\t}\n \t}\ndiff --git a/lib/librte_security/rte_security.h b/lib/librte_security/rte_security.h\nindex b0d1b97ee..e625bc656 100644\n--- a/lib/librte_security/rte_security.h\n+++ b/lib/librte_security/rte_security.h\n@@ -206,6 +206,52 @@ struct rte_security_macsec_xform {\n \tint dummy;\n };\n \n+/**\n+ * PDCP Mode of session\n+ */\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+};\n+\n+/** PDCP Frame direction */\n+enum rte_security_pdcp_direction {\n+\tRTE_SECURITY_PDCP_UPLINK,\t/**< Uplink */\n+\tRTE_SECURITY_PDCP_DOWNLINK,\t/**< Downlink */\n+};\n+\n+/**\n+ * PDCP Sequence Number Size selectors\n+ * @PDCP_SN_SIZE_5: 5bit sequence number\n+ * @PDCP_SN_SIZE_7: 7bit sequence number\n+ * @PDCP_SN_SIZE_12: 12bit sequence number\n+ * @PDCP_SN_SIZE_15: 15bit sequence number\n+ */\n+enum rte_security_pdcp_sn_size {\n+\tRTE_SECURITY_PDCP_SN_SIZE_5 = 5,\n+\tRTE_SECURITY_PDCP_SN_SIZE_7 = 7,\n+\tRTE_SECURITY_PDCP_SN_SIZE_12 = 12,\n+\tRTE_SECURITY_PDCP_SN_SIZE_15 = 15\n+};\n+\n+/**\n+ * PDCP security association configuration data.\n+ *\n+ * This structure contains data required to create a PDCP security session.\n+ */\n+struct rte_security_pdcp_xform {\n+\tint8_t bearer;\t/**< PDCP bearer ID */\n+\tenum rte_security_pdcp_domain domain;\n+\t\t/** < PDCP mode of operation: Control or data */\n+\tenum rte_security_pdcp_direction pkt_dir;\n+\t\t/**< PDCP Frame Direction 0:UL 1:DL */\n+\tenum rte_security_pdcp_sn_size sn_size;\n+\t\t/**< Sequence number size, 5/7/12/15 */\n+\tint8_t hfn_ovd; /**< Overwrite HFN per operation */\n+\tuint32_t hfn;\t/**< Hyper Frame Number */\n+\tuint32_t hfn_threshold;\t/**< HFN Threashold for key renegotiation */\n+};\n+\n /**\n  * Security session action type.\n  */\n@@ -232,6 +278,8 @@ enum rte_security_session_protocol {\n \t/**< IPsec Protocol */\n \tRTE_SECURITY_PROTOCOL_MACSEC,\n \t/**< MACSec Protocol */\n+\tRTE_SECURITY_PROTOCOL_PDCP,\n+\t/**< PDCP Protocol */\n };\n \n /**\n@@ -246,6 +294,7 @@ struct rte_security_session_conf {\n \tunion {\n \t\tstruct rte_security_ipsec_xform ipsec;\n \t\tstruct rte_security_macsec_xform macsec;\n+\t\tstruct rte_security_pdcp_xform pdcp;\n \t};\n \t/**< Configuration parameters for security session */\n \tstruct rte_crypto_sym_xform *crypto_xform;\n@@ -413,6 +462,10 @@ struct rte_security_ipsec_stats {\n \n };\n \n+struct rte_security_pdcp_stats {\n+\tuint64_t reserved;\n+};\n+\n struct rte_security_stats {\n \tenum rte_security_session_protocol protocol;\n \t/**< Security protocol to be configured */\n@@ -421,6 +474,7 @@ struct rte_security_stats {\n \tunion {\n \t\tstruct rte_security_macsec_stats macsec;\n \t\tstruct rte_security_ipsec_stats ipsec;\n+\t\tstruct rte_security_pdcp_stats pdcp;\n \t};\n };\n \n@@ -465,6 +519,11 @@ struct rte_security_capability {\n \t\t\tint dummy;\n \t\t} macsec;\n \t\t/**< MACsec capability */\n+\t\tstruct {\n+\t\t\tenum rte_security_pdcp_domain domain;\n+\t\t\t/** < PDCP mode of operation: Control or data */\n+\t\t} pdcp;\n+\t\t/**< PDCP capability */\n \t};\n \n \tconst struct rte_cryptodev_capabilities *crypto_capabilities;\n@@ -506,6 +565,9 @@ struct rte_security_capability_idx {\n \t\t\tenum rte_security_ipsec_sa_mode mode;\n \t\t\tenum rte_security_ipsec_sa_direction direction;\n \t\t} ipsec;\n+\t\tstruct {\n+\t\t\tenum rte_security_pdcp_domain domain;\n+\t\t} pdcp;\n \t};\n };\n \n",
    "prefixes": [
        "1/3"
    ]
}