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

From: Jason Wang
Date: Tue Dec 05 2017 - 21:30:36 EST




On 2017å12æ06æ 01:02, David Miller wrote:
From: Jason Wang <jasowang@xxxxxxxxxx>
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 <jasowang@xxxxxxxxxx>
---
Changes from V2:
- call rtnl during netdev free
- switch to use call_rcu() to prevent DOS from userspace
- drop the policies setting/getting ioctls and allow detach through
passing -1 as fd
Applied, thanks Jason.

I really wish this driver had newlink/changelink support rather than
us adding all of these ioctls...

Yes, will add this in my todo list.

Thanks