From patchwork Thu Jul 1 01:17:26 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vadim Fedorenko X-Patchwork-Id: 12353045 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B7B6FC11F66 for ; Thu, 1 Jul 2021 01:17:39 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 88F1661425 for ; Thu, 1 Jul 2021 01:17:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238153AbhGABUI (ORCPT ); Wed, 30 Jun 2021 21:20:08 -0400 Received: from novek.ru ([213.148.174.62]:59366 "EHLO novek.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238301AbhGABUH (ORCPT ); Wed, 30 Jun 2021 21:20:07 -0400 Received: from nat1.ooonet.ru (gw.zelenaya.net [91.207.137.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by novek.ru (Postfix) with ESMTPSA id D004F50332D; Thu, 1 Jul 2021 04:15:32 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru D004F50332D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1625102133; bh=S9dAAHDp1jEnrAkc5uQ1mfVv7nWGZZAC0uE0HeVYlls=; h=From:To:Cc:Subject:Date:From; b=P7phaVt7ShTFxvMeWl0Bqv5/GwcJFifbUN9kpr2WMsV/OgTZlU7yEx/ItE0FkJAmp q5IidDoST0QwK9DC8HNtc/Pnt9HSQ+ThzzlJLxA3yinJYOdZqI9yBkWS1dpjGWWkkq WKvb6xH57mBGwHNuZ5x0/eX57ueQT42dMHGgrT7Y= From: Vadim Fedorenko To: David Ahern , netdev@vger.kernel.org Cc: Jakub Kicinski , Hideaki YOSHIFUJI , "David S. Miller" , Pablo Neira Ayuso , Florian Westphal , Vadim Fedorenko Subject: [RFC net-next 0/2] Remove duplicate code around MTU Date: Thu, 1 Jul 2021 04:17:26 +0300 Message-Id: <20210701011728.22626-1-vfedorenko@novek.ru> X-Mailer: git-send-email 2.18.4 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org X-Patchwork-Delegate: kuba@kernel.org X-Patchwork-State: RFC This patchset is intended to remove duplicated code around MTU calculation and consolidate in one function. Also it alignes IPv4 and IPv6 code in functions naming and usage Vadim Fedorenko (2): net: ipv6: introduce ip6_dst_mtu_maybe_forward net: ipv4: Consolidate ipv4_mtu and ip_dst_mtu_maybe_forward include/net/ip.h | 22 ++++++++++++++++++---- include/net/ip6_route.h | 5 +++-- net/ipv4/route.c | 21 +-------------------- net/ipv6/ip6_output.c | 2 +- net/ipv6/route.c | 20 +------------------- net/netfilter/nf_flow_table_core.c | 2 +- 6 files changed, 25 insertions(+), 47 deletions(-)