fix: remove extra logging on ethtool ioctl failures

We should ignore this, it's a totally an optional feature used in
containers (Talos on its own kernel has ethtool-netlink).

Fixes #9296

Signed-off-by: Andrey Smirnov <andrey.smirnov@siderolabs.com>
(cherry picked from commit a9269ac7b1217aa2d247c0215c5f2755af468b44)
This commit is contained in:
Andrey Smirnov 2024-09-11 14:07:20 +04:00
parent 5eb5ff532d
commit 9e60f17083
No known key found for this signature in database
GPG Key ID: FE042E3D4085A811

View File

@ -210,9 +210,7 @@ func (ctrl *LinkStatusController) reconcile(
if ethState == nil {
state, err := ethtoolIoctlClient.LinkState(link.Attributes.Name)
if err != nil {
logger.Warn("error querying ethtool ioctl link state", zap.String("link", link.Attributes.Name), zap.Error(err))
} else {
if err == nil {
ethState = &ethtool.LinkState{
Interface: ethtool.Interface{
Index: int(link.Index),