aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorRalph Campbell <ralph.campbell@qlogic.com>2007-07-06 15:48:38 -0400
committerRoland Dreier <rolandd@cisco.com>2007-07-09 23:12:26 -0400
commit37a7e9b7f28fbef4b6abda102fa41c1467f6022f (patch)
treea11e49052ffbf12c124477c1239e2bd4363054a2 /drivers/infiniband
parentf42b6471e9e9082ed4bcba1456eccadf98f1337a (diff)
IB/ipath: Lower default number of kernel send buffers
The default calculation for the number of send buffers to allocate to the kernel was too high for the PCIe version of the chip thus leaving fewer than desired send buffers for user MPI applications. Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com> Signed-off-by: Roland Dreier <rolandd@cisco.com>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/ipath/ipath_init_chip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/ipath/ipath_init_chip.c b/drivers/infiniband/hw/ipath/ipath_init_chip.c
index 1b1af349f194..fa98aabdf76b 100644
--- a/drivers/infiniband/hw/ipath/ipath_init_chip.c
+++ b/drivers/infiniband/hw/ipath/ipath_init_chip.c
@@ -737,7 +737,7 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit)
737 uports = dd->ipath_cfgports ? dd->ipath_cfgports - 1 : 0; 737 uports = dd->ipath_cfgports ? dd->ipath_cfgports - 1 : 0;
738 if (ipath_kpiobufs == 0) { 738 if (ipath_kpiobufs == 0) {
739 /* not set by user (this is default) */ 739 /* not set by user (this is default) */
740 if (piobufs >= (uports * IPATH_MIN_USER_PORT_BUFCNT) + 32) 740 if (piobufs > 144)
741 kpiobufs = 32; 741 kpiobufs = 32;
742 else 742 else
743 kpiobufs = 16; 743 kpiobufs = 16;