diff options
author | David S. Miller <davem@davemloft.net> | 2010-12-17 15:27:22 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-12-17 15:27:22 -0500 |
commit | b4aa9e05a61b845541fa6f5b1d246976922601f0 (patch) | |
tree | ca94478c3df281ab76a3399f5ba6341ade3f5791 /drivers/net/cxgb4vf | |
parent | 1dc0f3c54ce1df957f99c17b145488fd03eb1a59 (diff) | |
parent | 4b8fe66300acb2fba8b16d62606e0d30204022fc (diff) |
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts:
drivers/net/bnx2x/bnx2x.h
drivers/net/wireless/iwlwifi/iwl-1000.c
drivers/net/wireless/iwlwifi/iwl-6000.c
drivers/net/wireless/iwlwifi/iwl-core.h
drivers/vhost/vhost.c
Diffstat (limited to 'drivers/net/cxgb4vf')
-rw-r--r-- | drivers/net/cxgb4vf/cxgb4vf_main.c | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/drivers/net/cxgb4vf/cxgb4vf_main.c b/drivers/net/cxgb4vf/cxgb4vf_main.c index f54af48edb93..3c403f895750 100644 --- a/drivers/net/cxgb4vf/cxgb4vf_main.c +++ b/drivers/net/cxgb4vf/cxgb4vf_main.c | |||
@@ -2278,6 +2278,7 @@ static void __devinit cfg_queues(struct adapter *adapter) | |||
2278 | { | 2278 | { |
2279 | struct sge *s = &adapter->sge; | 2279 | struct sge *s = &adapter->sge; |
2280 | int q10g, n10g, qidx, pidx, qs; | 2280 | int q10g, n10g, qidx, pidx, qs; |
2281 | size_t iqe_size; | ||
2281 | 2282 | ||
2282 | /* | 2283 | /* |
2283 | * We should not be called till we know how many Queue Sets we can | 2284 | * We should not be called till we know how many Queue Sets we can |
@@ -2322,6 +2323,13 @@ static void __devinit cfg_queues(struct adapter *adapter) | |||
2322 | s->ethqsets = qidx; | 2323 | s->ethqsets = qidx; |
2323 | 2324 | ||
2324 | /* | 2325 | /* |
2326 | * The Ingress Queue Entry Size for our various Response Queues needs | ||
2327 | * to be big enough to accommodate the largest message we can receive | ||
2328 | * from the chip/firmware; which is 64 bytes ... | ||
2329 | */ | ||
2330 | iqe_size = 64; | ||
2331 | |||
2332 | /* | ||
2325 | * Set up default Queue Set parameters ... Start off with the | 2333 | * Set up default Queue Set parameters ... Start off with the |
2326 | * shortest interrupt holdoff timer. | 2334 | * shortest interrupt holdoff timer. |
2327 | */ | 2335 | */ |
@@ -2329,7 +2337,7 @@ static void __devinit cfg_queues(struct adapter *adapter) | |||
2329 | struct sge_eth_rxq *rxq = &s->ethrxq[qs]; | 2337 | struct sge_eth_rxq *rxq = &s->ethrxq[qs]; |
2330 | struct sge_eth_txq *txq = &s->ethtxq[qs]; | 2338 | struct sge_eth_txq *txq = &s->ethtxq[qs]; |
2331 | 2339 | ||
2332 | init_rspq(&rxq->rspq, 0, 0, 1024, L1_CACHE_BYTES); | 2340 | init_rspq(&rxq->rspq, 0, 0, 1024, iqe_size); |
2333 | rxq->fl.size = 72; | 2341 | rxq->fl.size = 72; |
2334 | txq->q.size = 1024; | 2342 | txq->q.size = 1024; |
2335 | } | 2343 | } |
@@ -2338,8 +2346,7 @@ static void __devinit cfg_queues(struct adapter *adapter) | |||
2338 | * The firmware event queue is used for link state changes and | 2346 | * The firmware event queue is used for link state changes and |
2339 | * notifications of TX DMA completions. | 2347 | * notifications of TX DMA completions. |
2340 | */ | 2348 | */ |
2341 | init_rspq(&s->fw_evtq, SGE_TIMER_RSTRT_CNTR, 0, 512, | 2349 | init_rspq(&s->fw_evtq, SGE_TIMER_RSTRT_CNTR, 0, 512, iqe_size); |
2342 | L1_CACHE_BYTES); | ||
2343 | 2350 | ||
2344 | /* | 2351 | /* |
2345 | * The forwarded interrupt queue is used when we're in MSI interrupt | 2352 | * The forwarded interrupt queue is used when we're in MSI interrupt |
@@ -2355,7 +2362,7 @@ static void __devinit cfg_queues(struct adapter *adapter) | |||
2355 | * any time ... | 2362 | * any time ... |
2356 | */ | 2363 | */ |
2357 | init_rspq(&s->intrq, SGE_TIMER_RSTRT_CNTR, 0, MSIX_ENTRIES + 1, | 2364 | init_rspq(&s->intrq, SGE_TIMER_RSTRT_CNTR, 0, MSIX_ENTRIES + 1, |
2358 | L1_CACHE_BYTES); | 2365 | iqe_size); |
2359 | } | 2366 | } |
2360 | 2367 | ||
2361 | /* | 2368 | /* |