]> git.baikalelectronics.ru Git - kernel.git/commit
IB/mthca: Fix initial SRQ logsize for mem-free HCAs
authorJack Morgenstein <jackm@dev.mellanox.co.il>
Sun, 26 Nov 2006 07:10:19 +0000 (09:10 +0200)
committerRoland Dreier <rolandd@cisco.com>
Wed, 29 Nov 2006 23:33:08 +0000 (15:33 -0800)
commite70cc3e07a9f509499cc3f5add269a7e0a5e331e
treea8d25a81d80f8d2087ee1fc4c7fca319231ae4b5
parent8532d5a991bce28dd47780f653f2e9fd12db90c1
IB/mthca: Fix initial SRQ logsize for mem-free HCAs

When initializing an mthca SRQ, the log_srq_size field should be the
log of the number of SRQ WQEs, not the log of the number of bytes in
the SRQ.

This affects only mthca drivers for memfree HCAs which set the initial
srq wqe counter (in the SW2HW transition) to a non-zero value.

Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/mthca/mthca_srq.c