xdp-tutorial icon indicating copy to clipboard operation
xdp-tutorial copied to clipboard

Poll with zero timeout is not returning

Open Adarsh97 opened this issue 3 years ago • 2 comments

I have tried poll with zero timeout, but it's not returning unless there is a packet. Is it something related to the driver ? Any driver parameter I have to change ? The default value of rx-usecs is 50 . The same code is returning immediately when tested with another driver.

Adarsh97 avatar Jan 04 '22 18:01 Adarsh97

I assume this is with AF_XDP sockets? @magnus-karlsson may have an idea...

tohojo avatar Jan 04 '22 20:01 tohojo

What kernel are you using and what are the drivers you have tried? Please also post the piece of code that triggers the problem, if it is small enough. Fine with just the essentials.

magnus-karlsson avatar Jan 05 '22 07:01 magnus-karlsson