DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [Bug 693] [dpdk-21.05] shutdown_api/change_linkspeed: port config speed is invalid
@ 2021-04-27  2:51 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2021-04-27  2:51 UTC (permalink / raw)
  To: dev

https://bugs.dpdk.org/show_bug.cgi?id=693

            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 Stream 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: Ethernet Controller I225-LM 15f2
 driver:igc 0.0.1-k(foxville)

Reproduce Step:
1.bind port on vfio-pci
#usertools/dpdk-devbind.py --force --bind=vfio-pci 0000:81:00.0 

2. launch test-pmd
#x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1,2 -n 4 -a 0000:81:00.0
--file-prefix=dpdk_23328_20210427094637   -- -i --portmask=0x1
--port-topology=loop

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     
Version the regression was introduced: Specify git id if known.
First bad commit:
commit 312312e928c71cb6b45aeaab2b421d059897dd07 
Author: Huisong Li <lihuisong@huawei.com>
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 <lihuisong@huawei.com>
Signed-off-by: Min Hu (Connor) <humin29@huawei.com>
Acked-by: Ferruh Yigit <ferruh.yigit@intel.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>

-- 
You are receiving this mail because:
You are the assignee for the bug.

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-04-27  2:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-27  2:51 [dpdk-dev] [Bug 693] [dpdk-21.05] shutdown_api/change_linkspeed: port config speed is invalid bugzilla

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).