Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/121935/?format=api
https://patches.dpdk.org/api/patches/121935/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20230112154948.244284-7-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "https://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": "<20230112154948.244284-7-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230112154948.244284-7-cristian.dumitrescu@intel.com", "date": "2023-01-12T15:49:43", "name": "[V3,06/11] examples/pipeline: add CLI command for crypto device", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "f2b951e86bad8e17b1837890121158a05df71449", "submitter": { "id": 19, "url": "https://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 1, "url": "https://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20230112154948.244284-7-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 26510, "url": "https://patches.dpdk.org/api/series/26510/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=26510", "date": "2023-01-12T15:49:38", "name": "[V3,01/11] pipeline: add IPsec support", "version": 3, "mbox": "https://patches.dpdk.org/series/26510/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/121935/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/121935/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 02479423B8;\n\tThu, 12 Jan 2023 16:55:37 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 8D6BC42D91;\n\tThu, 12 Jan 2023 16:55:03 +0100 (CET)", "from mga07.intel.com (mga07.intel.com [134.134.136.100])\n by mails.dpdk.org (Postfix) with ESMTP id 8E3D042D7B\n for <dev@dpdk.org>; Thu, 12 Jan 2023 16:55:00 +0100 (CET)", "from fmsmga005.fm.intel.com ([10.253.24.32])\n by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 12 Jan 2023 07:49:58 -0800", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.222.53])\n by fmsmga005.fm.intel.com with ESMTP; 12 Jan 2023 07:49:57 -0800" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1673538900; x=1705074900;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=nL1INlUzFzzxtLtYB0sxj/0maT11SBrkrI+lKOqS4cI=;\n b=hFaHi+poGrn0iRruDuDr6mTVwwSwhGo5XdfjX4ko6IFiQk0fMQ87AW7v\n mJRj28iURakXBvDPfbKb6U5mD2eLQGVVFASZT1hw437US+2kXnhmZDA8J\n GpAis8yT05zbx0wxC8fariCfAuwyqwNB4lIaFhgkZgWJcQKjHZlD02qiC\n 0zy1RM9iIK/fxF+zM5yLlXQconVhNJ7OXJKe42alLHk6klVQOWSkDBmU7\n 0I2f+T2ap5qJV9AGPF1MN0wNvDwtN2bYtAHiQ5fESESw669knLZcohhWS\n 5eiBxkhVUrUYzq6f98p7smnpLq/cAQUheFyPI7CabrE14PjRKIsj01J0A A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10588\"; a=\"388227783\"", "E=Sophos;i=\"5.97,211,1669104000\"; d=\"scan'208\";a=\"388227783\"", "E=McAfee;i=\"6500,9779,10588\"; a=\"986635419\"", "E=Sophos;i=\"5.97,211,1669104000\"; d=\"scan'208\";a=\"986635419\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "Kamalakannan R <kamalakannan.r@intel.com>", "Subject": "[PATCH V3 06/11] examples/pipeline: add CLI command for crypto device", "Date": "Thu, 12 Jan 2023 15:49:43 +0000", "Message-Id": "<20230112154948.244284-7-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230112154948.244284-1-cristian.dumitrescu@intel.com>", "References": "<20230111205608.87953-1-cristian.dumitrescu@intel.com>\n <20230112154948.244284-1-cristian.dumitrescu@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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": "Add CLI command for the configuration of crypto devices.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Kamalakannan R <kamalakannan.r@intel.com>\n---\n examples/pipeline/cli.c | 63 +++++++++++++++++++++++++++++++++++++++++\n 1 file changed, 63 insertions(+)", "diff": "diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c\nindex f4c8300ea7..6b5d5a3370 100644\n--- a/examples/pipeline/cli.c\n+++ b/examples/pipeline/cli.c\n@@ -521,6 +521,58 @@ cmd_ring(char **tokens,\n \t}\n }\n \n+static const char cmd_cryptodev_help[] =\n+\"cryptodev <cryptodev_name> queues <n_queue_pairs> qsize <queue_size>\\n\";\n+\n+static void\n+cmd_cryptodev(char **tokens,\n+\t uint32_t n_tokens,\n+\t char *out,\n+\t size_t out_size,\n+\t void *obj __rte_unused)\n+{\n+\tstruct cryptodev_params params;\n+\tchar *cryptodev_name;\n+\tint status;\n+\n+\tif (n_tokens != 6) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[0], \"cryptodev\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"cryptodev\");\n+\t\treturn;\n+\t}\n+\n+\tcryptodev_name = tokens[1];\n+\n+\tif (strcmp(tokens[2], \"queues\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"queues\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint32(¶ms.n_queue_pairs, tokens[3])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"n_queue_pairs\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[4], \"qsize\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"qsize\");\n+\t\treturn;\n+\t}\n+\n+\n+\tif (parser_read_uint32(¶ms.queue_size, tokens[5])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"queue_size\");\n+\t\treturn;\n+\t}\n+\n+\tstatus = cryptodev_config(cryptodev_name, ¶ms);\n+\tif (status)\n+\t\tsnprintf(out, out_size, \"Crypto device configuration failed (%d).\\n\", status);\n+}\n+\n static const char cmd_pipeline_codegen_help[] =\n \"pipeline codegen <spec_file> <code_file>\\n\";\n \n@@ -2991,6 +3043,7 @@ cmd_help(char **tokens,\n \t\t\t\"\\tethdev\\n\"\n \t\t\t\"\\tethdev show\\n\"\n \t\t\t\"\\tring\\n\"\n+\t\t\t\"\\tcryptodev\\n\"\n \t\t\t\"\\tpipeline codegen\\n\"\n \t\t\t\"\\tpipeline libbuild\\n\"\n \t\t\t\"\\tpipeline build\\n\"\n@@ -3042,6 +3095,11 @@ cmd_help(char **tokens,\n \t\treturn;\n \t}\n \n+\tif (!strcmp(tokens[0], \"cryptodev\")) {\n+\t\tsnprintf(out, out_size, \"\\n%s\\n\", cmd_cryptodev_help);\n+\t\treturn;\n+\t}\n+\n \tif ((strcmp(tokens[0], \"pipeline\") == 0) &&\n \t\t(n_tokens == 2) && (strcmp(tokens[1], \"codegen\") == 0)) {\n \t\tsnprintf(out, out_size, \"\\n%s\\n\", cmd_pipeline_codegen_help);\n@@ -3297,6 +3355,11 @@ cli_process(char *in, char *out, size_t out_size, void *obj)\n \t\treturn;\n \t}\n \n+\tif (!strcmp(tokens[0], \"cryptodev\")) {\n+\t\tcmd_cryptodev(tokens, n_tokens, out, out_size, obj);\n+\t\treturn;\n+\t}\n+\n \tif (strcmp(tokens[0], \"pipeline\") == 0) {\n \t\tif ((n_tokens >= 3) &&\n \t\t\t(strcmp(tokens[1], \"codegen\") == 0)) {\n", "prefixes": [ "V3", "06/11" ] }{ "id": 121935, "url": "