]> git.baikalelectronics.ru Git - kernel.git/commit
IB/qib: Default some module parameters optimally
authorMike Marciniszyn <mike.marciniszyn@qlogic.com>
Fri, 23 Dec 2011 16:12:10 +0000 (11:12 -0500)
committerRoland Dreier <roland@purestorage.com>
Wed, 4 Jan 2012 04:54:01 +0000 (20:54 -0800)
commitb43a35845eafbf5f7e7348cb2852aaca0c6a5cf5
treead1fb9783cccfbe803eeae77811f177659f9fd3d
parente9139bac627cc616f63c3b7d49cd0432e70bd322
IB/qib: Default some module parameters optimally

Minimize the need for users to have to set module parameters to get
good performance.

The following two parameters are changed:
 - rcvhdrcnt to twice the rcvegrcnt
 - pcie_caps=0x51

The rcvhdrcnt at twice the egrcount allows the preemptive NAK code
during reception to function in 100% of the cases rather than a sender
jiffies-based timeout.

The pcie_caps default of 0x51 will set the proposed MaxPayload and
MaxReceiveReqest to 256 and 4096 respectively.  The capabilities on
the root complex will be used to limit those values.

Reviewed-by: Ram Vepa <ram.vepa@qlogic.com>
Signed-off-by: Mike Marciniszyn <mike.marciniszyn@qlogic.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/qib/qib_iba7322.c
drivers/infiniband/hw/qib/qib_pcie.c