]> git.baikalelectronics.ru Git - kernel.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)
commite970f0046eecf9ad78528739188f4a8698fc3cde
tree6b5e2e18ce331d0467a729cbde0e5680c6d447b3
parent8b4ffab4d159c5edd642edc50ceeff77ced02899
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