aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/qlge/qlge.h
diff options
context:
space:
mode:
authorRon Mercer <ron.mercer@qlogic.com>2009-08-27 07:02:09 -0400
committerDavid S. Miller <davem@davemloft.net>2009-08-29 02:22:28 -0400
commitb2014ff8ac314f58d6542ec4ea7b576a2de21c8b (patch)
tree86710e2716e5b36120ea27b94d2e79d4326f7477 /drivers/net/qlge/qlge.h
parentb7f1d43a2ba1b63abbb1dcd966ab1edb9f62f636 (diff)
qlge: Get rid of 'default' rx_ring type.
Currently we have three types of RX rings. 1) Default ring - services rx_ring for broadcast/multicast, handles firmware events, and errors. 2) TX completion ring - handles only outbound completions. 3) RSS ring - handles only inbound completions. This patch gets rid of the default ring type and moves it's functionality into the first RSS ring. This makes better use of MSIX vectors since they are a limited resource on some platforms. Signed-off-by: Ron Mercer <ron.mercer@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/qlge/qlge.h')
-rw-r--r--drivers/net/qlge/qlge.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/net/qlge/qlge.h b/drivers/net/qlge/qlge.h
index 6ed5317ab1c0..ed5dbca01bd1 100644
--- a/drivers/net/qlge/qlge.h
+++ b/drivers/net/qlge/qlge.h
@@ -1287,7 +1287,7 @@ struct rx_ring {
1287 u32 sbq_free_cnt; /* free buffer desc cnt */ 1287 u32 sbq_free_cnt; /* free buffer desc cnt */
1288 1288
1289 /* Misc. handler elements. */ 1289 /* Misc. handler elements. */
1290 u32 type; /* Type of queue, tx, rx, or default. */ 1290 u32 type; /* Type of queue, tx, rx. */
1291 u32 irq; /* Which vector this ring is assigned. */ 1291 u32 irq; /* Which vector this ring is assigned. */
1292 u32 cpu; /* Which CPU this should run on. */ 1292 u32 cpu; /* Which CPU this should run on. */
1293 char name[IFNAMSIZ + 5]; 1293 char name[IFNAMSIZ + 5];
@@ -1486,11 +1486,9 @@ struct ql_adapter {
1486 struct intr_context intr_context[MAX_RX_RINGS]; 1486 struct intr_context intr_context[MAX_RX_RINGS];
1487 1487
1488 int tx_ring_count; /* One per online CPU. */ 1488 int tx_ring_count; /* One per online CPU. */
1489 u32 rss_ring_first_cq_id;/* index of first inbound (rss) rx_ring */
1490 u32 rss_ring_count; /* One per online CPU. */ 1489 u32 rss_ring_count; /* One per online CPU. */
1491 /* 1490 /*
1492 * rx_ring_count = 1491 * rx_ring_count =
1493 * one default queue +
1494 * (CPU count * outbound completion rx_ring) + 1492 * (CPU count * outbound completion rx_ring) +
1495 * (CPU count * inbound (RSS) completion rx_ring) 1493 * (CPU count * inbound (RSS) completion rx_ring)
1496 */ 1494 */