]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2: Optimize fast-path tx and rx work.
authorMichael Chan <mchan@broadcom.com>
Thu, 19 Jun 2008 23:41:08 +0000 (16:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Jun 2008 23:41:08 +0000 (16:41 -0700)
commit8b4ffab4d159c5edd642edc50ceeff77ced02899
tree894984eda36c720a44e00a6bd1c1c2567b45102b
parentc4f59ea7c24339792a70f48b16bdb9210653c887
bnx2: Optimize fast-path tx and rx work.

Add hw_tx_cons_ptr and hw_rx_cons_ptr to speed up the retreival of
the tx and rx consumer index, since the MSI-X and default status
blocks have different structures.

Combine status_blk and status_blk_msix into a union.  We'll only use
one type of status block for each vector.

Separate the code to detect more rx and tx work from the code to
detect link related work.

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
drivers/net/bnx2.h