e100: fix NAPI race with watchdog
Subsystems (2)
Quoted 6 lines
While polling in NAPI mode, we were occassionally getting interrupts re-enabled by the watchdog trying to generate a software interrupt. Fix is to add a spinlock around that shared hardware register to allow a read-modify-write operation. This was nasty nasty. I don't like the spinlock in the hot path but i see no other way. Comments are welcome.
While working with NAPI on the e100 a while ago, I seriously considered removing the generation of the sw interrupt altogether for the NAPI case. Does it serve any purpose? NAPI is polling the driver already anyway.
/james