Re: [PATCH RFC] netns: keep vlan slaves on master netns move

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Eric W. Biederman
Date: Monday, September 27, 2010 - 9:23 am

Patrick McHardy <kaber@trash.net> writes:


My problem is that while the both have dellink implemented we
don't really batch their deletes as best we can.

For macvlan when the underlying device is unregistered we delete
each macvlan device one by one.

For vlans we do batch the deletes, but not in the same batch as
the underlying device.


I definitely think we should remove the devices when the lower device
is destroyed/removed.  However unregistered is a slightly different
concept, and arguably macvlan and vlan devices are much more intimately
connected to their underlying device than that.

What I meant is we should implement the deletion differently.  By doing
something like having a list of all derived devices for a device, that
we could walk and call dellink on from rollback_registered_many.  In
theory that could destroy a whole pile of macvlan and vlan devices with
various different stackings one on the other all in the same batch.

Eric
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH RFC] netns: keep vlan slaves on master netns move, David Lamparter, (Tue Aug 24, 4:50 am)
Re: [PATCH RFC] netns: keep vlan slaves on master netns move, Daniel Lezcano, (Tue Aug 24, 10:00 am)
Re: [PATCH RFC] netns: keep vlan slaves on master netns move, Eric W. Biederman, (Tue Aug 24, 12:14 pm)
Re: [PATCH RFC] netns: introduce NETREG_NETNS_MOVING reg_state, Eric W. Biederman, (Wed Aug 25, 10:39 am)
Re: [PATCH RFC] netns: keep vlan slaves on master netns move, David Lamparter, (Mon Sep 13, 4:43 am)
Re: [PATCH RFC] netns: keep vlan slaves on master netns move, Eric W. Biederman, (Tue Sep 14, 7:10 pm)
Re: [PATCH RFC] netns: keep vlan slaves on master netns move, Daniel Lezcano, (Tue Sep 14, 11:47 pm)
Re: [PATCH RFC] netns: keep vlan slaves on master netns move, Patrick McHardy, (Fri Sep 17, 5:49 am)
Re: [PATCH] netns: keep vlan slaves on master netns move, David Lamparter, (Fri Sep 17, 6:22 am)
Re: [PATCH] netns: keep vlan slaves on master netns move, David Miller, (Fri Sep 17, 10:56 am)
Re: [PATCH RFC] netns: keep vlan slaves on master netns move, Eric W. Biederman, (Mon Sep 27, 9:23 am)