linux/net/bridge
Simon Arlott e0f43752a9 bridge: update sysfs link names if port device names have changed
Links for each port are created in sysfs using the device
name, but this could be changed after being added to the
bridge.

As well as being unable to remove interfaces after this
occurs (because userspace tools don't recognise the new
name, and the kernel won't recognise the old name), adding
another interface with the old name to the bridge will
cause an error trying to create the sysfs link.

This fixes the problem by listening for NETDEV_CHANGENAME
notifications and renaming the link.

https://bugzilla.kernel.org/show_bug.cgi?id=12743

Signed-off-by: Simon Arlott <simon@fire.lp0.eu>
Acked-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2010-05-15 23:10:15 -07:00
..
netfilter netfilter: xtables: change hotdrop pointer to direct modification 2010-05-11 18:35:27 +02:00
br_device.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
br_fdb.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
br_forward.c Merge branch 'master' of /repos/git/net-next-2.6 2010-05-10 18:39:28 +02:00
br_if.c bridge: update sysfs link names if port device names have changed 2010-05-15 23:10:15 -07:00
br_input.c Merge branch 'master' of /repos/git/net-next-2.6 2010-04-20 16:02:01 +02:00
br_ioctl.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
br_multicast.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
br_netfilter.c netfilter: bridge-netfilter: fix crash in br_nf_forward_finish() 2010-05-13 14:55:34 +02:00
br_netlink.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
br_notify.c bridge: update sysfs link names if port device names have changed 2010-05-15 23:10:15 -07:00
br_private_stp.h net: remove CVS keywords 2008-06-11 21:00:38 -07:00
br_private.h bridge: update sysfs link names if port device names have changed 2010-05-15 23:10:15 -07:00
br_stp_bpdu.c Merge branch 'master' of /repos/git/net-next-2.6 2010-04-20 16:02:01 +02:00
br_stp_if.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
br_stp_timer.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
br_stp.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
br_sysfs_br.c bridge: Add multicast count/interval sysfs entries 2010-02-28 00:49:47 -08:00
br_sysfs_if.c bridge: update sysfs link names if port device names have changed 2010-05-15 23:10:15 -07:00
br.c bridge: change console message interface 2010-05-15 23:10:02 -07:00
Kconfig bridge br_multicast: IPv6 MLD support. 2010-04-23 13:35:56 +09:00
Makefile bridge: Add core IGMP snooping support 2010-02-28 00:48:45 -08:00