Thread (53 messages) flat view 53 messages, 8 authors, 2011-05-10

Re: Scalability of interface creation and deletion

From: Alex Bligh <hidden>
Date: 2011-05-09 05:37:48


--On 8 May 2011 23:00:47 +0200 Eric Dumazet [off-list ref] wrote:
We can probably speed things, but we should consider the following user
actions :
How about
ip link add link eth0 vlan103 type vlan id 103
ip link del vlan103
Removes and unlinks structures, including making name available, sending
out netlink messages, but doesn't free things
ip link add link eth1 vlan103 type vlan id 103
creates new interface

[some time later] original zombie i/f freed
The "link del" command should return to user only if the minimum things
had been done, to make sure the following "link add" wont fail
mysteriously.
Are you worried about failure through name collision (already
dealt with), vlan tag collision (ditto) or what?

-- 
Alex Bligh
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help