All of lore.kernel.org
 help / color / mirror / Atom feed
* [DPDK/other Bug 1825] The DPDK memif driver fails to connect a second zero-copy client port from the same process, logging an "mmap failed: No such device" error.
@ 2025-11-10  6:50 bugzilla
  0 siblings, 0 replies; only message in thread
From: bugzilla @ 2025-11-10  6:50 UTC (permalink / raw)
  To: dev

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

            Bug ID: 1825
           Summary: The DPDK memif driver fails to connect a second
                    zero-copy client port from the same process, logging
                    an "mmap failed: No such device" error.
           Product: DPDK
           Version: 23.11
          Hardware: All
                OS: Linux
            Status: UNCONFIRMED
          Severity: major
          Priority: Normal
         Component: other
          Assignee: dev@dpdk.org
          Reporter: staryyuuwx@gmail.com
  Target Milestone: ---

Linux localhost 5.10.0-136.12.0.86.h1032.eulerosv2r12.aarch64 #1 SMP Wed Jun 28
18:34:50 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

1. start two server memifs
./dpdk-testpmd -l 1-2 --file-prefix=pmd1
--vdev=net_memif0,socket=/run/memif_wx0,role=server
--vdev=net_memif1,socket=/run/memif_wx1,role=server -- -i

2. start one client memif
./dpdk-testpmd -l 3-4 -m 4096 --file-prefix=pmd2
--vdev=net_memif0,socket=/run/memif_wx0,role=client,zero-copy=yes
--single-file-segments -- -i

port 0 is up
testpmd> show port info 0

********************* Infos for port 0  *********************
MAC address: 72:5C:61:5A:E9:75
Device name: net_memif0
Driver name: net_memif
Firmware-version: not available
Devargs: socket=/run/memif_wx0,role=client,zero-copy=yes
Connect to socket: 0
memory allocation on the socket: 0
Link status: up
Link speed: 100 Gbps
Link duplex: full-duplex
......

3. add and start 2nd client memif, print "mmap failed: No such device"
client:
testpmd> port attach net_memif1,socket=/run/memif_wx1,role=client,zero-copy=yes
Attaching a new port...
Port 1 is attached. Now total ports is 2
Done
testpmd> port start 1
Configuring Port 1 (socket 0)
Port 1: 96:75:EE:3F:B7:AA
Checking link statuses...
Done

server:
testpmd> memif_connect(): mmap failed: No such device
testpmd> show port info 1

********************* Infos for port 1  *********************
MAC address: C6:84:F6:36:9F:72
Device name: net_memif1
Driver name: net_memif
Firmware-version: not available
Devargs: socket=/run/memif_wx1,role=server
Connect to socket: 0
memory allocation on the socket: 0
Link status: down
Link speed: 100 Gbps
Link duplex: full-duplex
Autoneg status: On

-- 
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:[~2025-11-10  6:50 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-11-10  6:50 [DPDK/other Bug 1825] The DPDK memif driver fails to connect a second zero-copy client port from the same process, logging an "mmap failed: No such device" error bugzilla

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.