Thread (2 messages) flat view 2 messages, 2 authors, 2012-12-03

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

From: David Miller <davem@davemloft.net>
Date: 2012-12-03 18:49:21
Also in: lkml

From: Jason Wang <redacted>
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
uevents to be injected to userspace since we create 2048 kobjects and then
remove 2046. Solve this problem by attaching queue 0 and set the real number of
queues before registering netdevice.

Reported-by: Jiri Slaby <redacted>
Tested-by: Jiri Slaby <redacted>
Signed-off-by: Jason Wang <redacted>
Applied, thanks Jason.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help