Re: [RFC] Avoid running out of local port in RDMA_CM

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Sean

The documentation for struct inet_bind_bucket  says:
/* There are a few simple rules, which allow for local port reuse by
 * an application.  In essence:
 *
 *      1) Sockets bound to different interfaces may share a local port.
 *         Failing that, goto test 2.
 *      2) If all sockets have sk->sk_reuse set, and none of them are in
 *         TCP_LISTEN state, the port may be shared.
 *         Failing that, goto test 3.
 *      3) If all sockets are bound to a specific inet_sk(sk)->rcv_saddr local
 *         address, and none of them are the same, the port may be
 *         shared.
 *         Failing this, the port cannot be shared.
..

If I understand this correctly the suggestion in the RFC follows this
scheme so the request to mimic TCP/IP stack seems to be fulfilled.
If this breaks iWarp maybe we should forbid iWarp reusing the port
(with a flag on the rdma_id without being able to change it).

What do you say?
--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Photo]     [Yosemite News]     [Yosemite Photos]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux