* [DPDK/ethdev Bug 1384] PCAP PMD reconfiguration failure
@ 2024-02-26 9:15 bugzilla
0 siblings, 0 replies; only message in thread
From: bugzilla @ 2024-02-26 9:15 UTC (permalink / raw)
To: dev
[-- Attachment #1: Type: text/plain, Size: 1892 bytes --]
https://bugs.dpdk.org/show_bug.cgi?id=1384
Bug ID: 1384
Summary: PCAP PMD reconfiguration failure
Product: DPDK
Version: 22.11
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: Normal
Component: ethdev
Assignee: dev@dpdk.org
Reporter: matias.elo@nokia.com
Target Milestone: ---
Created attachment 275
--> https://bugs.dpdk.org/attachment.cgi?id=275&action=edit
l2fwd patch to demonstrate issue
When a PCAP PMD Ethernet device is first configured, the selected number of RX
and TX queues overrides the max values initially returned by
rte_eth_dev_info_get() (max_rx_queues, max_tx_queues). Now, if one tries to
reconfigure the device with a larger queue count(s), rte_eth_dev_configure()
will fail to an internal capability check. Reconfiguring devices this way is
useful for example in CI usage.
The issue can be reproduced with the attached simple patch to l2fwd example.
Example output from patched l2fwd (v22.11.4):
$ sudo ./examples/dpdk-l2fwd --no-pci --vdev net_pcap0,iface=lo -- -p 0x1
EAL: Detected CPU lcores: 48
EAL: Detected NUMA nodes: 1
EAL: Detected static linkage of DPDK
EAL: Multi-process socket /var/run/dpdk/rte/mp_socket
EAL: Selected IOVA mode 'VA'
EAL: VFIO support initialized
TELEMETRY: No legacy callbacks, legacy socket not created
MAC updating enabled
Notice: odd number of ports in portmask.
Lcore 0: RX port 0 TX port 0
Initializing port 0...
orig. max_rx_queues: 1
orig. max_tx_queues: 1
after conf max_rx_queues: 0
after conf max_tx_queues: 1
Ethdev port_id=0 nb_rx_queues=1 > 0
EAL: Error - exiting with code: 1
Cause: Cannot configure device: err=-22, port=0
--
You are receiving this mail because:
You are the assignee for the bug.
[-- Attachment #2: Type: text/html, Size: 3912 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-26 9:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-26 9:15 [DPDK/ethdev Bug 1384] PCAP PMD reconfiguration failure 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).