]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
bnx2: Use one handler for all MSI-X vectors.
authorMichael Chan <mchan@broadcom.com>
Thu, 19 Jun 2008 23:41:57 +0000 (16:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Jun 2008 23:41:57 +0000 (16:41 -0700)
commitf0ea2e63859cf234b7017a2d7bba2a5a1db3bf25
tree6b5e2e18ce331d0467a729cbde0e5680c6d447b3
parent43e80b89b65cbc62b5e0fde09b47c9fc572a8b11
bnx2: Use one handler for all MSI-X vectors.

Use the same MSI-X handler to schedule NAPI.  Change the dev_instance
void pointer to the bnx2_napi struct instead so we can have the proper
context for each MSI-X vector.

Add a new bnx2_poll_msix() that is optimized for handling MSI-X
NAPI polling of rx/tx work only.  Remove the old bnx2_tx_poll() that
is no longer needed.  Each MSI-X vector handles 1 tx and 1 rx ring.
The first vector handles link events as well.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: Benjamin Li <benli@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bnx2.c