Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-07-26 Thread Florin Coras
Hi Sastry, Few of the session layer apis are executed on main thread (some ctrl messages, i.e., listen, connect) but most are executed on workers. Also, the binary apis is one of the two options applications/vcl have to attach to vpp. Those are not used to exchange data or ctrl/io events.

Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-07-26 Thread Sastry Sista
Hi Florin, Sorry for confusing. My point is, whatever we send through VCL APIs, those APIs execution at VPP inside session layer is at main thread? I assume its executed at main thread. Is there anyway we can run the session layer execution for VCL APIs at worker thread? I know memif,

Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-07-22 Thread Florin Coras
Hi Sastry, VCL is a library applications link against to consume the session layer in vpp via apis that are posix-like. So vcl is executed within the application’s context. As for data exchanges between vcl and vpp, those are done without a worker barrier. Regards, Florin > On Jul 22,

Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-07-22 Thread Sastry Sista
Hi Florin, Is it that VCL is going to be executed in the context of main thread as its being connected to VPP main. Do you see any issue with thread barrier if I send huge data? I know it is going to impact. With Regards Sastry -=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to

Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-05-25 Thread Florin Coras
Hi Sastry, Inline. > On May 25, 2021, at 7:44 AM, Sastry Sista wrote: > > Hi Florin, > Thank you. > > Let me be very specific and focused topic: > > I have just single worker but having multiple TCP sessions. So, I will poll > on vppcom_mq_epoll_fd() for all notifications.

Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-05-25 Thread Sastry Sista
Hi Florin, Thank you. Let me be very specific and focused topic: I have just single worker but having multiple TCP sessions. So, I will poll on vppcom_mq_epoll_fd() for all notifications. So, notifications are for me to do data read/write also? If there is a data on shm for any session, we

Re: [vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-05-21 Thread Florin Coras
Hi Sastry, Inline. > On May 21, 2021, at 11:22 AM, Sastry Sista wrote: > > Hi Florin, > Gone through your old mails on eventfd of mq and given me decent > inputs. > vppcom_mq_epoll_fd() is returning mq_epfd which I can use for my app dispatch > linux epoll. But, My concern is, Can

[vpp-dev] VCL app with multiple TCP sessions handling in single worker

2021-05-21 Thread Sastry Sista
Hi Florin, Gone through your old mails on eventfd of mq and given me decent inputs. vppcom_mq_epoll_fd() is returning mq_epfd which I can use for my app dispatch linux epoll. But, My concern is, Can I use this mq_epfd for all my TCP sessions i.e single mq for multiple TCP sessions? I have single