Open QbsuranAlang opened 2 years ago
@QbsuranAlang do you experience the same issue with select()?
Please also note that in some case pfring_poll() should be used as not all the adapters provide a selectable fd. However ixgbe does provide a fd, and pfring_poll is not an option as you need to poll from multiple fds.
@cardigliano thanks your reply. I replace epoll() with poll()/select() and it works fine, can you explain what causes it? And as you mention, How do I check my adapter provide a selectable fd? By driver or...?
In order to check is the adapter supports it, you should what is returned by pfring_get_selectable_fd. As of epoll, I need to dig more.
OK, thanks your time!
English is not my first language.
Here is the two interfaces with configured 8 RSS.
I open the two interfaces and make it in inline mode, and I found an issues(maybe).
or
Here is some information.
And the full code:
When no packets incoming, it blocks in
epoll_wait()
.