]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
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)
commitf31e50a802baae939c49819b8acd8f077019d398
treef9bb9e3950933db922a4ce814d7ac281569778f1
parentb88aafd365bc6a2222e2d03ff320adea3a37f628
be2net: fix tx completion polling

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>
drivers/net/benet/be_cmds.c
drivers/net/benet/be_cmds.h
drivers/net/benet/be_main.c