Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-23 Thread Neil Horman
On Wed, May 23, 2018 at 03:04:53PM +0800, Xin Long wrote: > On Tue, May 22, 2018 at 7:51 PM, Neil Horman wrote: > > On Tue, May 22, 2018 at 03:07:57PM +0800, Xin Long wrote: > >> On Mon, May 21, 2018 at 9:48 PM, Neil Horman wrote: > >> > On Mon, May 21, 2018 at 02:16:56PM +0200, Michael Tuexen wr

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-23 Thread Xin Long
On Tue, May 22, 2018 at 7:51 PM, Neil Horman wrote: > On Tue, May 22, 2018 at 03:07:57PM +0800, Xin Long wrote: >> On Mon, May 21, 2018 at 9:48 PM, Neil Horman wrote: >> > On Mon, May 21, 2018 at 02:16:56PM +0200, Michael Tuexen wrote: >> >> > On 21. May 2018, at 13:39, Neil Horman wrote: >> >>

RE: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-22 Thread David Laight
... > > >> the reason this was added is to have a specified way to allow a system to > > >> behave like a client and server making use of the INIT collision. > > >> > > >> For 1-to-many style sockets you can do this by creating a socket, > > >> binding it, > > >> calling listen on it and trying to

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-22 Thread Neil Horman
On Tue, May 22, 2018 at 03:07:57PM +0800, Xin Long wrote: > On Mon, May 21, 2018 at 9:48 PM, Neil Horman wrote: > > On Mon, May 21, 2018 at 02:16:56PM +0200, Michael Tuexen wrote: > >> > On 21. May 2018, at 13:39, Neil Horman wrote: > >> > > >> > On Sun, May 20, 2018 at 10:54:04PM -0300, Marcelo

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-22 Thread Xin Long
On Mon, May 21, 2018 at 9:48 PM, Neil Horman wrote: > On Mon, May 21, 2018 at 02:16:56PM +0200, Michael Tuexen wrote: >> > On 21. May 2018, at 13:39, Neil Horman wrote: >> > >> > On Sun, May 20, 2018 at 10:54:04PM -0300, Marcelo Ricardo Leitner wrote: >> >> On Sun, May 20, 2018 at 08:50:59PM -040

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-21 Thread Marcelo Ricardo Leitner
On Mon, May 21, 2018 at 04:09:31PM +0200, Michael Tuexen wrote: > > On 21. May 2018, at 15:48, Neil Horman wrote: > > > > On Mon, May 21, 2018 at 02:16:56PM +0200, Michael Tuexen wrote: > >>> On 21. May 2018, at 13:39, Neil Horman wrote: > >>> > >>> On Sun, May 20, 2018 at 10:54:04PM -0300, Mar

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-21 Thread Michael Tuexen
> On 21. May 2018, at 15:48, Neil Horman wrote: > > On Mon, May 21, 2018 at 02:16:56PM +0200, Michael Tuexen wrote: >>> On 21. May 2018, at 13:39, Neil Horman wrote: >>> >>> On Sun, May 20, 2018 at 10:54:04PM -0300, Marcelo Ricardo Leitner wrote: On Sun, May 20, 2018 at 08:50:59PM -0400, N

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-21 Thread Neil Horman
On Mon, May 21, 2018 at 02:16:56PM +0200, Michael Tuexen wrote: > > On 21. May 2018, at 13:39, Neil Horman wrote: > > > > On Sun, May 20, 2018 at 10:54:04PM -0300, Marcelo Ricardo Leitner wrote: > >> On Sun, May 20, 2018 at 08:50:59PM -0400, Neil Horman wrote: > >>> On Sat, May 19, 2018 at 03:44:

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-21 Thread Michael Tuexen
> On 21. May 2018, at 13:39, Neil Horman wrote: > > On Sun, May 20, 2018 at 10:54:04PM -0300, Marcelo Ricardo Leitner wrote: >> On Sun, May 20, 2018 at 08:50:59PM -0400, Neil Horman wrote: >>> On Sat, May 19, 2018 at 03:44:40PM +0800, Xin Long wrote: This feature is actually already supporte

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-21 Thread Neil Horman
On Sun, May 20, 2018 at 10:54:04PM -0300, Marcelo Ricardo Leitner wrote: > On Sun, May 20, 2018 at 08:50:59PM -0400, Neil Horman wrote: > > On Sat, May 19, 2018 at 03:44:40PM +0800, Xin Long wrote: > > > This feature is actually already supported by sk->sk_reuse which can be > > > set by SO_REUSEAD

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-21 Thread Xin Long
On Mon, May 21, 2018 at 9:54 AM, Marcelo Ricardo Leitner wrote: > On Sun, May 20, 2018 at 08:50:59PM -0400, Neil Horman wrote: >> On Sat, May 19, 2018 at 03:44:40PM +0800, Xin Long wrote: >> > This feature is actually already supported by sk->sk_reuse which can be >> > set by SO_REUSEADDR. But it'

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-20 Thread Tom Herbert
On Sun, May 20, 2018 at 6:54 PM, Marcelo Ricardo Leitner wrote: > On Sun, May 20, 2018 at 08:50:59PM -0400, Neil Horman wrote: >> On Sat, May 19, 2018 at 03:44:40PM +0800, Xin Long wrote: >> > This feature is actually already supported by sk->sk_reuse which can be >> > set by SO_REUSEADDR. But it'

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-20 Thread Marcelo Ricardo Leitner
On Sun, May 20, 2018 at 08:50:59PM -0400, Neil Horman wrote: > On Sat, May 19, 2018 at 03:44:40PM +0800, Xin Long wrote: > > This feature is actually already supported by sk->sk_reuse which can be > > set by SO_REUSEADDR. But it's not working exactly as RFC6458 demands in > > section 8.1.27, like:

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-20 Thread Neil Horman
On Sat, May 19, 2018 at 03:44:40PM +0800, Xin Long wrote: > This feature is actually already supported by sk->sk_reuse which can be > set by SO_REUSEADDR. But it's not working exactly as RFC6458 demands in > section 8.1.27, like: > > - This option only supports one-to-one style SCTP sockets >

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-20 Thread Tom Herbert
On Sat, May 19, 2018 at 12:44 AM, Xin Long wrote: > This feature is actually already supported by sk->sk_reuse which can be > set by SO_REUSEADDR. But it's not working exactly as RFC6458 demands in > section 8.1.27, like: > > - This option only supports one-to-one style SCTP sockets > - This s

Re: [PATCH net-next] sctp: add support for SCTP_REUSE_PORT sockopt

2018-05-19 Thread Marcelo Ricardo Leitner
On Sat, May 19, 2018 at 03:44:40PM +0800, Xin Long wrote: > This feature is actually already supported by sk->sk_reuse which can be > set by SO_REUSEADDR. But it's not working exactly as RFC6458 demands in > section 8.1.27, like: > > - This option only supports one-to-one style SCTP sockets > -