From: Sean Hefty Date: Wed, 3 Oct 2012 23:42:31 +0000 (+0000) Subject: RDMA/cma: Check that retry count values are in range X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~6^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ede178a5eb55fe70070fcd0960b58ba6a5643a8;p=pandora-kernel.git RDMA/cma: Check that retry count values are in range The retry_count and rnr_retry_count connection parameters are both 3-bit values. Check that the values are in range and reduce if they're not. This fixes a problem reported by Doug Ledford that resulted in the userspace rping test (part of the librdmacm samples) failing to run over Intel IB HCAs. Signed-off-by: Sean Hefty [ Use min_t() to avoid warnings about type mismatch. - Roland ] Signed-off-by: Roland Dreier --- Reading git-diff-tree failed