]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
Cleanup "/sys/class/net" usage
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Apr 2015 09:45:47 +0000 (11:45 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Apr 2015 14:43:28 +0000 (16:43 +0200)
commit96a21e975f4b9d2f66a6aee1a16188837c98f82c
treeabc040c200dc61b472a06df4e457743f319cc42e
parent598f3fddbc0a9e9c16bb0554ff1481d3250c7d00
Cleanup "/sys/class/net" usage

Throughout the code, we have several places need to construct a path
somewhere in /sys/class/net/... They are not consistent and nearly
each code piece invents its own way how to do it. So unify this by:

1) use virNetDevSysfsFile() wherever possible

2) At least use common macro SYSFS_NET_DIR declared in virnetdev.h at
   the rest of places which can't go with 1)

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/Makefile.am
src/parallels/parallels_network.c
src/util/virnetdev.c
src/util/virnetdev.h
src/util/virnetdevbridge.c
src/util/virnetdevmacvlan.c
src/util/virnetdevveth.c