[openib-general] Question about QP's in timewait state and CM stale conn rejects

Roland Dreier rdreier at cisco.com
Sun Aug 20 08:49:54 PDT 2006


    Or> How about (for the meantime, till this rework is designed &&
    Or> done) going to projecting the initial random local id into the
    Or> range of (say) [0-1022] (i think 1023 is prime, if not choose
    Or> a prime near it) this way with very good probability and with
    Or> very little overhead on memory consumption a client
    Or> connect/reboot/"reconnect" would work.

Of course 1023 is not prime -- since (a^2 - b^2) = (a - b) * (a + b),
it follows 2 ^ 10 - 1 = (2^5 - 1) * (2^5 + 1) = 31 * 33.

I don't see why you care about the range being prime, but the closest
primes to 1024 are 1021 and 1031.

 - R.




More information about the general mailing list