On Mon, Jul 03, 2017 at 10:28:39AM +0200, Jiri Benc wrote:
> On Mon, 3 Jul 2017 09:12:46 +0200, Richard Cochran wrote:
> > We can even call uname(2) to check the kernel version when bonding is
> > requested in the configuration.
> 
> Please don't do that. Always check for the feature being present, never
> for a kernel version. It's common for various groups to backport newer
> features to older kernels; kernel version alone does not indicate
> anything.

Ok, then just let ptp4l try to configure the bonding interface, and
when it fails, put a hint about the kernel version into the error
message.

Thanks,
Richard

------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Linuxptp-devel mailing list
Linuxptp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linuxptp-devel

Reply via email to