Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/129566/?format=api
http://patchwork.dpdk.org/api/patches/129566/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/patch/20230717065253.1611703-2-jin.ling@intel.com/", "project": { "id": 3, "url": "http://patchwork.dpdk.org/api/projects/3/?format=api", "name": "DTS", "link_name": "dts", "list_id": "dts.dpdk.org", "list_email": "dts@dpdk.org", "web_url": "", "scm_url": "git://dpdk.org/tools/dts", "webscm_url": "http://git.dpdk.org/tools/dts/", "list_archive_url": "https://inbox.dpdk.org/dts", "list_archive_url_format": "https://inbox.dpdk.org/dts/{}", "commit_url_format": "" }, "msgid": "<20230717065253.1611703-2-jin.ling@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dts/20230717065253.1611703-2-jin.ling@intel.com", "date": "2023-07-17T06:52:51", "name": "[V1,1/3] test_plan/ice_config_port_speed: add new test plan", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "f9fa974bd08777caeb07b28d31fb1c921eff317b", "submitter": { "id": 2652, "url": "http://patchwork.dpdk.org/api/people/2652/?format=api", "name": "Jin Ling", "email": "jin.ling@intel.com" }, "delegate": null, "mbox": "http://patchwork.dpdk.org/project/dts/patch/20230717065253.1611703-2-jin.ling@intel.com/mbox/", "series": [ { "id": 28950, "url": "http://patchwork.dpdk.org/api/series/28950/?format=api", "web_url": "http://patchwork.dpdk.org/project/dts/list/?series=28950", "date": "2023-07-17T06:52:50", "name": "add new test suite ice_config_port_speed", "version": 1, "mbox": "http://patchwork.dpdk.org/series/28950/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/129566/comments/", "check": "pending", "checks": "http://patchwork.dpdk.org/api/patches/129566/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<dts-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 E58F742E96;\n\tMon, 17 Jul 2023 08:53:24 +0200 (CEST)", "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E1905410D7;\n\tMon, 17 Jul 2023 08:53:24 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n by mails.dpdk.org (Postfix) with ESMTP id 702CA4068E\n for <dts@dpdk.org>; Mon, 17 Jul 2023 08:53:23 +0200 (CEST)", "from fmsmga003.fm.intel.com ([10.253.24.29])\n by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Jul 2023 23:53:02 -0700", "from dpdk-lingjin.sh.intel.com ([10.67.114.163])\n by FMSMGA003.fm.intel.com with ESMTP; 16 Jul 2023 23:53:00 -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=1689576803; x=1721112803;\n h=from:to:cc:subject:date:message-id:in-reply-to:\n references:mime-version:content-transfer-encoding;\n bh=RZLXtFTLQbS0F52Tsb66fHiiau+jWrH5DT9tTTHz3T8=;\n b=bCWFzqemF8PGQn2SvqmgC1ufN9Ks8nbypmqOElqP2wHFTgnZ0kYWWyj7\n /7HdUW4DAgn6a7IjGj2QICBKGFac1XhSAAkZ10EBff0bwni6mjiX0ora4\n 75K1ezrsZt7qOQY6LiXkmTZ9KXBOuLF0Zfdxh3Owjx3D4vguVObfK06dA\n mU3Gu2MQwWzJ5TB5AbkLzNkqBjA6jEEbFgfF8nLOC5raSqbGGQTU5oYBZ\n ZNSFECl8DP8s503GOj/oBzTlMEQICnx2OIj6Cjt09ipEciSJ2W8Vvom+q\n ZjQqjZVhUUL2uLPHHDA0sVBktd+SARqYWWuv6GEfxQxYlJKD35bE/ZpNT g==;", "X-IronPort-AV": [ "E=McAfee;i=\"6600,9927,10773\"; a=\"363321511\"", "E=Sophos;i=\"6.01,211,1684825200\"; d=\"scan'208\";a=\"363321511\"", "E=McAfee;i=\"6600,9927,10773\"; a=\"813189566\"", "E=Sophos;i=\"6.01,211,1684825200\"; d=\"scan'208\";a=\"813189566\"" ], "X-ExtLoop1": "1", "From": "Jin Ling <jin.ling@intel.com>", "To": "dts@dpdk.org", "Cc": "Jin Ling <jin.ling@intel.com>", "Subject": "[DTS][PATCH V1 1/3] test_plan/ice_config_port_speed: add new test\n plan", "Date": "Mon, 17 Jul 2023 14:52:51 +0800", "Message-Id": "<20230717065253.1611703-2-jin.ling@intel.com>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20230717065253.1611703-1-jin.ling@intel.com>", "References": "<20230717065253.1611703-1-jin.ling@intel.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "dts@dpdk.org", "X-Mailman-Version": "2.1.29", "Precedence": "list", "List-Id": "test suite reviews and discussions <dts.dpdk.org>", "List-Unsubscribe": "<https://mails.dpdk.org/options/dts>,\n <mailto:dts-request@dpdk.org?subject=unsubscribe>", "List-Archive": "<http://mails.dpdk.org/archives/dts/>", "List-Post": "<mailto:dts@dpdk.org>", "List-Help": "<mailto:dts-request@dpdk.org?subject=help>", "List-Subscribe": "<https://mails.dpdk.org/listinfo/dts>,\n <mailto:dts-request@dpdk.org?subject=subscribe>", "Errors-To": "dts-bounces@dpdk.org" }, "content": "Signed-off-by: Jin Ling <jin.ling@intel.com>\n---\n .../ice_config_port_speed_test_plan.rst | 141 ++++++++++++++++++\n 1 file changed, 141 insertions(+)\n create mode 100644 test_plans/ice_config_port_speed_test_plan.rst\n\n--\n2.25.1", "diff": "diff --git a/test_plans/ice_config_port_speed_test_plan.rst b/test_plans/ice_config_port_speed_test_plan.rst\nnew file mode 100644\nindex 00000000..afb13896\n--- /dev/null\n+++ b/test_plans/ice_config_port_speed_test_plan.rst\n@@ -0,0 +1,141 @@\n+.. Copyright (c) <2022-2023>, Intel Corporation\n+ All rights reserved.\n+\n+===========================\n+ICE Config Port Speed Tests\n+===========================\n+\n+Description\n+===========\n+\n+This document provides the testplan for configuring the port speed function in testpmd\n+You can get the link speed supported of the NIC by executing `ethtool <iface>`, only the supported speed can be configured,\n+if its' link partner also supports this speed, then once the speed of the dut is reconfigured, the link partner's speed will also be configured\n+\n+\n+Prerequisites\n+=============\n+\n+topology\n+--------\n+\n+dut_port_0 <-----------> tester_port_0\n+\n+\n+Hardware\n+--------\n+\n+Supported NICs: columbiaville_25g/columbiaville_100g\n+\n+Software\n+--------\n+\n+dpdk: http://dpdk.org/git/dpdk\n+scapy: http://www.secdev.org/projects/scapy/\n+\n+General set up\n+--------------\n+\n+1. Compile DPDK::\n+\n+ CC=gcc meson --werror -Denable_kmods=True -Dlibdir=lib --default-library=static x86_64-native-linuxapp-gcc\n+ ninja -C x86_64-native-linuxapp-gcc -j 110\n+\n+2. Get the pci device id of DUT, for example::\n+\n+ ./usertools/dpdk-devbind.py -s\n+\n+ 0000:31:00.0 'Device 159b' if=ens4 drv=ice unused=vfio-pci\n+\n+3. Get the supported speed of dut and tester::\n+\n+ Dut::\n+ ethtool ens785f0:\n+ Settings for ens785f0:\n+ Supported ports: [ FIBRE ]\n+ Supported link modes: 1000baseT/Full\n+ 10000baseT/Full\n+ 25000baseCR/Full\n+ 25000baseSR/Full\n+ 1000baseX/Full\n+ 10000baseSR/Full\n+ 10000baseLR/Full\n+ Supported pause frame use: Symmetric\n+ Supports auto-negotiation: Yes\n+ Supported FEC modes: None\n+ Advertised link modes: 1000baseX/Full\n+ 10000baseSR/Full\n+\n+ tester::\n+ ethtool ens260f0\n+ Settings for ens260f0:\n+ Supported ports: [ FIBRE ]\n+ Supported link modes: 1000baseX/Full\n+ 10000baseSR/Full\n+ Supported pause frame use: Symmetric Receive-only\n+ Supports auto-negotiation: Yes\n+ Supported FEC modes: Not reported\n+ Advertised link modes: 1000baseX/Full\n+ 10000baseSR/Full\n+ Advertised pause frame use: No\n+ Advertised auto-negotiation: Yes\n+\n+ Notice that the link speed of dut cannot be configured when dut is `link down`,\n+ so if dut is `link up` , only `Advertised link modes` can be cofigured.\n+\n+\n+Test case 1: port config link speed\n+-------------------------------------\n+\n+In this test case, use `port config <port_id> speed 10|100|1000|10000|25000|40000|50000|100000|200000|400000|auto duplex half|full|auto`\n+to set port speed, then use `show port info <port_id>` can see the new speed and duplex.\n+\n+test steps\n+~~~~~~~~~~\n+1. launch testpmd::\n+\n+ ./x86_64-native-linuxapp-gcc/app/dpdk-testpmd -c f -n 4 -a 31:00.0 -- -i\n+\n+2. make sure that the link status of dut is up::\n+\n+ testpmd> show port info 0\n+ ********************* Infos for port 0 *********************\n+ MAC address: B4:96:91:BB:64:D8\n+ Device name: 31:00.0\n+ Driver name: net_ice\n+ Firmware-version: 4.20 0x8001642c 1.3341.0\n+ Devargs:\n+ Connect to socket: 0\n+ memory allocation on the socket: 0\n+ *Link status: up\n+ Link speed: 100 Gbps*\n+ Link duplex: full-duplex\n+ Autoneg status: On\n+\n+3. stop all ports and set new speed::\n+\n+ testpmd> port stop all\n+ testpmd> port config 0 speed 1000|100000 duplex full\n+ testpmd> port start all\n+\n+Expected result\n+~~~~~~~~~~~~~~~\n+\n+ 1. Check that the speed has been changed::\n+\n+ testpmd> show port info all\n+\n+ ********************* Infos for port 0 *********************\n+ ...\n+ Link speed: 10 Gbps\n+ Link duplex: full-duplex\n+ ...\n+\n+ 2. check tester's has been changed if it supports this spped::\n+\n+ ethtool ens10:\n+ Settings for ens10:\n+ ...\n+ Speed: 10000Mb/s\n+ Duplex: Full\n+ ...\n", "prefixes": [ "V1", "1/3" ] }{ "id": 129566, "url": "