]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cma: Check that retry count values are in range
authorSean Hefty <sean.hefty@intel.com>
Wed, 3 Oct 2012 23:42:31 +0000 (23:42 +0000)
committerRoland Dreier <roland@purestorage.com>
Fri, 5 Oct 2012 02:11:54 +0000 (19:11 -0700)
commit9f0defd3eacda4a205548eb6107caee5523f7e0d
treec36266c019b688418ddbfe2e927a37a8c0a661f9
parent9676e8245b1e5b8e5a3d5d546a4afcf2b4c26944
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 <dledford@redhat.com>
that resulted in the userspace rping test (part of the librdmacm
samples) failing to run over Intel IB HCAs.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
[ Use min_t() to avoid warnings about type mismatch.  - Roland ]

Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/core/cma.c