Re: [PATCH net-next] Extending bpf_setsockopt with SO_BINDTODEVICE sockopt

2020-05-21 Thread Ferenc Fejes
> Any specific reason you're not reusing sock_setbindtodevice or at least > sock_setbindtodevice_locked here? I think, historically, we've > reimplemented some of the sockopts because they were 'easy' (i.e. > were just setting a flag in the socket), this one looks more involved. Yes, there is a co

Re: [PATCH net-next] Extending bpf_setsockopt with SO_BINDTODEVICE sockopt

2020-05-21 Thread sdf
On 05/21, Ferenc Fejes wrote: This option makes possible to programatically bind sockets to netdevices. With the help of this option sockets of VRF unaware applications could be distributed between multiple VRFs with eBPF sock_ops program. This let the applications benefit from the multiple possi

Re: [PATCH net-next] Extending bpf_setsockopt with SO_BINDTODEVICE sockopt

2020-05-21 Thread Andrii Nakryiko
On Thu, May 21, 2020 at 5:54 AM Ferenc Fejes wrote: > > This option makes possible to programatically bind sockets to netdevices. > With the help of this option sockets of VRF unaware applications > could be distributed between multiple VRFs with eBPF sock_ops program. > This let the applications

[PATCH net-next] Extending bpf_setsockopt with SO_BINDTODEVICE sockopt

2020-05-21 Thread Ferenc Fejes
This option makes possible to programatically bind sockets to netdevices. With the help of this option sockets of VRF unaware applications could be distributed between multiple VRFs with eBPF sock_ops program. This let the applications benefit from the multiple possible routes. Signed-off-by: Fere