get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 92151,
    "url": "http://patches.dpdk.org/api/patches/92151/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20210426080537.376693-1-matan@nvidia.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": "<20210426080537.376693-1-matan@nvidia.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210426080537.376693-1-matan@nvidia.com",
    "date": "2021-04-26T08:05:37",
    "name": "examples/l2fwd-crypto: support cipher multiple data-unit",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "43eec237568861f0a13b4f0bfc80820dbc4cb6e0",
    "submitter": {
        "id": 1911,
        "url": "http://patches.dpdk.org/api/people/1911/?format=api",
        "name": "Matan Azrad",
        "email": "matan@nvidia.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/20210426080537.376693-1-matan@nvidia.com/mbox/",
    "series": [
        {
            "id": 16668,
            "url": "http://patches.dpdk.org/api/series/16668/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=16668",
            "date": "2021-04-26T08:05:37",
            "name": "examples/l2fwd-crypto: support cipher multiple data-unit",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/16668/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/92151/comments/",
    "check": "fail",
    "checks": "http://patches.dpdk.org/api/patches/92151/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 D6663A0548;\n\tMon, 26 Apr 2021 10:06:05 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id B7252411A0;\n\tMon, 26 Apr 2021 10:06:05 +0200 (CEST)",
            "from NAM10-MW2-obe.outbound.protection.outlook.com\n (mail-mw2nam10on2066.outbound.protection.outlook.com [40.107.94.66])\n by mails.dpdk.org (Postfix) with ESMTP id 193464118F\n for <dev@dpdk.org>; Mon, 26 Apr 2021 10:06:04 +0200 (CEST)",
            "from MW4PR04CA0341.namprd04.prod.outlook.com (2603:10b6:303:8a::16)\n by MW2PR12MB4683.namprd12.prod.outlook.com (2603:10b6:302:5::24) with\n Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.22; Mon, 26 Apr\n 2021 08:06:02 +0000",
            "from CO1NAM11FT064.eop-nam11.prod.protection.outlook.com\n (2603:10b6:303:8a:cafe::11) by MW4PR04CA0341.outlook.office365.com\n (2603:10b6:303:8a::16) with Microsoft SMTP Server (version=TLS1_2,\n cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4065.20 via Frontend\n Transport; Mon, 26 Apr 2021 08:06:02 +0000",
            "from mail.nvidia.com (216.228.112.34) by\n CO1NAM11FT064.mail.protection.outlook.com (10.13.175.77) with Microsoft SMTP\n Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id\n 15.20.4065.21 via Frontend Transport; Mon, 26 Apr 2021 08:06:01 +0000",
            "from nvidia.com (172.20.145.6) by HQMAIL107.nvidia.com\n (172.20.187.13) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Mon, 26 Apr\n 2021 08:06:00 +0000"
        ],
        "ARC-Seal": "i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none;\n b=HQ3U4T2c8vxc4JcDV4duKTBeNDm4JEF2PmOEnNENakQlqmL6JfcRtl2NF0mehVpmKLHgIMt08+u6qDbh0FcUTCR1IBcRAa5c7ODU3rV9ThAY0V4iDfL+Gg6qLhzJNSQLN1L4k039TlO/SZ4ffyGib81w2EnYMfQ7JIbEpHzZu+51Rs1CDTmNN4lG7gmd+3dylSWQ+ZmG/uVGg8wTi3GTq1kMqc+3ZvKwurLjluXWPdXeyLlTCFEX6yMg1gt8Z5KSVpR0XwZqWI7IO/0CN81FJSLRfjNVj1rhkyJ9L0xZGmXHCOGyQXStYHB39O0CgS0MdJaiR/4+WaNOH0zJnyYYOg==",
        "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-SenderADCheck;\n bh=JE6SCFOFp4eHq9Bz5dHNqAL5kYe3Qxwq2jHw+4CLWdc=;\n b=XnS2pq7hC8hQsIil7BeptCRC08DRaT5X+8C9qmJGdC3HUvDT5o/ZG+BgVdSD6JvlLoPu/sa7uMCrnIVrE7wF/ys5w4nmlgb4uMzC1hguU2zDH7Y2sZqP7psl+TVvh0qMPoAxQsMJ6r8kYPko71Xj9GP+ohX3BGlgnKHgtcTyQWhU4LGBlLGzWCX+aD7bym5olzwd/lAPrXgL4u2V///sUtM7ehFCEfMrgbM7A48zJiGY9AMy1PZNGFSqor0pjWXATOZjqiLB3e7oL+VwJOArvJDMRFD1O1u3GIvyd3bjg210T4LJu/1LCtcelaynwE3BxoSTEYL1YcHnXS6paTs6gA==",
        "ARC-Authentication-Results": "i=1; mx.microsoft.com 1; spf=pass (sender ip is\n 216.228.112.34) smtp.rcpttodomain=intel.com smtp.mailfrom=nvidia.com;\n dmarc=pass (p=none sp=none pct=100) action=none header.from=nvidia.com;\n dkim=none (message not signed); arc=none",
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=Nvidia.com;\n s=selector2;\n h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck;\n bh=JE6SCFOFp4eHq9Bz5dHNqAL5kYe3Qxwq2jHw+4CLWdc=;\n b=g0gK+1muPOhQjnd9V+6jPEntmrFfvFJy5is7bMsfp9y5dWR9DvF/Cas+ufjkEg9qvmwROa6t33h7bfMvQAtQowsoEggmtd3ZlpGUkaBkQtnUDy1jC4AlB8V4RuCNHNdEtMDJyAz6Ew9HA3khpuIcAfgnPsi8jGf97R5H6GKz5r3JZLnLD7m6LsO4cJAAcnSaDmhL8ucoY98cDxsCnkJV++vHJMYzF2NmpSZ/fWQmWvXflosnvRgN1d2Th+bgLV12SmlkXpfC1cAxjF/MiZfSlCt8zt3RrjWCdkszGfxNuouBH5IaNBTJlV7hAssmqsmUxM8Y7pmqKA1GeYSnuZpYMw==",
        "X-MS-Exchange-Authentication-Results": "spf=pass (sender IP is 216.228.112.34)\n smtp.mailfrom=nvidia.com; intel.com; dkim=none (message not signed)\n header.d=none;intel.com; dmarc=pass action=none header.from=nvidia.com;",
        "Received-SPF": "Pass (protection.outlook.com: domain of nvidia.com designates\n 216.228.112.34 as permitted sender) receiver=protection.outlook.com;\n client-ip=216.228.112.34; helo=mail.nvidia.com;",
        "From": "Matan Azrad <matan@nvidia.com>",
        "To": "<dev@dpdk.org>",
        "CC": "Akhil Goyal <gakhil@marvell.com>, Declan Doherty\n <declan.doherty@intel.com>, Shiri Kuzin <shirik@nvidia.com>",
        "Date": "Mon, 26 Apr 2021 11:05:37 +0300",
        "Message-ID": "<20210426080537.376693-1-matan@nvidia.com>",
        "X-Mailer": "git-send-email 2.25.1",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[172.20.145.6]",
        "X-ClientProxiedBy": "HQMAIL101.nvidia.com (172.20.187.10) To\n HQMAIL107.nvidia.com (172.20.187.13)",
        "X-EOPAttributedMessage": "0",
        "X-MS-PublicTrafficType": "Email",
        "X-MS-Office365-Filtering-Correlation-Id": "e41e1ced-b98c-4dc8-08b3-08d9088a220d",
        "X-MS-TrafficTypeDiagnostic": "MW2PR12MB4683:",
        "X-Microsoft-Antispam-PRVS": "\n <MW2PR12MB4683701870106E0A0D6D45C4DF429@MW2PR12MB4683.namprd12.prod.outlook.com>",
        "X-MS-Exchange-Transport-Forked": "True",
        "X-MS-Oob-TLC-OOBClassifiers": "OLM:439;",
        "X-MS-Exchange-SenderADCheck": "1",
        "X-Microsoft-Antispam": "BCL:0;",
        "X-Microsoft-Antispam-Message-Info": "\n qx7ig7n6ot6z1aUYoVU/Mswnghdr/t9qUc7wszvO2N95ONyFYC5OxW0JVWvop7j0z4fh22X/jVGKt3jjbsXwbGHUfz15pDqpoZsLylSMwOxPPpkq0Zn4WeMK/VMJJUnvptm3uVXUajxFNnVD3EE9LVOHkOPoiAIqWN/wSUWQcwu2lJWdAUxG/3V8pslT9Mg9ppWZM84MbVruPJOKn7Li25aHqry/DD6CYkr22uUJvC921abbRFWkecR0ViMH4mUWw62tgxYcka5nsrRDRS68McVcZyxN1x+lGWgunJti+HA0X2PISxeBmml8QB6n6dYNHx6Ubp0xw/YlRJyU6C47y1iNWWY/F4DwhRG0tZxZ5pVItt0psFYStzyv9Jm2tnLhUkdegB1XZtunNzoypeP9wxcZeloYuRiyLMSM/0wAGfArMtw4U7PdUrTdxhKBtrX8j57IYPHed9l4iYH84YFpirCQxQmLEaZ4ER5DbI9tHHR+/+thXpDYOSLEfBbDkIsV46m8Ua+16fnMlSZRFiBIUVZRllrIcviYlK3kFvbwaugSSnC3vhBSdqhgGyEnlTY9/jOsRJxX/bbEi3JNiqijGJd+pWvoyZg2Jvz+RA0xE1U9QLYppkqJcd7BVxQGUAjQP9eJT6EMzYUoLbFS4dxtdoBrRkhWWRRGxPppZ8ym/F0=",
        "X-Forefront-Antispam-Report": "CIP:216.228.112.34; CTRY:US; LANG:en; SCL:1;\n SRV:;\n IPV:NLI; SFV:NSPM; H:mail.nvidia.com; PTR:schybrid03.nvidia.com; CAT:NONE;\n SFS:(4636009)(39860400002)(136003)(376002)(346002)(396003)(36840700001)(46966006)(1076003)(336012)(426003)(2616005)(6666004)(55016002)(86362001)(6916009)(2906002)(478600001)(186003)(26005)(356005)(16526019)(8676002)(4326008)(70586007)(70206006)(7636003)(6286002)(83380400001)(82740400003)(8936002)(5660300002)(107886003)(47076005)(54906003)(7696005)(36860700001)(36756003)(82310400003)(316002)(36906005);\n DIR:OUT; SFP:1101;",
        "X-OriginatorOrg": "Nvidia.com",
        "X-MS-Exchange-CrossTenant-OriginalArrivalTime": "26 Apr 2021 08:06:01.8305 (UTC)",
        "X-MS-Exchange-CrossTenant-Network-Message-Id": "\n e41e1ced-b98c-4dc8-08b3-08d9088a220d",
        "X-MS-Exchange-CrossTenant-Id": "43083d15-7273-40c1-b7db-39efd9ccc17a",
        "X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp": "\n TenantId=43083d15-7273-40c1-b7db-39efd9ccc17a; Ip=[216.228.112.34];\n Helo=[mail.nvidia.com]",
        "X-MS-Exchange-CrossTenant-AuthSource": "\n CO1NAM11FT064.eop-nam11.prod.protection.outlook.com",
        "X-MS-Exchange-CrossTenant-AuthAs": "Anonymous",
        "X-MS-Exchange-CrossTenant-FromEntityHeader": "HybridOnPrem",
        "X-MS-Exchange-Transport-CrossTenantHeadersStamped": "MW2PR12MB4683",
        "Subject": "[dpdk-dev] [PATCH] examples/l2fwd-crypto: support cipher multiple\n data-unit",
        "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": "Patch [1] added a new API to support multiple data-units in cipher\noperations.\n\nAdd a support for this API:\n- Add a new command-line argument to provide the data-unit length.\n- Set the length in the cipher xform.\n- Validate device capabilities for this feature.\n- Pad the AES-XTS operation length to be aligned to the defined data-unit.\n\n[1]: commit d014dddb2d69 (\"cryptodev: support multiple cipher data-units\")\n\nSigned-off-by: Matan Azrad <matan@nvidia.com>\n---\n .../sample_app_ug/l2_forward_crypto.rst       |  7 ++-\n examples/l2fwd-crypto/main.c                  | 61 +++++++++++++++++++\n 2 files changed, 66 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/doc/guides/sample_app_ug/l2_forward_crypto.rst b/doc/guides/sample_app_ug/l2_forward_crypto.rst\nindex e2c0f9f1ec..cc772aaec4 100644\n--- a/doc/guides/sample_app_ug/l2_forward_crypto.rst\n+++ b/doc/guides/sample_app_ug/l2_forward_crypto.rst\n@@ -41,8 +41,9 @@ The application requires a number of command line options:\n \n     ./<build_dir>/examples/dpdk-l2fwd-crypto [EAL options] -- [-p PORTMASK] [-q NQ] [-s] [-T PERIOD] /\n     [--cdev_type HW/SW/ANY] [--chain HASH_CIPHER/CIPHER_HASH/CIPHER_ONLY/HASH_ONLY/AEAD] /\n-    [--cipher_algo ALGO] [--cipher_op ENCRYPT/DECRYPT] [--cipher_key KEY] /\n-    [--cipher_key_random_size SIZE] [--cipher_iv IV] [--cipher_iv_random_size SIZE] /\n+    [--cipher_algo ALGO] [--cipher_op ENCRYPT/DECRYPT] [--cipher_dataunit_len SIZE] /\n+    [--cipher_key KEY] [--cipher_key_random_size SIZE] [--cipher_iv IV] /\n+    [--cipher_iv_random_size SIZE] /\n     [--auth_algo ALGO] [--auth_op GENERATE/VERIFY] [--auth_key KEY] /\n     [--auth_key_random_size SIZE] [--auth_iv IV] [--auth_iv_random_size SIZE] /\n     [--aead_algo ALGO] [--aead_op ENCRYPT/DECRYPT] [--aead_key KEY] /\n@@ -81,6 +82,8 @@ where,\n \n     (default is ENCRYPT)\n \n+*   cipher_dataunit_len: set the length of the cipher data-unit.\n+\n *   cipher_key: set the ciphering key to be used. Bytes has to be separated with \":\"\n \n *   cipher_key_random_size: set the size of the ciphering key,\ndiff --git a/examples/l2fwd-crypto/main.c b/examples/l2fwd-crypto/main.c\nindex 4f51616492..22bd47061b 100644\n--- a/examples/l2fwd-crypto/main.c\n+++ b/examples/l2fwd-crypto/main.c\n@@ -182,6 +182,8 @@ struct l2fwd_crypto_params {\n \tunsigned digest_length;\n \tunsigned block_size;\n \n+\tuint16_t cipher_dataunit_len;\n+\n \tstruct l2fwd_iv cipher_iv;\n \tstruct l2fwd_iv auth_iv;\n \tstruct l2fwd_iv aead_iv;\n@@ -434,6 +436,12 @@ l2fwd_simple_crypto_enqueue(struct rte_mbuf *m,\n \t\t\t\tpad_len = cparams->block_size -\n \t\t\t\t\t(data_len % cparams->block_size);\n \t\t\tbreak;\n+\t\tcase RTE_CRYPTO_CIPHER_AES_XTS:\n+\t\t\tif (cparams->cipher_dataunit_len != 0 &&\n+\t\t\t    (data_len % cparams->cipher_dataunit_len))\n+\t\t\t\tpad_len = cparams->cipher_dataunit_len -\n+\t\t\t\t\t(data_len % cparams->cipher_dataunit_len);\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\tpad_len = 0;\n \t\t}\n@@ -827,6 +835,8 @@ l2fwd_main_loop(struct l2fwd_crypto_options *options)\n \t\t\t\t\t\tport_cparams[i].cipher_iv.length);\n \n \t\t\tport_cparams[i].cipher_algo = options->cipher_xform.cipher.algo;\n+\t\t\tport_cparams[i].cipher_dataunit_len =\n+\t\t\t\toptions->cipher_xform.cipher.dataunit_len;\n \t\t\t/* Set IV parameters */\n \t\t\toptions->cipher_xform.cipher.iv.offset = IV_OFFSET;\n \t\t\toptions->cipher_xform.cipher.iv.length =\n@@ -989,6 +999,7 @@ l2fwd_crypto_usage(const char *prgname)\n \t\t\"  --cipher_key_random_size SIZE: size of cipher key when generated randomly\\n\"\n \t\t\"  --cipher_iv IV (bytes separated with \\\":\\\")\\n\"\n \t\t\"  --cipher_iv_random_size SIZE: size of cipher IV when generated randomly\\n\"\n+\t\t\"  --cipher_dataunit_len SIZE: length of the algorithm data-unit\\n\"\n \n \t\t\"  --auth_algo ALGO\\n\"\n \t\t\"  --auth_op GENERATE / VERIFY\\n\"\n@@ -1215,6 +1226,7 @@ l2fwd_crypto_parse_args_long_options(struct l2fwd_crypto_options *options,\n \t\tstruct option *lgopts, int option_index)\n {\n \tint retval;\n+\tint val;\n \n \tif (strcmp(lgopts[option_index].name, \"cdev_type\") == 0) {\n \t\tretval = parse_cryptodev_type(&options->type, optarg);\n@@ -1245,6 +1257,16 @@ l2fwd_crypto_parse_args_long_options(struct l2fwd_crypto_options *options,\n \t\t\treturn -1;\n \t}\n \n+\telse if (strcmp(lgopts[option_index].name, \"cipher_dataunit_len\") == 0) {\n+\t\tretval = parse_size(&val, optarg);\n+\t\tif (retval == 0 && val >= 0 && val <= UINT16_MAX) {\n+\t\t\toptions->cipher_xform.cipher.dataunit_len =\n+\t\t\t\t\t\t\t\t(uint16_t)val;\n+\t\t\treturn 0;\n+\t\t} else\n+\t\t\treturn -1;\n+\t}\n+\n \telse if (strcmp(lgopts[option_index].name, \"cipher_key_random_size\") == 0)\n \t\treturn parse_size(&options->ckey_random_size, optarg);\n \n@@ -1469,6 +1491,7 @@ l2fwd_crypto_default_options(struct l2fwd_crypto_options *options)\n \n \toptions->cipher_xform.cipher.algo = RTE_CRYPTO_CIPHER_AES_CBC;\n \toptions->cipher_xform.cipher.op = RTE_CRYPTO_CIPHER_OP_ENCRYPT;\n+\toptions->cipher_xform.cipher.dataunit_len = 0;\n \n \t/* Authentication Data */\n \toptions->auth_xform.type = RTE_CRYPTO_SYM_XFORM_AUTH;\n@@ -1644,6 +1667,7 @@ l2fwd_crypto_parse_args(struct l2fwd_crypto_options *options,\n \t\t\t{ \"cipher_key_random_size\", required_argument, 0, 0 },\n \t\t\t{ \"cipher_iv\", required_argument, 0, 0 },\n \t\t\t{ \"cipher_iv_random_size\", required_argument, 0, 0 },\n+\t\t\t{ \"cipher_dataunit_len\", required_argument, 0, 0},\n \n \t\t\t{ \"auth_algo\", required_argument, 0, 0 },\n \t\t\t{ \"auth_op\", required_argument, 0, 0 },\n@@ -2158,6 +2182,43 @@ check_capabilities(struct l2fwd_crypto_options *options, uint8_t cdev_id)\n \t\t\t\treturn -1;\n \t\t\t}\n \t\t}\n+\n+\t\tif (options->cipher_xform.cipher.dataunit_len > 0) {\n+\t\t\tif (!(dev_info.feature_flags &\n+\t\t\t\tRTE_CRYPTODEV_FF_CIPHER_MULTIPLE_DATA_UNITS)) {\n+\t\t\t\t\tRTE_LOG(DEBUG, USER1,\n+\t\t\t\t\t\t\"Device %u does not support \"\n+\t\t\t\t\t\t\"cipher multiple data units\\n\",\n+\t\t\t\t\t\tcdev_id);\n+\t\t\t\t\treturn -1;\n+\t\t\t}\n+\t\t\tif (cap->sym.cipher.dataunit_set != 0) {\n+\t\t\t\tint ret = 0;\n+\n+\t\t\t\tswitch (options->cipher_xform.cipher.dataunit_len) {\n+\t\t\t\tcase 512:\n+\t\t\t\t\tif (!(cap->sym.cipher.dataunit_set &\n+\t\t\t\t\t\tRTE_CRYPTO_CIPHER_DATA_UNIT_LEN_512_BYTES))\n+\t\t\t\t\t\tret = -1;\n+\t\t\t\t\tbreak;\n+\t\t\t\tcase 4096:\n+\t\t\t\t\tif (!(cap->sym.cipher.dataunit_set &\n+\t\t\t\t\t\tRTE_CRYPTO_CIPHER_DATA_UNIT_LEN_4096_BYTES))\n+\t\t\t\t\t\tret = -1;\n+\t\t\t\t\tbreak;\n+\t\t\t\tdefault:\n+\t\t\t\t\tret = -1;\n+\t\t\t\t}\n+\t\t\t\tif (ret == -1) {\n+\t\t\t\t\tRTE_LOG(DEBUG, USER1,\n+\t\t\t\t\t\t\"Device %u does not support \"\n+\t\t\t\t\t\t\"data-unit length %u\\n\",\n+\t\t\t\t\t\tcdev_id,\n+\t\t\t\t\t\toptions->cipher_xform.cipher.dataunit_len);\n+\t\t\t\t\treturn -1;\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n \t}\n \n \t/* Set auth parameters */\n",
    "prefixes": []
}