In every method, a socket is created. When using ethtool
inside a namespace, it requires switching to the namespace
for every call - as staying inside the namespace is risky
in Go. This commit introduces a Ethtool that creates the
socket once and reuses it for all the following calls
In every method, a socket is created. When using ethtool inside a namespace, it requires switching to the namespace for every call - as staying inside the namespace is risky in Go. This commit introduces a Ethtool that creates the socket once and reuses it for all the following calls