Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-03-25 Thread Gilberto
On 03/25/2016 12:25 AM, Tom Herbert wrote: > On Wed, Mar 16, 2016 at 6:19 AM, Gilberto Bertin > wrote: >> This is my second attempt to submit an RFC for this patch. >> >> Some arguments for and against it since the first submission: >> * SO_BINDTOSUBNET is an arbitrary option and can be seens as n

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-03-24 Thread Tom Herbert
On Wed, Mar 16, 2016 at 6:19 AM, Gilberto Bertin wrote: > This is my second attempt to submit an RFC for this patch. > > Some arguments for and against it since the first submission: > * SO_BINDTOSUBNET is an arbitrary option and can be seens as nother use > * case of the SO_REUSEPORT BPF patch >

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-03-14 Thread Willem de Bruijn
> - write a bpf filter like this: .. > > - compile it: > $ clang -target bpf -c -o socket_bpf.o socket_bpf.c > > - add this to your server.c: > bpf_load_file("/path/to/socket_bpf.o"); > setsockopt(sock, SOL_SOCKET, SO_ATTACH_BPF, prog_fd, > sizeof(prog_fd[0])); > > - link y

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-03-11 Thread Gilberto Bertin
> On 7 Mar 2016, at 17:49, Tom Herbert wrote: > >> That said, do you believe it could be an option to maybe have both these >> options? I think that the ability to run BPF in the listening path is >> really interesting, but it's probably an overkill for the bind-to-subnet >> use case. >> > > M

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-03-07 Thread David Ahern
On 2/23/16 8:27 AM, Gilberto Bertin wrote: This series introduces support for the SO_BINDTOSUBNET socket option, which allows a listener socket to bind to a subnet instead of * or a single address. Motivation: consider a set of servers, each one with thousands and thousands of IP addresses. Sinc

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-03-07 Thread Tom Herbert
On Mon, Mar 7, 2016 at 9:22 AM, Gilberto Bertin wrote: > >> On 24 Feb 2016, at 05:06, Tom Herbert wrote: >> >> On Tue, Feb 23, 2016 at 7:27 AM, Gilberto Bertin >> wrote: >>> This series introduces support for the SO_BINDTOSUBNET socket option, which >>> allows a listener socket to bind to a subn

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-03-07 Thread Gilberto Bertin
> On 24 Feb 2016, at 05:06, Tom Herbert wrote: > > On Tue, Feb 23, 2016 at 7:27 AM, Gilberto Bertin > wrote: >> This series introduces support for the SO_BINDTOSUBNET socket option, which >> allows a listener socket to bind to a subnet instead of * or a single >> address. >> >> Motivation: >>

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-02-25 Thread Gilberto Bertin
> On 24 Feb 2016, at 05:06, Tom Herbert wrote: > > On Tue, Feb 23, 2016 at 7:27 AM, Gilberto Bertin > wrote: >> This series introduces support for the SO_BINDTOSUBNET socket option, which >> allows a listener socket to bind to a subnet instead of * or a single >> address. >> >> Motivation: >>

Re: [net-next RFC 0/4] SO_BINDTOSUBNET

2016-02-23 Thread Tom Herbert
On Tue, Feb 23, 2016 at 7:27 AM, Gilberto Bertin wrote: > This series introduces support for the SO_BINDTOSUBNET socket option, which > allows a listener socket to bind to a subnet instead of * or a single address. > > Motivation: > consider a set of servers, each one with thousands and thousands