Hi Murthy, Yes it does, although we’re guilty of not having it properly documented.
The message queue used between vpp and a vcl worker can do both mutex/condvar and eventfd notifications. The former is the default but you can switch to eventfds by adding to vcl.conf "use-mq-eventfd”. You can then use vppcom_worker_mqs_epfd to retrieve a vcl worker's epoll fd (it’s an epoll fd for historic reasons) which you should be able to nest into your own linux epoll fd. Note that you’ll also need to force memfd segments for vpp’s message queues, i.e., session { evt_qs_memfd_seg }, and use the socket transport for binary api, i.e., in vpp’s startup.conf add "socksvr { /path/to/api.sock }" and in vcl.conf "api-socket-name /path/to/api.sock”. Regards, Florin > On Mar 12, 2020, at 4:40 AM, Satya Murthy <satyamurthy1...@gmail.com> wrote: > > Hi , > > We have a TCP application trying integrate with VPP-VCL framework. > > Our application has its own dispatch loop with epoll and we would like to > know if VCL framework has any linux fd ( like an eventfd for the entire svm > message queue ) that we can add into our epoll to poll for VCL session > messages. > > Once we get an asynchronous indication that a message has arrived in the VCL > svm message queue, we can call vppcom_epoll_wait() function to read the > messages for sessions and handle them accordingly. > > Any inputs on how we can achieve this? > > -- > Thanks & Regards, > Murthy
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#15760): https://lists.fd.io/g/vpp-dev/message/15760 Mute This Topic: https://lists.fd.io/mt/71899986/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-