提交 37a7e9b7 编写于 作者: R Ralph Campbell 提交者: Roland Dreier

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: NRalph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: NRoland Dreier <rolandd@cisco.com>
上级 f42b6471
...@@ -737,7 +737,7 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit) ...@@ -737,7 +737,7 @@ int ipath_init_chip(struct ipath_devdata *dd, int reinit)
uports = dd->ipath_cfgports ? dd->ipath_cfgports - 1 : 0; uports = dd->ipath_cfgports ? dd->ipath_cfgports - 1 : 0;
if (ipath_kpiobufs == 0) { if (ipath_kpiobufs == 0) {
/* not set by user (this is default) */ /* not set by user (this is default) */
if (piobufs >= (uports * IPATH_MIN_USER_PORT_BUFCNT) + 32) if (piobufs > 144)
kpiobufs = 32; kpiobufs = 32;
else else
kpiobufs = 16; kpiobufs = 16;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册