Re: Writing driver for a net device which does not support interrupt

2015-03-24 Thread Daniel Baluta
On Tue, Mar 24, 2015 at 3:34 AM, Freeman Zhang wrote: > Hi phil, > > Thanks for your reply! I googled timer, it might be a solution except > that interval granularity is a little bit large. This device is for high > performance network. I'm not sure whether the missmatch will cause problem. Googl

Re: Writing driver for a net device which does not support interrupt

2015-03-23 Thread Freeman Zhang
Hi phil, Thanks for your reply! I googled timer, it might be a solution except that interval granularity is a little bit large. This device is for high performance network. I'm not sure whether the missmatch will cause problem. And I just figured another potential solution, to use soft interrupt

Re: Writing driver for a net device which does not support interrupt

2015-03-23 Thread Freeman Zhang
Hi Valdis, Thanks for your warning. I feel like I believe in my group and those engineers. In fact, implementing interrupts is part of the plan, but, yes, the prototype is really buggy However they are trying hard to fix it, and I should not stand by just to watch, waiting for the deadline, sh

Re: Writing driver for a net device which does not support interrupt

2015-03-23 Thread phil
On 23/03/15 10:51, Freeman Zhang wrote: > I'm writing a net device driver for my final project in college. But the > half-finished device doesn't support interrupt yet(those hardware guys...) > > So I'm wondering if there is some way to poll the device for its status > and events. You should tak

Re: Writing driver for a net device which does not support interrupt

2015-03-23 Thread Valdis . Kletnieks
On Mon, 23 Mar 2015 18:51:51 +0800, Freeman Zhang said: > I'm writing a net device driver for my final project in college. But the > half-finished device doesn't support interrupt yet(those hardware guys...) > > So I'm wondering if there is some way to poll the device for its status > and events.

Writing driver for a net device which does not support interrupt

2015-03-23 Thread Freeman Zhang
Hi list, I'm writing a net device driver for my final project in college. But the half-finished device doesn't support interrupt yet(those hardware guys...) So I'm wondering if there is some way to poll the device for its status and events. Google tells me 'NAPI' uses a polling mechanism, but it