You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we get some netdevice information from sysfs (/sys/class/net//...) and some via netlink.
we should use netlink where possible for implementations of interfaces under host pkg.
From review of the code, where we can switch to netlink is for mtu and mac.
The text was updated successfully, but these errors were encountered:
Hi @adrianchiris, as i see in the case of mtu and mac it is already using netlink library instead of sysfs (i am referring to pkg/host/internal/network/network.go
but we can use for ifindex also or any more suggestions to replace more low level of accessing filesystem with libraries such as
ghw for getting name from pciAddress or any similar ?let's have a thought on it
Currently we get some netdevice information from sysfs (/sys/class/net//...) and some via netlink.
we should use netlink where possible for implementations of interfaces under host pkg.
From review of the code, where we can switch to netlink is for mtu and mac.
The text was updated successfully, but these errors were encountered: