Network driver without interrupts

  • Thread starter Thread starter meerkat
  • Start date Start date
M

meerkat

Hi,

I'm writing a network driver for a network interface card. The interface with the HW is still rough and not complete.
For now - we still don't have interrupts. I still want to check the rx path, so instead of interrupts, I want to poll on a part of a mapped area (synced with the driver, which will notify me by writing to it once a frame enters).
My question is - how do I trigger such a polling? I mean - it's not Napi, since for Napi interrupts must be enabled (for it to disable it, isn't it right?), and I'm not going through any handler since... well, since there're no interrupts... Only un-logical solution I came up with is calling the rx_poll method at the end of the open() method, and stick there until something arrives. But that's really bad, plus - it will only be good for some basic checking, I wouldn't be able to give such a driver to the upper layers apps developers...
Any ideas?

Thanks!
Roy

Continue reading...
 
Back
Top