xdp-project / xdp-tutorial

XDP tutorial
2.49k stars 579 forks source link

Poll with zero timeout is not returning #268

Open Adarsh97 opened 2 years ago

Adarsh97 commented 2 years ago

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.

tohojo commented 2 years ago

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

magnus-karlsson commented 2 years ago

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.