Hi Yalei, 

Are you testing with master latest? Yes, blocking mode will be properly 
supported. The reason it won’t block now is because we need to poll multiple 
message queues (vpp’s and cut-through sessions) and -1 is not interpreted as a 
large number. This will be fixed once we switch from condvars to eventfds for 
notifications, at which point, we’ll manage message queue notifications with 
epoll. 

As for your second question, with the latest changes, we only support 
edge-triggered events. That is, vpp notifies apps (so vcl included) that an io 
event (rx or tx space available) has occurred only once. VCL consumes that 
event and then notifies the app. The expectation is that apps will proceed to 
doing rx/tx until no more data/space is available and then enter epoll again. A 
side effect of that is that epoll will not return EPOLLOUT unless the fifo 
really underwent a change from full to not full. Select on the other hand does 
poll all fifos to check if tx space is available, but that also makes it 
considerably slower. 

Florin

> On Aug 3, 2018, at 1:14 AM, wylandrea <wyland...@gmail.com> wrote:
> 
> Hi,
> 
> These days, I tested the vcl and get some confusion. I don't know whether I 
> understand it right. Anyone could help me?
> 
> looks like vppcom_epoll_wait implement in non-blocking mode, it will loop and 
> check the fifo of the  related sessions.
> 
> Will vpp implement a blocking mode epoll_wait?
> 
> Another issue is that seems it only support EPOLLLT, clear_et_mask is not 
> used.
> 
> Any ideas?
> 
>  /Yalei 
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10028): https://lists.fd.io/g/vpp-dev/message/10028
> Mute This Topic: https://lists.fd.io/mt/24152381/675152
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [fcoras.li...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10034): https://lists.fd.io/g/vpp-dev/message/10034
Mute This Topic: https://lists.fd.io/mt/24152381/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to