From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 48F26A0548; Tue, 27 Apr 2021 04:51:56 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D0B5340143; Tue, 27 Apr 2021 04:51:55 +0200 (CEST) Received: from inbox.dpdk.org (inbox.dpdk.org [95.142.172.178]) by mails.dpdk.org (Postfix) with ESMTP id 9E4504003E for ; Tue, 27 Apr 2021 04:51:54 +0200 (CEST) Received: by inbox.dpdk.org (Postfix, from userid 33) id 5BCC2A0A02; Tue, 27 Apr 2021 04:51:53 +0200 (CEST) From: bugzilla@dpdk.org To: dev@dpdk.org Date: Tue, 27 Apr 2021 02:51:53 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: DPDK X-Bugzilla-Component: testpmd X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: linglix.chen@intel.com X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: Normal X-Bugzilla-Assigned-To: dev@dpdk.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://bugs.dpdk.org/ Auto-Submitted: auto-generated X-Auto-Response-Suppress: All MIME-Version: 1.0 Subject: [dpdk-dev] [Bug 693] [dpdk-21.05] shutdown_api/change_linkspeed: port config speed is invalid X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" https://bugs.dpdk.org/show_bug.cgi?id=3D693 Bug ID: 693 Summary: [dpdk-21.05] shutdown_api/change_linkspeed: port config speed is invalid Product: DPDK Version: unspecified Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: Normal Component: testpmd Assignee: dev@dpdk.org Reporter: linglix.chen@intel.com Target Milestone: --- Environment DPDK version: 21.05-rc1: 1b593b9c832e9b284cc59665fe662242a3fc1daf OS: CentOS=C2=A0Stream release 8/4.18.0-277.el8.x86_64 Compiler: gcc (GCC) 8.4.1 Hardware platform: Intel(R) Xeon(R) CPU E5-2699 v4 @ 2.20GHz. NIC hardware:=C2=A0Ethernet Controller I225-LM 15f2 =C2=A0driver=EF=BC=9Aigc 0.0.1-k=EF=BC=88foxville=EF=BC=89 Reproduce Step: 1.bind port on vfio-pci #usertools/dpdk-devbind.py --force --bind=3Dvfio-pci 0000:81:00.0=20 2. launch test-pmd #x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2 -n 4 -a 0000:81:00.0 --file-prefix=3Ddpdk_23328_20210427094637 -- -i --portmask=3D0x1 --port-topology=3Dloop 3.tester: ethtool ens803 Settings for ens803: Supported ports: [ ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full 1000baseT/Full 2500baseT/Full 4.testpmd> set promisc all off testpmd> port stop all testpmd>port config 0 speed 100 duplex full testpmd>port start all 5.testpmd>show port info 0 ********************* Infos for port 0 ********************* MAC address: 00:A0:C9:00:00:00 Device name: 0000:81:00.0 Driver name: net_igc Firmware-version: 1.3, 0x800000c9 Devargs: Connect to socket: 1 memory allocation on the socket: 1 Link status: up Link speed: 2.5 Gbps Link duplex: full-duplex Expected Result: Link speed should be 100 Mbps. Regression Is this issue a regression: (Y/N) Y=C2=A0 =C2=A0 =C2=A0 Version the regression was introduced:=C2=A0Specify git id if known. First bad commit: commit 312312e928c71cb6b45aeaab2b421d059897dd07=C2=A0 Author: Huisong Li Date: Wed Apr 14 11:02:05 2021 +0800 app/testpmd: fix bitmap of link speeds when force speed Currently, when the user sets force link speed through 'link_speeds', bit(0) of 'link_speeds' is not set to 1(ETH_LINK_SPEED_FIXED), which conflicts with the definition. Fixes: 88fbedcd5e5a ("app/testpmd: move speed and duplex parsing in a function") Cc: stable@dpdk.org Signed-off-by: Huisong Li Signed-off-by: Min Hu (Connor) Acked-by: Ferruh Yigit Acked-by: Ajit Khaparde --=20 You are receiving this mail because: You are the assignee for the bug.=