[Intel-wired-lan] [PATCH net 02/13] net: reject PTP periodic output requests with unsupported flags

Keller, Jacob E jacob.e.keller at intel.com
Fri Nov 15 01:14:15 UTC 2019


> -----Original Message-----
> From: Saeed Mahameed <saeedm at mellanox.com>
> Sent: Thursday, November 14, 2019 3:58 PM
> To: richardcochran at gmail.com; netdev at vger.kernel.org
> Cc: Hall, Christopher S <christopher.s.hall at intel.com>; Eugenia Emantayev
> <eugenia at mellanox.com>; davem at davemloft.net;
> sergei.shtylyov at cogentembedded.com; Feras Daoud <ferasda at mellanox.com>;
> stefan.sorensen at spectralink.com; Brown, Aaron F <aaron.f.brown at intel.com>;
> brandon.streiff at ni.com; Keller, Jacob E <jacob.e.keller at intel.com>; Kirsher,
> Jeffrey T <jeffrey.t.kirsher at intel.com>; intel-wired-lan at lists.osuosl.org;
> felipe.balbi at linux.intel.com
> Subject: Re: [PATCH net 02/13] net: reject PTP periodic output requests with
> unsupported flags
> 
> On Thu, 2019-11-14 at 10:44 -0800, Richard Cochran wrote:
> > From: Jacob Keller <jacob.e.keller at intel.com>
> >
> LGTM, just there might be a problem with old tools that didn't clear
> the flags upon request and expected PTP periodic .. they will stop to
> work with new kernel, am i am not sure if such tools do exist.
> 

Not quite. This is why there is a V2 ioctl now. The V1 ioctl now explicitly disables any bits set beyond the originally defined ones, so that callers of v1 will continue to work, even if they send junk data.

Thus, old tools should continue working with the old interface, while tools that want new functionality must be upgraded to use the v2 ioctls.

Thanks,
Jake

> But the fact now that we have PTP_PEROUT_ONE_SHOT, we need to trust
> both driver and tools to do the right thing.
> 
> What are the tools to test PTP_PEROUT_ONE_SHOT ? to support this in
> mlx5 it is just a matter of a flipping a bit.
> 
> Reviewed-by: Saeed Mahameed <saeedm at mellanox.com>
> 



More information about the Intel-wired-lan mailing list