Skip to contentSkip to conversation

cpfl_vf_representor_rte_flow/port_representor_probe_scan: port attach failed

DPDK/testpmd Bug 1815 [email protected] 1 participant 2 messages Oct 29, 2025 – Nov 13, 2025

lore
Share & tools
lore
#0 lore raw

http://bugs.dpdk.org/show_bug.cgi?id=1815

            Bug ID: 1815
           Summary: [dpdk-25.11]
                    cpfl_vf_representor_rte_flow/port_representor_probe_sc
                    an: port attach failed
           Product: DPDK
           Version: 25.07
          Hardware: x86
                OS: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: testpmd
          Assignee: [email protected]
          Reporter: [email protected]

Target Milestone: ---

Environment
===========
dpdk-25.11.0-rc1: 39b54f2dcf44ad1f91eabc7080cd5dea763607fd
OS: Ubuntu 24.04.3 LTS/6.8.0-79-generic
Compiler: gcc version 13.3.0
Hardware platform: Hardware platform: Intel(R) Xeon(R) 6767P CPU @ 2.4GHz NIC hardware: mev
APF: Intel Corporation Device [8086:1452]
CPF: Intel Corporation Device [8086:1453]
NIC firmware:
ci-ts.release.2.0.0.11126
idpf-0.0.772

Test Setup
Steps to reproduce
==================
1. create 2 vfs on apf
echo 2 > /sys/bus/pci/devices/0000\:15\:00.0/sriov_numvfs

2. unbind cpf
./usertools/dpdk-devbind.py -u 0000:15:00.6

3. start testpmd without any port x86_64-native-linuxapp-gcc/app/dpdk-testpmd -l 1-3 -n 4 -- -i

4. bind cpf to vfio-pci
./usertools/dpdk-devbind.py -b 0000:15:00.6

5. testpmd attach port
testpmd> port attach 0000:15:00.6,vport=[0-1],representor=vf[0,1],flow_parser=./refpkg.json

Results:
========
Attaching a new port...
EAL: Using IOMMU type 1 (Type 1)
CPFL_INIT: cpfl_flow_init(): flow module is not initialized Error during enabling promiscuous mode for port 0: Operation not supported - ignore
Port 0 is attached. Now total ports is 1
Done

Expected Result:
================
Attaching a new port...
EAL: Using IOMMU type 1 (Type 1)
CPFL_DRIVER: cpfl_handle_cpchnl_event_msg(): unknown event received 6
CPFL_DRIVER: cpfl_handle_cpchnl_event_msg(): unknown event received 6 Error during enabling promiscuous mode for port 0: Operation not supported - ignore
Port 0 is attached. Now total ports is 1
Done
Error during enabling promiscuous mode for port 1: Operation not supported - ignore
Port 1 is attached. Now total ports is 2
Done
Error during enabling promiscuous mode for port 2: Operation not supported - ignore
Port 2 is attached. Now total ports is 3
Done
Error during enabling promiscuous mode for port 3: Operation not supported - ignore
Port 3 is attached. Now total ports is 4
Done

bad commit:
===========
commit 12c2405989f6fb002a1c45e892b82897d124d10a

Author: Shani Peretz <[email protected]>
Date:   Sun Jul 13 09:34:17 2025 +0300

app/testpmd: canonicalize short PCI name format

when providing short format PCI device names in devargs (e.g. "08:00:0") it is converted and stored as long format. however when attach_port is called from testpmd, the user might provide a short format, which will be passed to find_device with a comparison function that simply compare strings, which will cause find_device not to find any device.

This fix canonicalize the user provided string before it is being passed to find_device.

 app/test-pmd/meson.build |  2 +-
 app/test-pmd/testpmd.c   | 30 ++++++++++++++++++++++++++++++
 2 files changed, 31 insertions, 1 deletion
Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.
#1 lore raw

http://bugs.dpdk.org/show_bug.cgi?id=1815

Jiale Song ([email protected]) changed:

What |Removed |Added
----------------------------------------------------------------------------

         Resolution|---                         |FIXED
             Status|UNCONFIRMED                 |RESOLVED

--- Comment #6 from Jiale Song ([email protected]) --- the patch merged into dpdk main branch and it can fix this issue. patch:
https://patches.dpdk.org/project/dpdk/patch/[email protected]/
commit: acbff64ea5b1(app/testpmd: fix devargs format in port attach)

Signature · 2 lines
You are receiving this mail because:
You are the assignee for the bug.