]> git.baikalelectronics.ru Git - kernel.git/commit
IB/ipath: Fix error returned from ib_resize_cq if new size smaller than # entries
authorRalph Campbell <ralph.campbell@qlogic.com>
Fri, 9 Nov 2007 03:53:01 +0000 (19:53 -0800)
committerRoland Dreier <rolandd@cisco.com>
Fri, 25 Jan 2008 22:15:28 +0000 (14:15 -0800)
commit726331f47f96d0728039d13847e0a4e693cf9531
tree903cfeadcfd6e0ff129fc7736db526889ccf2f50
parent5bbab689eaf019675eb92f7a3e08e5deaa6cb7d6
IB/ipath: Fix error returned from ib_resize_cq if new size smaller than # entries

The gen2_basic tests check for the errno value when a CQ is resized
smaller than the number of outstanding completions queue on the CQ.
This patch changes ib_ipath to return EINVAL which is what ib_mthca
returns and what gen2_basic expects.

Signed-off-by: Ralph Campbell <ralph.campbell@qlogic.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ipath/ipath_cq.c