Closed matrohon closed 5 months ago
it seems ethtool and associated syscalls are really driver dependent, and not all drivers implement the stats feature. smsc75xx for instance does not.
However this driver seems to update the corresponding /net/dev/ file : https://github.com/torvalds/linux/blob/5924bbecd0267d87c24110cbe2041b5075173a25/drivers/net/usb/smsc75xx.c#L2147
Shouldn't it gracefully return error when the stats are not available for e.g. ethtool just returns stats not available
$ sudo /sbin/ethtool -S ens3
no stats available
I'm using the example you're providing in your README, with eth0
It ends up with a panic
and ethtool is telling me that no stats are available for eth0.