Subject: Re: [net-next-2.6 PATCH] bonding: refuse to change bond type if it's used

From: Stephen Hemminger <[email-masked]>
Date: Mon, 8 Mar 2010 10:24:48 -0800

On Mon, 8 Mar 2010 18:54:06 +0100
Jiri Pirko <[email-masked]> wrote:

> It's not desirable to be able to change the type of net_device in bond device if
> it's in use by bridge, or vlan, or so. At the moment, there is possible for
> example to have INFINIBAND bond type in bridge (by adding bond with eth type to
> a bridge first and then enslave INFINIBAND device).

Rather than building lots of back pointer dependencies, why not
have another netdevice notifier that allows other subsystems to
see the type change and reject it if they care? That way the code
would be more modular and expandable.