<div dir="ltr"><div dir="ltr">Thanks for your help.<div>I will then try with the "<span style="background-color:rgb(252,252,252);color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;white-space:nowrap">socket-abstract=yes" to memif.</span></div><div><span style="background-color:rgb(252,252,252);color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;white-space:nowrap"><br></span></div><div><span style="background-color:rgb(252,252,252);color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;white-space:nowrap">Regards</span></div><div><span style="background-color:rgb(252,252,252);color:rgb(64,64,64);font-family:Lato,proxima-nova,"Helvetica Neue",Arial,sans-serif;font-size:14.4px;white-space:nowrap">Staffan</span></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Den ons 16 feb. 2022 kl 19:46 skrev Stephen Hemminger <<a href="mailto:stephen@networkplumber.org">stephen@networkplumber.org</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, 16 Feb 2022 10:19:02 +0100<br>
Staffan Wiklund <<a href="mailto:staffan491@gmail.com" target="_blank">staffan491@gmail.com</a>> wrote:<br>
<br>
> Hello<br>
> <br>
> I wonder if it is possible for a DPDK application using the memif feature<br>
> to communicate with a native Linux application?<br>
> <br>
> I have tried to create a Docker container and start the image by:<br>
> docker run -ti --privileged -v "/mnt/huge:/mnt/huge" -v "/var/run:/var/run"<br>
> -v "/tmp:/tmp" -v "/run:/run" -v "/sys:/sys" -v "/dev:/dev" testpmd<br>
> /bin/bash<br>
> <br>
> In this container I start the dpdk-testpmd application in server mode by:<br>
> ./dpdk-testpmd -l 1-2  --no-pci  --proc-type=primary --file-prefix=td1<br>
> --vdev=net_memif,role=server,mac=00:00:00:00:00:01 -- -i<br>
> <br>
> From a UNIX shell in the same server I start the dpdk-testpmd in client<br>
> mode:<br>
> sudo ./dpdk-testpmd -l 3-4  --no-pci --proc-type=primary --file-prefix=td2<br>
> --vdev=net_memif,zero-copy=yes,mac=00:00:00:00:00:02 --single-file-segments<br>
> -- -i<br>
> <br>
> This results in the following error message on the client side:<br>
> . . .<br>
> Configuring Port 0 (socket 0)<br>
> memif_connect_client(): Failed to connect socket: /run/memif.sock.<br>
> Fail to start port 0<br>
> . . .<br>
> <br>
> If I start both sides in a UNIX shell, the client can connect to the server.<br>
> Do you know what can be the fault when executing in a Docker container and<br>
> in a UNIX shell for communication using the DPDK memif feature?<br>
> <br>
> Thanks<br>
> Staffan<br>
<br>
The docker container is in a different filesystem namespace so the two can't<br>
talk to each other. You might get it to work with the abstract option to memif.<br>
</blockquote></div>