From: "Russell King (Oracle)" <linux@armlinux.org.uk>
To: Kory Maincent <kory.maincent@bootlin.com>
Cc: Jakub Kicinski <kuba@kernel.org>, netdev@vger.kernel.org
Subject: Re: Testing selectable timestamping - where are the tools for this feature?
Date: Thu, 14 Nov 2024 20:20:58 +0000 [thread overview]
Message-ID: <ZzZbqll+zj8o+Umc@shell.armlinux.org.uk> (raw)
In-Reply-To: <ZzTMhGDoi3WcY6MR@shell.armlinux.org.uk>
On Wed, Nov 13, 2024 at 03:57:56PM +0000, Russell King (Oracle) wrote:
> On Wed, Nov 13, 2024 at 04:16:02PM +0100, Kory Maincent wrote:
> > You simply need to install python python-yaml and maybe others python
> > subpackages.
> > Copy the tool "tools/net/ynl" and the specs "Documentation/netlink/" on the
> > board.
> >
> > Then run the ynl commands.
>
> Thanks... fairly unweildly but at least it's functional. However,
> running the first, I immediately find a problem:
>
> # ./ynl/cli.py --spec netlink/specs/ethtool.yaml --no-schema --dump tsinfo-get --json '{"header":{"dev-name":"eth0"}}'
>
> One would expect this to only return results for eth0 ? I get:
Here's the nlmon packet capture for the ynl request:
0x0000: 0004 0338 0000 0000 0000 0000 0000 0010 ...8............
0x0010: 2400 0000 1500 0503 f9d3 0000 0000 0000 $...............
0x0020: 1901 0000 1000 0180 0900 0200 6574 6832 ............eth2
0x0030: 0000 0000 ....
Length: 0x00000024
Family ID: 0x0015 (ethtool)
Flags: 0x0305 (Return all matching, Specify tree root, ack, request)
Sequence: 0x0000d3f9
Port ID: 0x00000000
Command: 0x19
Family Version: 0x01
Then 16 bytes of data that does contain the interface name given to
YNL. I haven't parsed that, it seems to require manual effort to do
so as wireshark is unable to do so.
I'd be guessing to draw any conclusions from this without deeper
analysis.
--
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!
next prev parent reply other threads:[~2024-11-14 20:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-13 14:46 Testing selectable timestamping - where are the tools for this feature? Russell King (Oracle)
2024-11-13 15:16 ` Kory Maincent
2024-11-13 15:57 ` Russell King (Oracle)
2024-11-13 16:14 ` Kory Maincent
2024-11-13 16:41 ` Kory Maincent
2024-11-13 16:52 ` Russell King (Oracle)
2024-11-13 17:02 ` Kory Maincent
2024-11-14 20:20 ` Russell King (Oracle) [this message]
2024-11-15 9:11 ` Kory Maincent
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ZzZbqll+zj8o+Umc@shell.armlinux.org.uk \
--to=linux@armlinux.org.uk \
--cc=kory.maincent@bootlin.com \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.