From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Abeni Subject: Re: [PATCH net-next 1/4] indirect call wrappers: helpers to speed-up indirect calls of builtin Date: Tue, 04 Dec 2018 12:27:51 +0100 Message-ID: <8d0e66be95d9a9f0aaf01ab9bf32344629a4b711.camel@redhat.com> References: <4b3d364077091ad23415894e74a212d1168425cc.1543836966.git.pabeni@redhat.com> <92281874-51f1-c79c-dbfe-021600a36c9d@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit To: Eric Dumazet , "David S. Miller" , netdev@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:52596 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726677AbeLDL1x (ORCPT ); Tue, 4 Dec 2018 06:27:53 -0500 In-Reply-To: <92281874-51f1-c79c-dbfe-021600a36c9d@gmail.com> Sender: netdev-owner@vger.kernel.org List-ID: On Mon, 2018-12-03 at 10:04 -0800, Eric Dumazet wrote: > On 12/03/2018 03:40 AM, Paolo Abeni wrote: > > This header define a bunch of helpers that allow avoiding the > > retpoline overhead when calling builtin functions via function pointers. > > It boils down to explicitly comparing the function pointers to > > known builtin functions and eventually invoke directly the latter. > > > > The macros defined here implement the boilerplate for the above schema > > and will be used by the next patches. > > > > rfc -> v1: > > - use branch prediction hint, as suggested by Eric > > > > Suggested-by: Eric Dumazet > > Signed-off-by: Paolo Abeni > > --- > > include/linux/indirect_call_wrapper.h | 77 +++++++++++++++++++++++++++ > > 1 file changed, 77 insertions(+) > > create mode 100644 include/linux/indirect_call_wrapper.h > > This needs to be discussed more broadly, please include lkml Agreed. @David: please let me know if you prefer a repost or a v2 with the expanded recipients list. > Also please include Paul Turner in the discussion, since he was > the inventor of this idea. I will do. Thanks, Paolo