Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp1646913pxu; Sat, 12 Dec 2020 21:57:00 -0800 (PST) X-Google-Smtp-Source: ABdhPJyrR1qfenYmQiqVjzdEF56zT6JHBr9glt5+s9sAuOehGYrRxe9Y1olms8F0CuMXR6TRiu8N X-Received: by 2002:aa7:d94e:: with SMTP id l14mr19156471eds.98.1607839019983; Sat, 12 Dec 2020 21:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607839019; cv=none; d=google.com; s=arc-20160816; b=NcUpf/FBTK9pFfAD3MRxfiSv4pNAtT6VBlS9AyiGBKFrhZrd3phV+kosDhRpekyj2G 8HsKj7on6zIIGGSssUzY672H4RH02AQFdicLjDi9IDSSJYYBggrz6+7Z4myIJyvoPR9R kMggE4nWEcMZQkWBk85NSTg3m9V0DNkLnfUSaXvZ0SVQzEHgfT55LDMP6QdO2RYxpzh1 EIXj5s5gQWBzYi4zCxpR6iMXb0xTHEPG0Uk8BkbQ2MIOiFi7UwA1ljIIjwlCOH6g3EpV YcuXIJI+twGZxjhPp15RnWPSs8NUn7MiEBIEyx0Gy1Rvy5H9wJusdNuiXaFW/f5DBtq/ V/Sw== 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=mnk0yNaQYUtc+OGm2Ej0P6u5h1xpL6GiZ/YPBHS5LOU=; b=z6YQqAHauIYQwjyPvmQROOMqa5WBOVCTux8+vxKo3iNTR3/Y3XV7lOxLUTBV0VLWtc Xlc8LRhobjjOAvcdjWX882CxG6Ok1JIiCpZTQ56Y6R+ZkGKLLexADHgv8j0zoLhpWK+Q 0qCvseVEy360XTPKZMsJ2z0BHZt65MfL/0cBYTCcAHpnWvZ7HgwliLejL2p4d/FwLQKy TNosDwdxCdHYOt2elzyA8uD9TUKOj8IUS1A2Rl67e1MZIuUNdGV63GycYzy/liyzJZU1 cd3gAfLNqUUqZRKxJ01UhRWvuIWFQLMFcKk0mzEoGinayZgfSBJvqKeONVgJwdlc+fEA doSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=c+eM5eQd; 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 l7si8523955edv.409.2020.12.12.21.56.37; Sat, 12 Dec 2020 21:56:59 -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=c+eM5eQd; 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 S2437249AbgLKXet (ORCPT + 99 others); Fri, 11 Dec 2020 18:34:49 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729817AbgLKXeY (ORCPT ); Fri, 11 Dec 2020 18:34:24 -0500 Received: from mail-qk1-x74a.google.com (mail-qk1-x74a.google.com [IPv6:2607:f8b0:4864:20::74a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 398B0C0613CF for ; Fri, 11 Dec 2020 15:33:44 -0800 (PST) Received: by mail-qk1-x74a.google.com with SMTP id g26so19302qkk.13 for ; Fri, 11 Dec 2020 15:33:44 -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=mnk0yNaQYUtc+OGm2Ej0P6u5h1xpL6GiZ/YPBHS5LOU=; b=c+eM5eQdQ+qiykEDoQ248iehOkFTnTi6bmZz/d+E0j8CJX7QCxjk8V3hpPsNuhBx7d 2R8hJlVesC97oveCy4PMWfKfVWBOc7fk0umYrduba7carksZmqhlcbKjR4r1d1iRS08W /jvqX2Tr/4aHyAlhGUoDL5KEbqvaz3F363kf9i/w19D2vjmlN4KFowdkfgZj2VwMJXoh +sR49VR0qb7yNqjKfXqgPBMH9zWTKLmG/ipOsIp5wlM8l8JMeR/GTHcW4scrW7qj8Syq QEz5N0bmmL/3UifOOfG+XHMFi/gqGMmC6lR4LQPfXLiwZirO2XmO7raIUj2nv6eGWlEn iZvg== 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=mnk0yNaQYUtc+OGm2Ej0P6u5h1xpL6GiZ/YPBHS5LOU=; b=lkyBCjPCy9S+Y4gnE6fuS0/sDMkKalchSHlSWrMhgLPAY1Sgik4ZSwau7Cow+v2ygP 60Qgbuz87j7X28kE5DOqxDL//mPEaPTjpk/XcI0aq8MDK4B9wOFThB3y8eZqS5kgPoh/ sjjie9TSlxkF14ZIxAsf8NnGzgVt/1vso3rSbnKnTGG86LJK2sxcE7NUt8QI1TwGWDsX cIgfXEMVwx0XoDAVSXrGazN3BlecYSPR9ZDKTwcA6ww0uNK8xa9Hw1G/MzFsjh6nfmlM oQGerimxeEzAN0K4Rw6M6G160YwTUQFPVpQDv8HaI8HGtyYJBkzer6h27DKDDyDxHdE6 uQDw== X-Gm-Message-State: AOAM531QHiUfSnTzOuuN9+XBW7KYCPh+0B2T+OaTXeOav4wu+VVMUuPm M8W0BaWoyBMzP7j59dOXqZoyRGuGUgOC 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:a0c:f283:: with SMTP id k3mr13068839qvl.48.1607729623384; Fri, 11 Dec 2020 15:33:43 -0800 (PST) Date: Fri, 11 Dec 2020 23:33:36 +0000 Message-Id: <20201211233340.1503242-1-brianvv@google.com> Mime-Version: 1.0 X-Mailer: git-send-email 2.29.2.576.ga3fc446d84-goog Subject: [PATCH net-next v2 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 Changed in v2: -fix build issues reported by kernel test robot 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/ip_input.c | 1 + net/ipv4/ip_output.c | 1 + net/ipv4/route.c | 13 +++++++++---- net/ipv4/tcp_ipv4.c | 5 ++++- net/ipv6/ip6_output.c | 1 + net/ipv6/route.c | 13 +++++++++---- net/ipv6/tcp_ipv6.c | 5 ++++- 9 files changed, 60 insertions(+), 16 deletions(-) -- 2.29.2.576.ga3fc446d84-goog