diff options
author | Vasanthy Kolluri <vkolluri@cisco.com> | 2011-02-17 14:57:19 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-02-18 01:13:31 +0100 |
commit | 1cbb1a61d59b7552e1e3fde485d8af5699fe16e0 (patch) | |
tree | 641c82586019bb1e7d1fdbfd493334ad9bb64afb /drivers/net/enic/enic_main.c | |
parent | ipv4: Use const'ify fib_result deep in the route call chains. (diff) | |
download | linux-1cbb1a61d59b7552e1e3fde485d8af5699fe16e0.tar.xz linux-1cbb1a61d59b7552e1e3fde485d8af5699fe16e0.zip |
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/enic_main.c')
-rw-r--r-- | drivers/net/enic/enic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) static int enic_set_intr_mode(struct enic *enic) { unsigned int n = min_t(unsigned int, enic->rq_count, ENIC_RQ_MAX); - unsigned int m = 1; + unsigned int m = min_t(unsigned int, enic->wq_count, ENIC_WQ_MAX); unsigned int i; /* Set interrupt mode (INTx, MSI, MSI-X) depending |