]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4d1f99f2d7d58cb240bc603373f8babd39a4fc96
treee80491a8120724db96f7f6c6d2e2334d33383e6c
parent6937af22738f55a31ac3c0f13c1003677b3e21c3
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