[openib-general] [PATCH] rdma_cm: avoid port reuse after close
Michael S. Tsirkin
mst at mellanox.co.il
Sun Jan 7 21:08:29 PST 2007
> Randomize the starting port number, and avoid re-using port values
> immediately after they are closed. Instead, track the last port
> value used and increment it every time a new port number is
> assigned.
>
> These changes are in response to Michael's comments from this (old)
> thread:
>
> http://openib.org/pipermail/openib-general/2006-September/025996.html
>
> Signed-off-by: Sean Hefty <sean.hefty at intel.com>
> ---
> I'm not sure if this is still needed, but I had it on my list of things
> to someday try to do. This should apply to 2.6.20-rc2.
Yes, this makes RDMA_CM behave more like a TCP/IP socket,
and helps applications that want to bind to the same port
number for both IB and TCP/IP socket connection.
Acked-by: Michael S. Tsirkin <mst at mellanox.co.il>
--
MST
More information about the general
mailing list