]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
IB/ehca: Allocate event queue size depending on max number of CQs and QPs
authorStefan Roscher <ossrosch@linux.vnet.ibm.com>
Tue, 29 Apr 2008 20:46:53 +0000 (13:46 -0700)
committerRoland Dreier <rolandd@cisco.com>
Tue, 29 Apr 2008 20:46:53 +0000 (13:46 -0700)
commitd227fa7288adebe5ba37fa8e4a589c977d4e4a34
tree8e0f080fc78f0342b5fd2531615ea525333d8d25
parentf56bcd8013566d4ad4759ae5fc85a6660e4655c7
IB/ehca: Allocate event queue size depending on max number of CQs and QPs

If a lot of QPs fall into Error state at once and the EQ of the
respective HCA is too small, it might overrun, causing the eHCA driver
to stop processing completion events and calling the application's
completion handlers, effectively causing traffic to stop.

Fix this by limiting available QPs and CQs to a customizable max
count, and determining EQ size based on these counts and a worst-case
assumption.

Signed-off-by: Stefan Roscher <stefan.roscher@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_classes.h
drivers/infiniband/hw/ehca/ehca_cq.c
drivers/infiniband/hw/ehca/ehca_main.c
drivers/infiniband/hw/ehca/ehca_qp.c