RFC: move SDP from AF_INET_SDP to IPPROTO_SDP
Subsystems (2)
Hi!
I am working on implementing the Sockets Direct Protocol (SDP) for InfiniBand on Linux. SDP uses the regular IPv4/IPv6 addresses and utilizes the IPv4/IPv6 layer on top of InfiniBand for address resolution. However, all data is transferred by means of an infiniband reliable connection.
Some existing SDP implementations posted on the openib.org subversion tree create a new address family in a free slot, for this purpose.
Would it make sense to move SDP from using a separate address family to a separate protocol under AF_INET and AF_INET6?
Something like IPPROTO_SDP?
The main advantages of this approach are
- IPv6 support will come more naturally and without further extending to a yet another address family
- We could use a protocol number > 255 to avoid conflicting with any IP based protocol.
There are much more free protocol numbers that free family numbers (which only go up to 32 in linux for now).
- I could reuse more code for creating connections from af_inet.c
I also have a hunch this might make getaddrinfo and friends work better on sdp selecting IPv4/IPv6 as appropriate but I'm not sure.
Comments? Are there disadvantages to this approach that someone can see?
Thanks,
Signature · 14 lines
Michael S. Tsirkin Staff Engineer, Mellanox Technologies _______________________________________________ openib-general mailing list [email protected] http://openib.org/mailman/listinfo/openib-general To unsubscribe, please visit http://openib.org/mailman/listinfo/openib-general ----- End forwarded message ----- -- Michael S. Tsirkin Staff Engineer, Mellanox Technologies
I don't know any details about SDP, but if there are no differences at the protocol layer, then neither the address family nor the protocol is appropriate. If it's just an API change, the socket type is the right selector. So, maybe SOCK_DIRECT to go along with SOCK_STREAM, SOCK_DGRAM, etc.
+-DLS
Quoting r. David Stevens <[email protected]>:
Quoted 7 lines
Subject: Re: RFC: move SDP from
AF_INET_SDPtoIPPROTO_SDPI don't know any details about SDP, but if there are no differences at the protocol layer, then neither the address family nor the protocol is appropriate. If it's just an API change, the socket type is the right selector. So, maybe
SOCK_DIRECTto go along withSOCK_STREAM,SOCK_DGRAM, etc.
No, the API SDP implements is the regular SOCK_STREAM semantics.
The difference is in the way connections are established with infiniband connection management messages, and data is transferred with infiniband reliable connection send messages.
Signature · 2 lines
Michael S. Tsirkin Staff Engineer, Mellanox Technologies