From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756745AbcIUK1Y (ORCPT ); Wed, 21 Sep 2016 06:27:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:48898 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756667AbcIUK1T (ORCPT ); Wed, 21 Sep 2016 06:27:19 -0400 Date: Wed, 21 Sep 2016 12:27:16 +0200 From: Jiri Benc To: Richard Cochran Cc: Nicolas Pitre , Thomas Gleixner , John Stultz , Josh Triplett , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 0/2] make POSIX timers optional Message-ID: <20160921122716.0f609423@griffin> In-Reply-To: <20160921083851.GA27145@localhost.localdomain> References: <1474401400-18491-1-git-send-email-nicolas.pitre@linaro.org> <20160920202556.GA6713@localhost.localdomain> <20160920204556.GA7555@localhost.localdomain> <20160921083851.GA27145@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 21 Sep 2016 10:27:19 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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