]> err.no Git - linux-2.6/commit
RDMA/cma: Increment port number after close to avoid re-use
authorSean Hefty <sean.hefty@intel.com>
Tue, 30 Jan 2007 00:41:23 +0000 (16:41 -0800)
committerRoland Dreier <rolandd@cisco.com>
Sat, 10 Feb 2007 16:00:50 +0000 (08:00 -0800)
commitaedec08050255db1989a38b59616dd973dfe660b
tree69c31d3db3c876005a0e5b05096b9a562d790db6
parent65e5c0262169a92bdec71a8bb9edb32dab2d8d1f
RDMA/cma: Increment port number after close to avoid re-use

Randomize the starting port number and avoid re-using port values
immediately after they are closed.  Instead keep track of the last
port value used and increment it every time a new port number is
assigned, to better replicate other port spaces.

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