[openib-general] [PATCH] RDMA CM: assign port numbers whenbinding a cm_id to an address

Sean Hefty sean.hefty at intel.com
Wed Apr 19 09:52:37 PDT 2006


>One part I didn't understand, however, was where the local port is
>assigned for children of the listening endpoint? The local port for
>these endpoints will be the same as for the listening parent. So if
>cma_use_port is used to bind these child endpoints (i.e. add them to the
>owners list), then the logic will need to distinguish between rdma_cm_id
>attempting to bind as a listener vs. rdma_cm_id binding as connected
>children.

The child copies the local address information from the connection request.  See
cma_new_id() and calls to cma_get_net_info() and cma_save_net_info().

The child binding is not stored in the bound port space table (tcp_ps).  I
didn't see a need to do this, which avoids adding logic to distinguish between
binding as a listener versus as a connected child.

- Sean 



More information about the general mailing list