summaryrefslogtreecommitdiffstats
path: root/drivers/net/tg3.h
diff options
context:
space:
mode:
authorMatt Carlson2009-09-01 15:19:05 +0200
committerDavid S. Miller2009-09-02 09:43:58 +0200
commit8d9d7cfc0ec2fe37ff9afd74326d03f38f96ad1b (patch)
tree3fc4ef598534d0e309a4a980b29e3a601f4581e1 /drivers/net/tg3.h
parenttg3: Adjust RSS ring allocation strategies (diff)
downloadkernel-qcow2-linux-8d9d7cfc0ec2fe37ff9afd74326d03f38f96ad1b.tar.gz
kernel-qcow2-linux-8d9d7cfc0ec2fe37ff9afd74326d03f38f96ad1b.tar.xz
kernel-qcow2-linux-8d9d7cfc0ec2fe37ff9afd74326d03f38f96ad1b.zip
tg3: Assign rx ret producer indexes by vector
When RSS is enabled, the status block format changes slightly. The "rx_jumbo_consumer", "reserved", and "rx_mini_consumer" members get mapped to the other three rx return ring producer indexes. This patch introduces a new per-interrupt member which identifies which location in the status block a particular vector should look for return ring updates. Signed-off-by: Matt Carlson <mcarlson@broadcom.com> Reviewed-by: Benjamin Li <benli@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/tg3.h')
-rw-r--r--drivers/net/tg3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/tg3.h b/drivers/net/tg3.h
index 348add254d11..685d9712a802 100644
--- a/drivers/net/tg3.h
+++ b/drivers/net/tg3.h
@@ -2538,6 +2538,7 @@ struct tg3_napi {
u32 consmbox;
u32 rx_rcb_ptr;
+ u16 *rx_rcb_prod_idx;
struct tg3_rx_buffer_desc *rx_rcb;
struct tg3_tx_buffer_desc *tx_ring;