Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/115735/?format=api
http://patchwork.dpdk.org/api/patches/115735/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220901142041.2628537-13-cristian.dumitrescu@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20220901142041.2628537-13-cristian.dumitrescu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220901142041.2628537-13-cristian.dumitrescu@intel.com", "date": "2022-09-01T14:20:32", "name": "[V3,12/21] net/softnic: add pipeline build CLI command", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "2e4c01d2a2adadba52b3f1f7a1614369c27631f9", "submitter": { "id": 19, "url": "http://patchwork.dpdk.org/api/people/19/?format=api", "name": "Cristian Dumitrescu", "email": "cristian.dumitrescu@intel.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220901142041.2628537-13-cristian.dumitrescu@intel.com/mbox/", "series": [ { "id": 24503, "url": "http://patchwork.dpdk.org/api/series/24503/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=24503", "date": "2022-09-01T14:20:20", "name": "net/softnic: replace the legacy pipeline with SWX pipeline", "version": 3, "mbox": "http://patchwork.dpdk.org/series/24503/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/115735/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/115735/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 31CF5A0032;\n\tThu, 1 Sep 2022 16:22:25 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 18B1C42B92;\n\tThu, 1 Sep 2022 16:21:15 +0200 (CEST)", "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 3BB6C42B6D\n for <dev@dpdk.org>; Thu, 1 Sep 2022 16:21:08 +0200 (CEST)", "from fmsmga004.fm.intel.com ([10.253.24.48])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 01 Sep 2022 07:20:54 -0700", "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com.) ([10.237.223.157])\n by fmsmga004.fm.intel.com with ESMTP; 01 Sep 2022 07:20:53 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1662042068; x=1693578068;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=S4PXGKGKmO8ip4f1y4RiQ8zutx5+NEbe+ra7/Z/3X1M=;\n b=JTFgaTwAz1+hhE++2eXt3D+lz6a5tiSsHS/8nHa68Rg8ZWqqaKtpV4yo\n 8VLfg9hJ1ufOV++jBUBdkKFvpspSXJkN3gre/ZcnOJs84GD2gp4MAVMiy\n 50zMg6u9NzFhhAvy86tLWre0wuUsE8lqeNQO3Xmrr9Kvu95G++LLZSSyq\n dhS8eyzlX/XEOyofIv/SV7oD75KADb6jno5ZqncxWg99fQPhXncgZbfzu\n hZyrwvDMfisANTr44UfD3nwvCPSo+C0nd5hByTJPPI3KBT9+vunhHW49L\n obZBLjCYewb9oYKRARdX+AH5d2FXOTLLQzhGmVw6GDPoCDeFLMqtq1nnx g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6500,9779,10457\"; a=\"357444060\"", "E=Sophos;i=\"5.93,281,1654585200\"; d=\"scan'208\";a=\"357444060\"", "E=Sophos;i=\"5.93,281,1654585200\"; d=\"scan'208\";a=\"680870206\"" ], "X-ExtLoop1": "1", "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>", "To": "dev@dpdk.org", "Cc": "Yogesh Jangra <yogesh.jangra@intel.com>", "Subject": "[PATCH V3 12/21] net/softnic: add pipeline build CLI command", "Date": "Thu, 1 Sep 2022 14:20:32 +0000", "Message-Id": "<20220901142041.2628537-13-cristian.dumitrescu@intel.com>", "X-Mailer": "git-send-email 2.34.1", "In-Reply-To": "<20220901142041.2628537-1-cristian.dumitrescu@intel.com>", "References": "<20220804165839.1074817-1-cristian.dumitrescu@intel.com>\n <20220901142041.2628537-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 pipeline build.\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\nSigned-off-by: Yogesh Jangra <yogesh.jangra@intel.com>\n---\n drivers/net/softnic/rte_eth_softnic_cli.c | 66 +++++++++++++++++++++++\n 1 file changed, 66 insertions(+)", "diff": "diff --git a/drivers/net/softnic/rte_eth_softnic_cli.c b/drivers/net/softnic/rte_eth_softnic_cli.c\nindex 08cca7a8e4..cf71aa7b96 100644\n--- a/drivers/net/softnic/rte_eth_softnic_cli.c\n+++ b/drivers/net/softnic/rte_eth_softnic_cli.c\n@@ -365,6 +365,67 @@ cmd_softnic_pipeline_libbuild(struct pmd_internals *softnic __rte_unused,\n \tfree(buffer);\n }\n \n+/**\n+ * pipeline <pipeline_name> build lib <lib_file> io <iospec_file> numa <numa_node>\n+ */\n+static void\n+cmd_softnic_pipeline_build(struct pmd_internals *softnic,\n+\tchar **tokens,\n+\tuint32_t n_tokens,\n+\tchar *out,\n+\tsize_t out_size)\n+{\n+\tstruct pipeline *p = NULL;\n+\tchar *pipeline_name, *lib_file_name, *iospec_file_name;\n+\tuint32_t numa_node = 0;\n+\n+\t/* Parsing. */\n+\tif (n_tokens != 9) {\n+\t\tsnprintf(out, out_size, MSG_ARG_MISMATCH, tokens[0]);\n+\t\treturn;\n+\t}\n+\n+\tpipeline_name = tokens[1];\n+\n+\tif (strcmp(tokens[2], \"build\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"build\");\n+\t\treturn;\n+\t}\n+\n+\tif (strcmp(tokens[3], \"lib\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"lib\");\n+\t\treturn;\n+\t}\n+\n+\tlib_file_name = tokens[4];\n+\n+\tif (strcmp(tokens[5], \"io\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"io\");\n+\t\treturn;\n+\t}\n+\n+\tiospec_file_name = tokens[6];\n+\n+\tif (strcmp(tokens[7], \"numa\")) {\n+\t\tsnprintf(out, out_size, MSG_ARG_NOT_FOUND, \"numa\");\n+\t\treturn;\n+\t}\n+\n+\tif (parser_read_uint32(&numa_node, tokens[8])) {\n+\t\tsnprintf(out, out_size, MSG_ARG_INVALID, \"numa_node\");\n+\t\treturn;\n+\t}\n+\n+\t/* Pipeline create. */\n+\tp = softnic_pipeline_create(softnic,\n+\t\t\t\t pipeline_name,\n+\t\t\t\t lib_file_name,\n+\t\t\t\t iospec_file_name,\n+\t\t\t\t (int)numa_node);\n+\tif (!p)\n+\t\tsnprintf(out, out_size, \"Pipeline creation failed.\\n\");\n+}\n+\n /**\n * thread <thread_id> pipeline <pipeline_name> enable [ period <timer_period_ms> ]\n */\n@@ -504,6 +565,11 @@ softnic_cli_process(char *in, char *out, size_t out_size, void *arg)\n \t\t\tcmd_softnic_pipeline_libbuild(softnic, tokens, n_tokens, out, out_size);\n \t\t\treturn;\n \t\t}\n+\n+\t\tif (n_tokens >= 3 && !strcmp(tokens[2], \"build\")) {\n+\t\t\tcmd_softnic_pipeline_build(softnic, tokens, n_tokens, out, out_size);\n+\t\t\treturn;\n+\t\t}\n \t}\n \n \tif (strcmp(tokens[0], \"thread\") == 0) {\n", "prefixes": [ "V3", "12/21" ] }{ "id": 115735, "url": "