net: forbid underlaying devices to change its type
authorJiri Pirko <jpirko@redhat.com>
Wed, 10 Mar 2010 10:30:19 +0000 (10:30 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 19 Mar 2010 03:00:02 +0000 (20:00 -0700)
commit1c01fe14a87332cc88266fbd6e598319322eb96f
treee80491a8120724db96f7f6c6d2e2334d33383e6c
parent3ca5b4042ecae5e73c59de62e4ac0db31c10e0f8
net: forbid underlaying devices to change its type

It's not desired for underlaying devices to change type. At the time,
there is for example possible to have bond with changed type from
Ethernet to Infiniband as a port of a bridge. This patch fixes this.

Signed-off-by: Jiri Pirko <jpirko@redhat.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/macvlan.c
net/8021q/vlan.c
net/bridge/br_notify.c