netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Testing selectable timestamping - where are the tools for this feature?
@ 2024-11-13 14:46 Russell King (Oracle)
  2024-11-13 15:16 ` Kory Maincent
  0 siblings, 1 reply; 9+ messages in thread
From: Russell King (Oracle) @ 2024-11-13 14:46 UTC (permalink / raw)
  To: Kory Maincent; +Cc: Jakub Kicinski, netdev

Hi Kory,

I've finally found some cycles (and time when I'm next to the platform)
to test the selectable timestamping feature. However, I'm struggling to
get it to work.

In your email
https://lore.kernel.org/20240709-feature_ptp_netnext-v17-0-b5317f50df2a@bootlin.com/
you state that "You can test it with the ethtool source on branch
feature_ptp of: https://github.com/kmaincent/ethtool". I cloned this
repository, checked out the feature_ptp branch, and while building
I get the following warnings:

netlink/desc-ethtool.c:241:37: warning: ‘__ts_desc’ defined but not used [-Wunus
ed-const-variable=]
  241 | static const struct pretty_nla_desc __ts_desc[] = {
      |                                     ^~~~~~~~~
netlink/ts.c: In function ‘ts_get_reply_cb’:
netlink/ts.c:23:14: warning: unused variable ‘str’ [-Wunused-variable]
   23 |         char str[10] = {'\0'};
      |              ^~~
ethtool.c:4865:12: warning: ‘do_set_ptp’ defined but not used [-Wunused-functio ]
 4865 | static int do_set_ptp(struct cmd_context *ctx)
      |            ^~~~~~~~~~
ethtool.c:4839:12: warning: ‘do_get_ptp’ defined but not used [-Wunused-functio ]
 4839 | static int do_get_ptp(struct cmd_context *ctx)
      |            ^~~~~~~~~~
ethtool.c:4817:12: warning: ‘do_list_ptp’ defined but not used [-Wunused-function]
 4817 | static int do_list_ptp(struct cmd_context *ctx)
      |            ^~~~~~~~~~~

My conclusion is... your ethtool sources for testing this feature are
broken, or this is no longer the place to test this feature.

Presumably there _is_ something somewhere that allows one to exercise
this new code that Jakub merged on July 15th (commit 30b356005048)?
Please could you point me in the appropriate direction ASAP - time is
very short if I'm going to give this a test on the setup where both
the MAC and PHY support PTP. Essentially, this afternoon - or its
going to be at least a month before the next opportunity.

Thanks.

-- 
RMK's Patch system: https://www.armlinux.org.uk/developer/patches/
FTTP is here! 80Mbps down 10Mbps up. Decent connectivity at last!

^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2024-11-15  9:11 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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)
2024-11-15  9:11       ` Kory Maincent

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).