netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] net/rds: SOL_RDS socket option to explicitly select transport
@ 2015-05-29 21:28 Sowmini Varadhan
  2015-05-29 21:28 ` [PATCH 1/3] net/rds: Declare SO_RDS_TRANSPORT and RDS_TRANS_* constants in uapi/linux/rds.h Sowmini Varadhan
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Sowmini Varadhan @ 2015-05-29 21:28 UTC (permalink / raw)
  To: netdev, linux-kernel
  Cc: chien.yen, davem, rds-devel, ajaykumar.hotchandani, igor.maximov,
	Sowmini Varadhan

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.

Sowmini Varadhan (3):
  Declare SO_RDS_TRANSPORT and RDS_TRANS_* constants in
    uapi/linux/rds.h
  Add setsockopt support for SO_RDS_TRANSPORT
  Add setsockopt support for SO_RDS_TRANSPORT

 include/uapi/linux/rds.h |   10 ++++++++++
 net/rds/af_rds.c         |   41 +++++++++++++++++++++++++++++++++++++++++
 net/rds/bind.c           |    4 ++++
 net/rds/rds.h            |    6 +-----
 net/rds/transport.c      |   21 +++++++++++++++++++++
 5 files changed, 77 insertions(+), 5 deletions(-)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2015-06-01  4:47 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-05-29 21:28 [PATCH 0/3] net/rds: SOL_RDS socket option to explicitly select transport Sowmini Varadhan
2015-05-29 21:28 ` [PATCH 1/3] net/rds: Declare SO_RDS_TRANSPORT and RDS_TRANS_* constants in uapi/linux/rds.h Sowmini Varadhan
2015-05-29 21:28 ` [PATCH 2/3] net/rds: Add setsockopt support for SO_RDS_TRANSPORT Sowmini Varadhan
2015-05-29 21:28 ` [PATCH 3/3] net/rds Add getsockopt " Sowmini Varadhan
2015-06-01  4:47 ` [PATCH 0/3] net/rds: SOL_RDS socket option to explicitly select transport David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).