Re: [PATCH net-next] tuntap: attach queue 0 before registering netdevice

2012-12-03 Thread David Miller
From: Jason Wang Date: Mon, 3 Dec 2012 11:19:45 +0800 > We attach queue 0 after registering netdevice currently. This leads to call > netif_set_real_num_{tx|rx}_queues() after registering the netdevice. Since we > allow tun/tap has a maximum of 1024 queues, this may lead a huge number of > ueven

[PATCH net-next] tuntap: attach queue 0 before registering netdevice

2012-12-02 Thread Jason Wang
We attach queue 0 after registering netdevice currently. This leads to call netif_set_real_num_{tx|rx}_queues() after registering the netdevice. Since we allow tun/tap has a maximum of 1024 queues, this may lead a huge number of uevents to be injected to userspace since we create 2048 kobjects and