be2net: fix tx completion polling
authorSathya Perla <sathyap@serverengines.com>
Tue, 2 Mar 2010 11:56:39 +0000 (03:56 -0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Mar 2010 11:56:39 +0000 (03:56 -0800)
In tx/mcc polling, napi_complete() is being incorrectly called
before reaping tx completions. This can cause tx compl processing
to be scheduled on another cpu concurrently which can result in a panic.
This if fixed by calling napi complete() after tx/mcc compl processing
but before re-enabling interrupts (via a cq notify).

Signed-off-by: Sathya Perla <sathyap@serverengines.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

No differences found