On 六, 2017-01-14 at 17:57 -0800, Florian Fainelli wrote: > Le 01/14/17 à 17:51, yuan linyu a écrit : > > > > I think mii-tool or ethtool can't do it currently. > Maybe they cannot right now but they can certainly be patched to support > that. sysfs is not an appropriate interface for what you are proposing > here. We already have a set/get register via ethtool (-d/-D) it would > seem natural to use this. I think most ethernet driver implement ethtool -d to dump mac register.
> > Besides that, are not the current ioctl() good enough for that? I think user/developer diagnose through simple attribute file will be easy.