Hi, We (hicn team) are using libmemif to connect an hicn-enabled application to our hicn-plugin for vpp. We have a use case in which we need to create multiple memif from the same application as fast as possible (in our case libmemif is the slave, memif in vpp is the master). The current libmemif implementation takes about 2 seconds to get a memif interface ready to be used (I measured the time elapsed between calling memif_create and the invocation of the on_connect callback). I took a look at the libmemif code and my understanding is that 2 seconds is the value used to arm a timer (timerfd in main.c), and when such timer expires libmemif will connect to the unix memif socket and start to exchange messages with vpp to actually create and connect the memif.
Would that be possible to arm the timer with a lower value? I’m willing to help to speed-up libmemif creation and connection but I don’t have a full understanding of the entire libmemif library so I don’t know if the 2 seconds on the timer is a hard constraint and what are the reasons behind such constraint. Thanks, Alberto
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#12308): https://lists.fd.io/g/vpp-dev/message/12308 Mute This Topic: https://lists.fd.io/mt/29986183/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-