Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp837328pxu; Fri, 11 Dec 2020 16:03:44 -0800 (PST) X-Google-Smtp-Source: ABdhPJzlUBanY8Epc1I934KQybrcOTxsMDyr4TXVbF0LGE04/S1Rgtna/ODOIrKOB/ospjZXDrHX X-Received: by 2002:a50:d74c:: with SMTP id i12mr14252161edj.236.1607731424750; Fri, 11 Dec 2020 16:03:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607731424; cv=none; d=google.com; s=arc-20160816; b=XyKs2cXF7QMbsyzdNHwUI10L3t4hSrmRZobtHH88admi2M6S7kC0FDs96oFv9LGLGb DCUDLao8Q4x8qpFOwwkYzZWUzXIMAEgqE+kYfYsK1kaeiGLXR4noTG3bEfi3puXyTJnD iYonscC2mFhXLLZVqWwJDCCvEPkiCRReXyLxqlav8bWDjZmf6F7wvqDkjWNIc2zT7v9E XHcOOMEkOjq9zz/Hdo7b5Uj/4RhWqT649IlAurUDq3FnRzLWeqquokau5fSatcIWthT9 DfVKcvLEf3YA0ZmhATxN0UTsMCOVSz97AQzj2VFXx+A84T71HNxcIYZ4gNjIyjll7duB J5Yg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:mime-version:message-id:date :sender:dkim-signature; bh=X3AoiKidQ6crGHD5wFDjzqhurb9cqFSlsgkfzt0x/6g=; b=iomQQEwkMzJIrXUqKNqZXUGIPsz1Ssq2EPJ5VkItIZ/LNGG0w/37B8sdtUzVIEtS5q vAyFWVsRXFujL2RLQxWlKKITs78bnXS1pT3SUjikb06yhznirNvcbPXSEPR5raFM9ixf l6rfj4EFvxFC9zzOxtB3utZH7Vp+408E3lJ2XagYTeeRLWO80Ly66M/B4H3X/tj4/m4l C38jHNhD44X00oRTQDoo9HytrMgsP/g4Pp9uNHW6q129InhEQWOTrUJ0ljuqj9aUta2A Kg4L3CYORG3KMkUQK3USwmDylHiHzF4ErIVsKKbiUueAqOAFSDe0bw1C8cYRKDeVOmvH 5OnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rbpEnMrv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bi25si5934984edb.487.2020.12.11.16.03.22; Fri, 11 Dec 2020 16:03:44 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=rbpEnMrv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391635AbgLKB70 (ORCPT + 99 others); Thu, 10 Dec 2020 20:59:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389173AbgLKB7J (ORCPT ); Thu, 10 Dec 2020 20:59:09 -0500 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 97619C0613CF for ; Thu, 10 Dec 2020 17:58:29 -0800 (PST) Received: by mail-pf1-x44a.google.com with SMTP id x20so5341143pfm.6 for ; Thu, 10 Dec 2020 17:58:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:date:message-id:mime-version:subject:from:to:cc; bh=X3AoiKidQ6crGHD5wFDjzqhurb9cqFSlsgkfzt0x/6g=; b=rbpEnMrvqzGoVBNEIxdvmt42OVp8gS2HseDuthH7KFwBY5/+swso8bllcGKBG5An1L TUglQYQE+3XhjiQuyEFRwqrPUOujWVnEclYdpKlUp7pCuhIiFjeoYVg0XvsstAkgxC2t XrAVUToqYXxT+Ee0H0V50oxqPrfEDXVPSt/FXpese/7yWEuSvWHUJaMILffHwRKiy/e7 KTaLsUDvU1rlfk6Z8Yd+82HK7spF6UWrh1Tp+GsQs8DkLR6z6+kM2m6NZpps5xetM06W kqzG4Jj+a5dteYxsTf6kTNEWwJJimL1bpOrMuJrlK6BE46MpknEqHgHyOuuBqwwbwHwR iRXQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:message-id:mime-version:subject:from :to:cc; bh=X3AoiKidQ6crGHD5wFDjzqhurb9cqFSlsgkfzt0x/6g=; b=F51Kjq9s+8UKzESizw80AKa0MeZLPSuEQOVakHyZt7jvz3jY/4ndHh8Pa2+T31FPTW VtCTGOwwuMutByDen8dwbWb2OWaGThf6Kpo+Kpa9LPunJ2glRUHSWdEZhPv7t6lP3M9a yuue1xH+OLUl/ZVcW2OVriCxI+qLHTYc1lCC8iq7jKXFaA5RJ6Y+auyjsB02yFf4tv4w 8+h8gwWpSDypZXsBJLrs0KRHsrHOJSgrWO0j96haWXfM/96pYB6I05FEFxd1AKH9S6Fq JeQZaUDfnUY61nQCLyMKRE5pr7kz85WwZqcPi7xj+0A1EEhil6YTkMSEJHr4Fo585Cgr We4w== X-Gm-Message-State: AOAM531nxa48Drvg/7z0UjUSh0aGGjEyVekyUk8Hy5UC4fuXUx9rPoaP niFFsQWai0ZpDOAfQ5L5l9rxvWfRK5y7 Sender: "brianvv via sendgmr" X-Received: from brianvv.c.googlers.com ([fda3:e722:ac3:10:7f:e700:c0a8:348]) (user=brianvv job=sendgmr) by 2002:a17:902:e904:b029:db:c0d6:5823 with SMTP id k4-20020a170902e904b02900dbc0d65823mr8660082pld.11.1607651909009; Thu, 10 Dec 2020 17:58:29 -0800 (PST) Date: Fri, 11 Dec 2020 01:58:19 +0000 Message-Id: <20201211015823.1079574-1-brianvv@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog Subject: [PATCH net-next 0/4] net: avoid indirect calls in dst functions From: Brian Vazquez To: Brian Vazquez , Brian Vazquez , Eric Dumazet , "David S . Miller" Cc: linux-kernel@vger.kernel.org, netdev@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: brianvv Use of the indirect call wrappers in some dst related functions for the ipv6/ipv4 case. This is a small improvent for CONFIG_RETPOLINE=y brianvv (4): net: use indirect call helpers for dst_input net: use indirect call helpers for dst_output net: use indirect call helpers for dst_mtu net: indirect call helpers for ipv4/ipv6 dst_check functions include/net/dst.h | 25 +++++++++++++++++++++---- net/core/sock.c | 12 ++++++++++-- net/ipv4/route.c | 12 ++++++++---- net/ipv4/tcp_ipv4.c | 5 ++++- net/ipv6/route.c | 12 ++++++++---- net/ipv6/tcp_ipv6.c | 5 ++++- 6 files changed, 55 insertions(+), 16 deletions(-) -- 2.29.2.576.ga3fc446d84-goog