DPDK patches and discussions
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 693] [dpdk-21.05] shutdown_api/change_linkspeed: port config speed is invalid
Date: Tue, 27 Apr 2021 02:51:53 +0000	[thread overview]
Message-ID: <bug-693-3@http.bugs.dpdk.org/> (raw)

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.

                 reply	other threads:[~2021-04-27  2:51 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=bug-693-3@http.bugs.dpdk.org/ \
    --to=bugzilla@dpdk.org \
    --cc=dev@dpdk.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).