Re: [PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-07 Thread Jason Wang
On 2017年12月08日 06:11, Eric Dumazet wrote: On Mon, 2017-12-04 at 17:31 +0800, Jason Wang wrote: This patch introduces an eBPF based queue selection method. With this, the policy could be offloaded to userspace completely through a new ioctl TUNSETSTEERINGEBPF. Sorry for the delay, I see this p

Re: [PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-07 Thread Eric Dumazet
On Mon, 2017-12-04 at 17:31 +0800, Jason Wang wrote: > This patch introduces an eBPF based queue selection method. With > this, > the policy could be offloaded to userspace completely through a new > ioctl TUNSETSTEERINGEBPF. Sorry for the delay, I see this patch was merged already. ... >  stati

Re: [PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-05 Thread Jason Wang
On 2017年12月06日 01:02, David Miller wrote: From: Jason Wang Date: Mon, 4 Dec 2017 17:31:23 +0800 This patch introduces an eBPF based queue selection method. With this, the policy could be offloaded to userspace completely through a new ioctl TUNSETSTEERINGEBPF. Signed-off-by: Jason Wang --

Re: [PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-05 Thread David Miller
From: Jason Wang Date: Mon, 4 Dec 2017 17:31:23 +0800 > This patch introduces an eBPF based queue selection method. With this, > the policy could be offloaded to userspace completely through a new > ioctl TUNSETSTEERINGEBPF. > > Signed-off-by: Jason Wang > --- > Changes from V2: > - call rtnl

Re: [PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-05 Thread Willem de Bruijn
On Tue, Dec 5, 2017 at 2:29 AM, Jason Wang wrote: > > > On 2017年12月05日 08:16, Willem de Bruijn wrote: >> >> On Mon, Dec 4, 2017 at 4:31 AM, Jason Wang wrote: >>> >>> This patch introduces an eBPF based queue selection method. With this, >>> the policy could be offloaded to userspace completely th

Re: [PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-04 Thread Jason Wang
On 2017年12月05日 08:16, Willem de Bruijn wrote: On Mon, Dec 4, 2017 at 4:31 AM, Jason Wang wrote: This patch introduces an eBPF based queue selection method. With this, the policy could be offloaded to userspace completely through a new ioctl TUNSETSTEERINGEBPF. Signed-off-by: Jason Wang ---

Re: [PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-04 Thread Willem de Bruijn
On Mon, Dec 4, 2017 at 4:31 AM, Jason Wang wrote: > This patch introduces an eBPF based queue selection method. With this, > the policy could be offloaded to userspace completely through a new > ioctl TUNSETSTEERINGEBPF. > > Signed-off-by: Jason Wang > --- > +static u16 tun_ebpf_select_queue(str

[PATCH net-next V3] tun: add eBPF based queue selection method

2017-12-04 Thread Jason Wang
This patch introduces an eBPF based queue selection method. With this, the policy could be offloaded to userspace completely through a new ioctl TUNSETSTEERINGEBPF. Signed-off-by: Jason Wang --- Changes from V2: - call rtnl during netdev free - switch to use call_rcu() to prevent DOS from userspa