datapath: Update sysfs links when network devices are renamed.
authorBen Pfaff <blp@nicira.com>
Wed, 5 Aug 2009 21:36:21 +0000 (14:36 -0700)
committerBen Pfaff <blp@nicira.com>
Thu, 6 Aug 2009 23:57:06 +0000 (16:57 -0700)
commit0515ceb3e82ecc6160a141017c20ca26ec1a7a5f
tree5cef4ca168bf3d4d247da85ff5545ea2e36a8959
parent58c342f617051e9e2ffb09710b4ef2b22c34e79a
datapath: Update sysfs links when network devices are renamed.

We create symlinks from /sys/class/net/<bridgename>/brif/<devname> to
/sys/class/net/<devname>/brport, but until now we have never updated the
links when network devices are renamed.  This commit fixes this problem.

(Only the <devname> in /sys/class/net/<bridgename>/brif/<devname> needs to
be updated.  Symlinks within sysfs have stable targets; that is, no matter
how the object that a sysfs symlink points to moves around, the link is
still maintained correctly.)
datapath/datapath.c
datapath/datapath.h
datapath/dp_notify.c
datapath/dp_sysfs_if.c