Hi All, I'm writing an application to send and receive packets over the memif interface. I'm following steps mentioned in the following document to create server and client interface:
https://s3-docs.fd.io/vpp/22.02/interfacing/libmemif/gettingstarted_doc.html The difference in server and client interface creation is in the variable memif_conn_args_t cargs; : https://s3-docs.fd.io/vpp/22.02/interfacing/libmemif/gettingstarted_doc.html#:~:text=memif_conn_args_t%20cargs%3B where is_master is set as 1 in case of server and as 0 in case of client. The issue that i'm facing is after i receive on_connect call back in server and i try to send 10 packets i get MEMIF_ERR_NOBUF_RING on server when it calls memif_buffer_alloc and program terminates from there. sender function : https://gerrit.fd.io/r/c/vpp/+/30573/8/extras/libmemif/examples/common/sender.c but if i add a sleep(1) before memif_buffer_alloc it works. I went through the following similar question and added the suggested change but still facing the same issue. https://lists.fd.io/g/vpp-dev/topic/some_questions_about_libmemif/35012940?p= Am I missing something . Thank You Pragya Nand Bhagat
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20835): https://lists.fd.io/g/vpp-dev/message/20835 Mute This Topic: https://lists.fd.io/mt/88966380/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-