On Tue, Apr 13, 2021 at 1:45 AM Andrew Lunn <and...@lunn.ch> wrote: [...] > > > and a few people have forked it and modified it for other DSA > > > switches. At some point we might want to try to merge the forks back > > > together so we have one tool to dump any switch. > > actually I was wondering if there is some way to make the registers > > "easier to read" in userspace. > > You can add decoding to ethtool. The marvell chips have this, to some > extent. But the ethtool API is limited to just port registers, and > there can be a lot more registers which are not associated to a > port. devlink gives you access to these additional registers. oh, then that's actually also a problem with my patch: the .get_regs implementation currently also uses five registers which are not related to the specific port. noted in case I re-send this as .get_regs patch instead of moving over to devlink.
Thanks for the hints as always! Martin