Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/126963/?format=api
http://patches.dpdk.org/api/patches/126963/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20230518000050.71302-1-julien_dpdk@jaube.fr/", "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": "<20230518000050.71302-1-julien_dpdk@jaube.fr>", "list_archive_url": "https://inbox.dpdk.org/dev/20230518000050.71302-1-julien_dpdk@jaube.fr", "date": "2023-05-18T00:00:50", "name": "[v2] app/test-pmd : Add 2.5Gbps and 5Gbps support to test-pmd", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "dca952d7c8b566e6a5f03665f5d054cb2730a675", "submitter": { "id": 3069, "url": "http://patches.dpdk.org/api/people/3069/?format=api", "name": "Julien Aube", "email": "julien_dpdk@jaube.fr" }, "delegate": { "id": 319, "url": "http://patches.dpdk.org/api/users/319/?format=api", "username": "fyigit", "first_name": "Ferruh", "last_name": "Yigit", "email": "ferruh.yigit@amd.com" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20230518000050.71302-1-julien_dpdk@jaube.fr/mbox/", "series": [ { "id": 28047, "url": "http://patches.dpdk.org/api/series/28047/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=28047", "date": "2023-05-18T00:00:50", "name": "[v2] app/test-pmd : Add 2.5Gbps and 5Gbps support to test-pmd", "version": 2, "mbox": "http://patches.dpdk.org/series/28047/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/126963/comments/", "check": "fail", "checks": "http://patches.dpdk.org/api/patches/126963/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 61B6742B30;\n\tThu, 18 May 2023 02:00:54 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 3842A40EE1;\n\tThu, 18 May 2023 02:00:54 +0200 (CEST)", "from obconseil.eu (obconseil.eu [91.224.149.111])\n by mails.dpdk.org (Postfix) with ESMTP id 3A9FE40698\n for <dev@dpdk.org>; Thu, 18 May 2023 02:00:53 +0200 (CEST)", "by obconseil.eu (OpenSMTPD) with ESMTP id d3ee9a8c;\n Thu, 18 May 2023 02:00:52 +0200 (CEST)", "from router.ob (i19-lef02-th2-212-194-241-67.ft.lns.abo.bbox.fr\n [212.194.241.67])\n by obconseil.eu (OpenSMTPD) with ESMTPSA id ce56ce51\n (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO);\n Thu, 18 May 2023 02:00:52 +0200 (CEST)" ], "DKIM-Signature": "v=1; a=rsa-sha1; c=relaxed/relaxed; d=jaube.fr; h=from\n :to:cc:subject:date:message-id:mime-version\n :content-transfer-encoding; s=default; bh=LFKIyeilYo1G7+734GJcVv\n COK44=; b=ZMS1Hj80Ceefcrq+6uJ6rTyFpyccugCM3HyJ2c/RPZLlHTNUZA2Zgz\n uiAXXf1iJQ6rGvIQrbz+8k51eYjWlPOg8+lFiE4R5VMF+G8COmUG11WZDWsoXLFT\n DmcZNcg7HduLb16ir4XuBIFF+GMRXSNTL7RlMLBj3nqJ10p0hdsF4=", "From": "julien_dpdk@jaube.fr", "To": "dev@dpdk.org", "Cc": "Julien Aube <julien_dpdk@jaube.fr>", "Subject": "[PATCH v2] app/test-pmd : Add 2.5Gbps and 5Gbps support to test-pmd", "Date": "Thu, 18 May 2023 02:00:50 +0200", "Message-Id": "<20230518000050.71302-1-julien_dpdk@jaube.fr>", "X-Mailer": "git-send-email 2.30.2", "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": "From: Julien Aube <julien_dpdk@jaube.fr>\n\nThis extends the support for 2.5iG and 5G NIC commonly found today\n\nSigned-off-by: Julien Aube <julien_dpdk@jaube.fr>\n---\n app/test-pmd/cmdline.c | 14 +++++++++-----\n app/test-pmd/parameters.c | 6 ++++++\n doc/guides/testpmd_app_ug/run_app.rst | 2 ++\n doc/guides/testpmd_app_ug/testpmd_funcs.rst | 2 +-\n 4 files changed, 18 insertions(+), 6 deletions(-)", "diff": "diff --git a/app/test-pmd/cmdline.c b/app/test-pmd/cmdline.c\nindex 7b20bef4e9..727890ef38 100644\n--- a/app/test-pmd/cmdline.c\n+++ b/app/test-pmd/cmdline.c\n@@ -653,7 +653,7 @@ static void cmd_help_long_parsed(void *parsed_result,\n \t\t\t\" Detach physical or virtual dev by port_id\\n\\n\"\n \n \t\t\t\"port config (port_id|all)\"\n-\t\t\t\" speed (10|100|1000|10000|25000|40000|50000|100000|200000|400000|auto)\"\n+\t\t\t\" speed (10|100|1000|2500|5000|10000|25000|40000|50000|100000|200000|400000|auto)\"\n \t\t\t\" duplex (half|full|auto)\\n\"\n \t\t\t\" Set speed and duplex for all ports or port_id\\n\\n\"\n \n@@ -1344,6 +1344,10 @@ parse_and_check_speed_duplex(char *speedstr, char *duplexstr, uint32_t *speed)\n \t\t}\n \t\tif (!strcmp(speedstr, \"1000\")) {\n \t\t\t*speed = RTE_ETH_LINK_SPEED_1G;\n+\t\t} else if (!strcmp(speedstr, \"2500\")) {\n+\t\t\t*speed = RTE_ETH_LINK_SPEED_2_5G;\n+\t\t} else if (!strcmp(speedstr, \"5000\")) {\n+\t\t\t*speed = RTE_ETH_LINK_SPEED_5G;\n \t\t} else if (!strcmp(speedstr, \"10000\")) {\n \t\t\t*speed = RTE_ETH_LINK_SPEED_10G;\n \t\t} else if (!strcmp(speedstr, \"25000\")) {\n@@ -1408,7 +1412,7 @@ static cmdline_parse_token_string_t cmd_config_speed_all_item1 =\n \tTOKEN_STRING_INITIALIZER(struct cmd_config_speed_all, item1, \"speed\");\n static cmdline_parse_token_string_t cmd_config_speed_all_value1 =\n \tTOKEN_STRING_INITIALIZER(struct cmd_config_speed_all, value1,\n-\t\t\t\t\"10#100#1000#10000#25000#40000#50000#100000#200000#400000#auto\");\n+\t\t\t\t\"10#100#1000#2500#5000#10000#25000#40000#50000#100000#200000#400000#auto\");\n static cmdline_parse_token_string_t cmd_config_speed_all_item2 =\n \tTOKEN_STRING_INITIALIZER(struct cmd_config_speed_all, item2, \"duplex\");\n static cmdline_parse_token_string_t cmd_config_speed_all_value2 =\n@@ -1419,7 +1423,7 @@ static cmdline_parse_inst_t cmd_config_speed_all = {\n \t.f = cmd_config_speed_all_parsed,\n \t.data = NULL,\n \t.help_str = \"port config all speed \"\n-\t\t\"10|100|1000|10000|25000|40000|50000|100000|200000|400000|auto duplex \"\n+\t\t\"10|100|1000|2500|5000|10000|25000|40000|50000|100000|200000|400000|auto duplex \"\n \t\t\t\t\t\t\t\"half|full|auto\",\n \t.tokens = {\n \t\t(void *)&cmd_config_speed_all_port,\n@@ -1483,7 +1487,7 @@ static cmdline_parse_token_string_t cmd_config_speed_specific_item1 =\n \t\t\t\t\t\t\t\t\"speed\");\n static cmdline_parse_token_string_t cmd_config_speed_specific_value1 =\n \tTOKEN_STRING_INITIALIZER(struct cmd_config_speed_specific, value1,\n-\t\t\t\t\"10#100#1000#10000#25000#40000#50000#100000#200000#400000#auto\");\n+\t\t\t\t\"10#100#1000#2500#5000#10000#25000#40000#50000#100000#200000#400000#auto\");\n static cmdline_parse_token_string_t cmd_config_speed_specific_item2 =\n \tTOKEN_STRING_INITIALIZER(struct cmd_config_speed_specific, item2,\n \t\t\t\t\t\t\t\t\"duplex\");\n@@ -1495,7 +1499,7 @@ static cmdline_parse_inst_t cmd_config_speed_specific = {\n \t.f = cmd_config_speed_specific_parsed,\n \t.data = NULL,\n \t.help_str = \"port config <port_id> speed \"\n-\t\t\"10|100|1000|10000|25000|40000|50000|100000|200000|400000|auto duplex \"\n+\t\t\"10|100|1000|2500|5000|10000|25000|40000|50000|100000|200000|400000|auto duplex \"\n \t\t\t\t\t\t\t\"half|full|auto\",\n \t.tokens = {\n \t\t(void *)&cmd_config_speed_specific_port,\ndiff --git a/app/test-pmd/parameters.c b/app/test-pmd/parameters.c\nindex 3b37809baf..e38f3dfacd 100644\n--- a/app/test-pmd/parameters.c\n+++ b/app/test-pmd/parameters.c\n@@ -550,6 +550,12 @@ parse_link_speed(int n)\n \tcase 1000:\n \t\tspeed |= RTE_ETH_LINK_SPEED_1G;\n \t\tbreak;\n+\tcase 2500:\n+\t\tspeed |= RTE_ETH_LINK_SPEED_2_5G;\n+\t\tbreak;\n+\tcase 5000:\n+\t\tspeed |= RTE_ETH_LINK_SPEED_5G;\n+\t\tbreak;\n \tcase 10000:\n \t\tspeed |= RTE_ETH_LINK_SPEED_10G;\n \t\tbreak;\ndiff --git a/doc/guides/testpmd_app_ug/run_app.rst b/doc/guides/testpmd_app_ug/run_app.rst\nindex 57b23241cf..e60ba4d345 100644\n--- a/doc/guides/testpmd_app_ug/run_app.rst\n+++ b/doc/guides/testpmd_app_ug/run_app.rst\n@@ -388,6 +388,8 @@ The command line options are:\n 10 - 10Mbps (not supported)\n 100 - 100Mbps (not supported)\n 1000 - 1Gbps\n+ 2500 - 2.5Gbps\n+ 5000 - 5Gbps\n 10000 - 10Gbps\n 25000 - 25Gbps\n 40000 - 40Gbps\ndiff --git a/doc/guides/testpmd_app_ug/testpmd_funcs.rst b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\nindex 8f23847859..b727b689c1 100644\n--- a/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n+++ b/doc/guides/testpmd_app_ug/testpmd_funcs.rst\n@@ -2048,7 +2048,7 @@ port config - speed\n \n Set the speed and duplex mode for all ports or a specific port::\n \n- testpmd> port config (port_id|all) speed (10|100|1000|10000|25000|40000|50000|100000|200000|400000|auto) \\\n+ testpmd> port config (port_id|all) speed (10|100|1000|2500|5000|10000|25000|40000|50000|100000|200000|400000|auto) \\\n duplex (half|full|auto)\n \n port config - queues/descriptors\n", "prefixes": [ "v2" ] }{ "id": 126963, "url": "