]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cm: Set num_paths when manually assigning path records
authorSean Hefty <sean.hefty@intel.com>
Thu, 25 Mar 2010 19:12:36 +0000 (19:12 +0000)
committerRoland Dreier <rolandd@cisco.com>
Wed, 7 Apr 2010 21:13:22 +0000 (14:13 -0700)
commit10e39c3a4170b03ceb7a282f7e80ee31ad80cd0f
treecd894c7c14c5cb0b8860873c1d4272747c9403db
parent656a0227d19826da6335cef0f298e024ed2b6f9c
RDMA/cm: Set num_paths when manually assigning path records

When manually assigning the path records to use for a connection, save
the number of paths that were set.  Otherwise, checks against num_path
will show 0, even though path record data is available.

This was discovered by manually setting the path records from user
space, then querying the kernel to see if the correct path records
were assigned, only to discover that the kernel returned 0 path
records to the query.

Signed-off-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c