Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/121848/?format=api
http://patches.dpdk.org/api/patches/121848/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230111205608.87953-7-cristian.dumitrescu@intel.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": "<20230111205608.87953-7-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20230111205608.87953-7-cristian.dumitrescu@intel.com", "date": "2023-01-11T20:56:03", "name": "[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": "http://patches.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230111205608.87953-7-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 26482, "url": "http://patches.dpdk.org/api/series/26482/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=26482", "date": "2023-01-11T20:55:57", "name": "pipeline: add IPsec support", "version": 1, "mbox": "http://patches.dpdk.org/series/26482/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/121848/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/121848/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 16B05423AF;\n\tWed, 11 Jan 2023 21:56:57 +0100 (CET)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 5570042D4A;\n\tWed, 11 Jan 2023 21:56:21 +0100 (CET)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n by mails.dpdk.org (Postfix) with ESMTP id 9EB5240A7D\n for <dev@dpdk.org>; Wed, 11 Jan 2023 21:56:17 +0100 (CET)", "from orsmga003.jf.intel.com ([10.7.209.27])\n by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 11 Jan 2023 12:56:17 -0800", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.222.53])\n by orsmga003.jf.intel.com with ESMTP; 11 Jan 2023 12:56:16 -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=1673470577; x=1705006577;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=+H3MltcnZ8fzvy/BpEhkr8JhVDasw344mTX0ievIsL8=;\n b=RrX5U1RqKDnEq7LA6nUCpjOmQUaXQS4qs8s1KBgcwQytw9dIZ3w4s66v\n IYlebxkHY0UNKILK6GF41OkVDtJ+cb9WrUxcz8i0np9AA2o4nbn5w7PXm\n WQDiVpR28ZhVFr9MDpc0lplH6c0VmDdFndf1Gm/U5dR4q/GWAIfwy9vgb\n sYdjLMr27M8XL/YUAVhlbKi54PNCcqKE+wMrQA4ZLwUEvZ0JIKsMxZtHl\n fBlRjQiV1+b35PL/UI2SpR/fKC+ARM1aNHpq+Z5HV3X+BJwIh9EYsY/L0\n 1qQ6yzW/sDICRqIztr7Km2mIewOM1+hPJ+5B/YIFHeKHeRuVFhQcCdYpw w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10586\"; a=\"303229785\"", "E=Sophos;i=\"5.96,317,1665471600\"; d=\"scan'208\";a=\"303229785\"", "E=McAfee;i=\"6500,9779,10586\"; a=\"607518870\"", "E=Sophos;i=\"5.96,317,1665471600\"; d=\"scan'208\";a=\"607518870\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "Kamalakannan R <kamalakannan.r@intel.com>", "Subject": "[PATCH 06/11] examples/pipeline: add CLI command for crypto device", "Date": "Wed, 11 Jan 2023 20:56:03 +0000", "Message-Id": "<20230111205608.87953-7-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20230111205608.87953-1-cristian.dumitrescu@intel.com>", "References": "<20230111205608.87953-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 37fc6f9551..47c1adf772 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@@ -2990,6 +3042,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@@ -3041,6 +3094,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@@ -3296,6 +3354,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": [ "06/11" ] }{ "id": 121848, "url": "