On Mon, 2017-12-04 at 17:31 +0800, Jason Wang wrote:
This patch introduces an eBPF based queue selection method. WithSorry for the delay, I see this patch was merged already.
this,
the policy could be offloaded to userspace completely through a new
ioctl TUNSETSTEERINGEBPF.
...
Âstatic void tun_free_netdev(struct net_device *dev)I am pretty sure tun_free_netdev() (aka ->priv_destructor()) can be
Â{
 struct tun_struct *tun = netdev_priv(dev);
@@ -1996,6 +2068,9 @@ static void tun_free_netdev(struct net_device
*dev)
 free_percpu(tun->pcpu_stats);
 tun_flow_uninit(tun);
 security_tun_dev_free_security(tun->security);
+ rtnl_lock();
+ __tun_set_steering_ebpf(tun, NULL);
+ rtnl_unlock();
Â}
called under RTNL (say from register_netdevice())
So this will dead lock badly ?