]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/cma: Randomize local port allocation
authorTetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Thu, 15 Apr 2010 02:29:04 +0000 (11:29 +0900)
committerRoland Dreier <rolandd@cisco.com>
Wed, 21 Apr 2010 23:18:40 +0000 (16:18 -0700)
commitef25e51a14954e430a81d73ea397ef4d5943444d
treee3600986a87cb1f4edf02b8fb65093cdcd1b16a8
parent2c0a31bb37b401ac6ac92c7a49ffc84c2050609a
RDMA/cma: Randomize local port allocation

Randomize local port allocation in the way sctp_get_port_local() does.
Update rover at the end of loop since we're likely to pick a valid port
on the first try.

Signed-off-by: Tetsuo Handa <penguin-kernel@I-love.SAKURA.ne.jp>
Reviewed-by: Sean Hefty <sean.hefty@intel.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/core/cma.c