]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cxgb4: Fix onchip queue support for T5
authorVipul Pandya <vipul@chelsio.com>
Thu, 14 Mar 2013 05:09:04 +0000 (05:09 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 14 Mar 2013 15:35:59 +0000 (11:35 -0400)
commita3f43bdab7a2bc2e2ad175027c50e1897ba6c421
treeab416919eae862b333fba267839b062b241004ee
parentda02f98902384ea941a582d8f22e3166e7c1b520
RDMA/cxgb4: Fix onchip queue support for T5

T5 adapter does not support onchip queue memory. Present logic fails to
allocate QP for T5 and returns an error. Also, if module parameter ocqp_support
is zero then we are unable to allocate QP which should not be the case. Ideally
if ocqp_support parameter is 0 or onchip queue support is disable then host QP
should be allocated before returning an error.

Signed-off-by: Vipul Pandya <vipul@chelsio.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/infiniband/hw/cxgb4/qp.c