]> git.baikalelectronics.ru Git - kernel.git/commit
Merge branch 'rds-next'
authorDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2015 04:47:23 +0000 (21:47 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2015 04:47:23 +0000 (21:47 -0700)
commit72434584f3d2ac632a1a466ab9b5ce7cad2ae0c6
tree006c24e39896b5d0911c957533b02defc4e4b12b
parent63a2f8cf4eb5181bc89c7f0af6bae1e7d85b8971
parent1eca0d4a0a08aa7c8a80322867f30bdef5dbdefc
Merge branch 'rds-next'

Sowmini Varadhan says:

====================
net/rds: SOL_RDS socket option to explicitly select transport

Today the underlying transport (TCP or IB) for a PF_RDS socket is
implicitly selected based on the local address used to bind(2) the
PF_RDS socket. This results in some non-deterministic behavior when
there are un-numbered and IPoIB interfaces sharing the same IP address.
It also places the constraint that the IB interface must have an IP
address (and thus, IPoIB) configured on it.

The non-determinism may be avoided by providing the user-space application
a socket option that allows it to explicitly select the transport
prior to bind(2).

Patch 1 of this series provides the constant definitions needed by
the application via <linux/rds.h>.

Patch 2 provides the setsockopt support, and Patch 3 provides the
getsockopt support.
====================

Signed-off-by: David S. Miller <davem@davemloft.net>