• M
    Cleanup "/sys/class/net" usage · 5040f00b
    Michal Privoznik 提交于
    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: NMichal Privoznik <mprivozn@redhat.com>
    (cherry picked from commit 96a21e97)
    5040f00b
parallels_network.c 16.6 KB