Hi, How do we connect memif inside host to memif inside a container? Somehow, the container is not able to communicate with host. Can someone point me what I'm missing?
Thanks Chakri VPP inside Host ------------------- vpp# show memif sockets id listener filename 0 yes (1) /run/vpp/memif.sock *11 yes (1) /tmp/memif1.sock* *interface memif11/33* * socket-id 11 id 33 mode ethernet* * flags admin-up* * listener-fd 22 conn-fd 0* * num-s2m-rings 0 num-m2s-rings 0 buffer-size 0 num-regions 0* interface memif0/0 socket-id 0 id 0 mode ethernet flags listener-fd 21 conn-fd 0 num-s2m-rings 1 num-m2s-rings 1 buffer-size 0 num-regions 0 local-disc-reason "disconnected" vpp# vpp# show int Name Idx State Counter Count local0 0 up memif0/0 6 up *memif11/33 4 up* Container VPP configuration --------------------------------- vpp# show memif sockets id listener filename 0 no /run/vpp/memif.sock 11 no /tmp/memif1.sock *interface memif11/33* * socket-id 11 id 33 mode ethernet* * flags admin-up slave zero-copy* * listener-fd 0 conn-fd 0* * num-s2m-rings 0 num-m2s-rings 0 buffer-size 0 num-regions 0* *vpp#* *vpp# sh int* * Name Idx State Counter Count* *l* ocal0 0 up drops 0 memif0/0 2 up *memif11/33 1 up drops 0* * tx-error 0 * On host, these commands are used to create master socket ---------------------------------------------------------------------- create memif socket id 11 filename /tmp/memif1.sock create interface memif id 33 socket-id 11 master set int state memif11/33 up Inside container, these commands are used to create slave socket ----------------------------------------------------------------------------- create memif socket id 11 filename /tmp/memif1.sock create interface memif id 33 socket-id 11 slave set int state memif11/33 up *Intrestingly, host vpp is able to connect to client (icmpr-epoll) on the host. the issue is only with client socket inside the container.*
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#9736): https://lists.fd.io/g/vpp-dev/message/9736 Mute This Topic: https://lists.fd.io/mt/22892000/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-