]> pilppa.com Git - linux-2.6-omap-h63xx.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)
commit43e80b89b65cbc62b5e0fde09b47c9fc572a8b11
tree894984eda36c720a44e00a6bd1c1c2567b45102b
parentbb4f98abf590cf9899017f14f1a54984f02a0009
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