All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla@dpdk.org
To: dev@dpdk.org
Subject: [dpdk-dev] [Bug 864] [dpdk-21.11]pmd_stacked_bonded/test_mode_backup_rx:after setup stacked bonded ports, start top level bond port failed
Date: Fri, 29 Oct 2021 05:52:54 +0000	[thread overview]
Message-ID: <bug-864-3@http.bugs.dpdk.org/> (raw)

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

            Bug ID: 864
           Summary: [dpdk-21.11]pmd_stacked_bonded/test_mode_backup_rx:aft
                    er setup stacked bonded ports,start top level bond
                    port failed
           Product: DPDK
           Version: 21.11
          Hardware: All
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: core
          Assignee: dev@dpdk.org
          Reporter: leweix.yang@intel.com
  Target Milestone: ---

DPDK version: Use make showversion or for a non-released version: git remote -v
&& git show-ref --heads
 21.11-rc1:6c390cee976e33b1e9d8562d32c9d3ebe5d9ce94
Other software versions: name/version for QEMU, OVS, etc. Repeat as required.
OS: Red Hat Enterprise Linux 8.4 4.18.0-305.19.1.el8_4.x86_64 
Compiler: gcc (GCC) 8.4.1 20200928 (Red Hat 8.4.1-1)
Hardware platform: Intel(R) Xeon(R) Gold 6252N CPU @ 2.30GHz.
NIC hardware: Ethernet Controller XXV710 for 25GbE SFP28 158b
NIC firmware: 8.30 0x8000a485 1.2926.0
Device version: 2.17.1


Test Setup
Steps to reproduce
List the steps to reproduce the issue.

1.build dpdk 
# CC=gcc meson -Denable_kmods=True -Dlibdir=lib  --default-library=static
x86_64-native-bsdapp-gcc
# ninja -C x86_64-native-bsdapp-gcc
2.lanch app
# x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l
1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71
-n 4 -a 0000:af:00.0 -a 0000:af:00.1 --file-prefix=dpdk_875252_20211027094057 –
-i
3.execute dpdk command 
# port stop all
# create bonded device 1 1
# add bonding slave 0 2
# create bonded device 1 1
# add bonding slave 1 3
# create bonded device 1 1
# add bonding slave 2 4
# add bonding slave 3 4
# set portlist 0,1,2,3,4
# port start 4



Show the output from the previous commands:

# testpmd>port start 4
Configuring Port 4 (socket 1)
Device with port_id=2 already stopped
Port 2 must be configured before MTU set
slave_configure(1741) - rte_eth_dev_set_mtu: port 2, err (-22)
bond_ethdev_start(1994) - bonded port (4) failed to reconfigure slave device
(2)
Fail to start port 4: Operation not permitted
Please stop the ports first
Done
testpmd>



Expected Result
Explain what is the expected result in text or as an example output:

# execute success
Regression
Is this issue a regression: (Y/N) Y

git show b26bee10ee37ac2e54011f7bd57ca806bd9f8f6c
commit b26bee10ee37ac2e54011f7bd57ca806bd9f8f6c
Author: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Date: Fri Oct 22 13:18:28 2021 +0300

ethdev: forbid MTU set before device configure

rte_eth_dev_configure() always sets MTU to either dev_conf.rxmode.mtu
or RTE_ETHER_MTU if application doesn't provide the value.
So, there is no point to allow rte_eth_dev_set_mtu() before since
set value will be overwritten on configure anyway.

Fixes: 1bb4a528c41f ("ethdev: fix max Rx packet length")

Signed-off-by: Ivan Ilchenko <ivan.ilchenko@oktetlabs.ru>
Signed-off-by: Andrew Rybchenko <andrew.rybchenko@oktetlabs.ru>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>

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

                 reply	other threads:[~2021-10-29  5:52 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-864-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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.