From: Stefan Roscher Date: Tue, 29 Apr 2008 20:46:53 +0000 (-0700) Subject: IB/ehca: Allocate event queue size depending on max number of CQs and QPs X-Git-Tag: v2.6.26-rc1~354^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d227fa7288adebe5ba37fa8e4a589c977d4e4a34;p=pandora-kernel.git 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 Signed-off-by: Roland Dreier --- Reading git-diff-tree failed