aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/enic
diff options
context:
space:
mode:
authorVasanthy Kolluri <vkolluri@cisco.com>2011-02-17 08:57:19 -0500
committerDavid S. Miller <davem@davemloft.net>2011-02-17 19:13:31 -0500
commit1cbb1a61d59b7552e1e3fde485d8af5699fe16e0 (patch)
tree641c82586019bb1e7d1fdbfd493334ad9bb64afb /drivers/net/enic
parent982721f3911b2619482e05910644e5699fbeb065 (diff)
enic: Always use single transmit and single receive hardware queues per device
We believe that our earlier patch for supporting multiple hardware receive queues per enic device requires more internal testing. At this point, we think that it's best to disable the use of multiple receive queues. The current patch provides an effective means for the same. Also, we continue to disallow multiple hardware transmit queues per device. But change the way we enforce this in order to maintain consistency with the way receive queues are handled. Signed-off-by: Christian Benvenuti <benve@cisco.com> Signed-off-by: Danny Guo <dannguo@cisco.com> Signed-off-by: Vasanthy Kolluri <vkolluri@cisco.com> Signed-off-by: Roopa Prabhu <roprabhu@cisco.com> Signed-off-by: David Wang <dwang2@cisco.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/enic')
-rw-r--r--drivers/net/enic/enic.h6
-rw-r--r--drivers/net/enic/enic_main.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/enic/enic.h b/drivers/net/enic/enic.h
index 2ac891b58db3..aee5256e522b 100644
--- a/drivers/net/enic/enic.h
+++ b/drivers/net/enic/enic.h
@@ -32,13 +32,13 @@
32 32
33#define DRV_NAME "enic" 33#define DRV_NAME "enic"
34#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver" 34#define DRV_DESCRIPTION "Cisco VIC Ethernet NIC Driver"
35#define DRV_VERSION "2.1.1.8" 35#define DRV_VERSION "2.1.1.9"
36#define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc" 36#define DRV_COPYRIGHT "Copyright 2008-2011 Cisco Systems, Inc"
37 37
38#define ENIC_BARS_MAX 6 38#define ENIC_BARS_MAX 6
39 39
40#define ENIC_WQ_MAX 8 40#define ENIC_WQ_MAX 1
41#define ENIC_RQ_MAX 8 41#define ENIC_RQ_MAX 1
42#define ENIC_CQ_MAX (ENIC_WQ_MAX + ENIC_RQ_MAX) 42#define ENIC_CQ_MAX (ENIC_WQ_MAX + ENIC_RQ_MAX)
43#define ENIC_INTR_MAX (ENIC_CQ_MAX + 2) 43#define ENIC_INTR_MAX (ENIC_CQ_MAX + 2)
44 44
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c
index d1aa80770541..4f1710e31eb4 100644
--- a/drivers/net/enic/enic_main.c
+++ b/drivers/net/enic/enic_main.c
@@ -2080,7 +2080,7 @@ static void enic_reset(struct work_struct *work)
2080static int enic_set_intr_mode(struct enic *enic) 2080static int enic_set_intr_mode(struct enic *enic)
2081{ 2081{
2082 unsigned int n = min_t(unsigned int, enic->rq_count, ENIC_RQ_MAX); 2082 unsigned int n = min_t(unsigned int, enic->rq_count, ENIC_RQ_MAX);
2083 unsigned int m = 1; 2083 unsigned int m = min_t(unsigned int, enic->wq_count, ENIC_WQ_MAX);
2084 unsigned int i; 2084 unsigned int i;
2085 2085
2086 /* Set interrupt mode (INTx, MSI, MSI-X) depending 2086 /* Set interrupt mode (INTx, MSI, MSI-X) depending