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