Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-08 Thread Jason Wang
On 2017年11月08日 14:43, Michael S. Tsirkin wrote: On Wed, Nov 08, 2017 at 02:28:53PM +0900, Jason Wang wrote: On 2017年11月04日 08:56, Willem de Bruijn wrote: On Fri, Nov 3, 2017 at 5:56 PM, Willem de Bruijn wrote: On Tue, Oct 31, 2017 at 7:32 PM, Jason Wang wrote: This patch introduces an eB

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-07 Thread Michael S. Tsirkin
On Wed, Nov 08, 2017 at 02:28:53PM +0900, Jason Wang wrote: > > > On 2017年11月04日 08:56, Willem de Bruijn wrote: > > On Fri, Nov 3, 2017 at 5:56 PM, Willem de Bruijn > > wrote: > > > On Tue, Oct 31, 2017 at 7:32 PM, Jason Wang wrote: > > > > This patch introduces an eBPF based queue selection me

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-07 Thread Jason Wang
On 2017年11月04日 08:56, Willem de Bruijn wrote: On Fri, Nov 3, 2017 at 5:56 PM, Willem de Bruijn wrote: On Tue, Oct 31, 2017 at 7:32 PM, Jason Wang wrote: This patch introduces an eBPF based queue selection method based on the flow steering policy ops. Userspace could load an eBPF program thr

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-03 Thread Willem de Bruijn
On Fri, Nov 3, 2017 at 5:56 PM, Willem de Bruijn wrote: > On Tue, Oct 31, 2017 at 7:32 PM, Jason Wang wrote: >> This patch introduces an eBPF based queue selection method based on >> the flow steering policy ops. Userspace could load an eBPF program >> through TUNSETSTEERINGEBPF. This gives much

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-03 Thread Willem de Bruijn
On Tue, Oct 31, 2017 at 7:32 PM, Jason Wang wrote: > This patch introduces an eBPF based queue selection method based on > the flow steering policy ops. Userspace could load an eBPF program > through TUNSETSTEERINGEBPF. This gives much more flexibility compare > to simple but hard coded policy in

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-01 Thread Jason Wang
On 2017年11月01日 21:59, Michael S. Tsirkin wrote: On Wed, Nov 01, 2017 at 09:02:03PM +0800, Jason Wang wrote: On 2017年11月01日 00:45, Michael S. Tsirkin wrote: +static void __tun_set_steering_ebpf(struct tun_struct *tun, + struct bpf_prog *new) +{ + struct

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-01 Thread Jason Wang
On 2017年11月02日 03:12, Alexei Starovoitov wrote: On Wed, Nov 01, 2017 at 03:59:48PM +0200, Michael S. Tsirkin wrote: On Wed, Nov 01, 2017 at 09:02:03PM +0800, Jason Wang wrote: On 2017年11月01日 00:45, Michael S. Tsirkin wrote: +static void __tun_set_steering_ebpf(struct tun_struct *tun, +

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-01 Thread Alexei Starovoitov
On Wed, Nov 01, 2017 at 03:59:48PM +0200, Michael S. Tsirkin wrote: > On Wed, Nov 01, 2017 at 09:02:03PM +0800, Jason Wang wrote: > > > > > > On 2017年11月01日 00:45, Michael S. Tsirkin wrote: > > > > +static void __tun_set_steering_ebpf(struct tun_struct *tun, > > > > +

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-01 Thread Michael S. Tsirkin
On Wed, Nov 01, 2017 at 09:02:03PM +0800, Jason Wang wrote: > > > On 2017年11月01日 00:45, Michael S. Tsirkin wrote: > > > +static void __tun_set_steering_ebpf(struct tun_struct *tun, > > > + struct bpf_prog *new) > > > +{ > > > + struct bpf_prog *old; > > > + > > > + old

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-11-01 Thread Jason Wang
On 2017年11月01日 00:45, Michael S. Tsirkin wrote: +static void __tun_set_steering_ebpf(struct tun_struct *tun, + struct bpf_prog *new) +{ + struct bpf_prog *old; + + old = rtnl_dereference(tun->steering_prog); + rcu_assign_pointer(tun->steering_

Re: [PATCH net-next V2 3/3] tun: add eBPF based queue selection method

2017-10-31 Thread Michael S. Tsirkin
On Tue, Oct 31, 2017 at 06:32:18PM +0800, Jason Wang wrote: > This patch introduces an eBPF based queue selection method based on > the flow steering policy ops. Userspace could load an eBPF program > through TUNSETSTEERINGEBPF. This gives much more flexibility compare > to simple but hard coded po