Re: [PATCH v2 0/2] make POSIX timers optional
From: Jiri Benc
Date: Wed Sep 21 2016 - 06:27:27 EST
On Wed, 21 Sep 2016 10:38:52 +0200, Richard Cochran wrote:
> Embedded people like to optimize their systems. One pattern I have
> more than once is that a multihomed design designates a special PTP
> interface, often with a different HW than the other ports. PTP
> support adds extra code into the hot path, and for that reason people
> want to turn it off on interfaces that don't need it.
We really need to find some middle way. It's impossible to support
every little corner case. As is not reasonable to have a single
configuration only kernel.
I think this scenario falls into the little corner case. If you need
PTP, you just enable it. The PTP core will be much larger than the
added code in the individual drivers anyway.
And if there's run time impact on the fast path with time stamping
switched off on an interface, it's a bug that has to be fixed.
Jiri