From patchwork Tue Jul 20 20:06: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: 12389195 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 B1C83C07E95 for ; Tue, 20 Jul 2021 20:09:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 8C04E6024A for ; Tue, 20 Jul 2021 20:09:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232986AbhGTT2p (ORCPT ); Tue, 20 Jul 2021 15:28:45 -0400 Received: from novek.ru ([213.148.174.62]:46282 "EHLO novek.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231927AbhGTT0U (ORCPT ); Tue, 20 Jul 2021 15:26:20 -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 D21A750348D; Tue, 20 Jul 2021 23:04:28 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru D21A750348D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1626811469; bh=S9dAAHDp1jEnrAkc5uQ1mfVv7nWGZZAC0uE0HeVYlls=; h=From:To:Cc:Subject:Date:From; b=IMYkP5sx0Jlbv/1ClfUotVTKoVzWuElASNKGsSIFtd4/EW8r9HNb1KGWXasFAguA9 lqqH4HoqbtmXEI9kbC0LJgVvIJKZyeMdjiRRHCJ+ggSlEO5xuR058shMPQog7XkRN+ ISL7/qsHYjprpjw7TiIJfBoH/wSDp82Hy+1L2gj0= From: Vadim Fedorenko To: David Ahern Cc: Jakub Kicinski , "David S. Miller" , netdev@vger.kernel.org, Hideaki YOSHIFUJI , Vadim Fedorenko , Pablo Neira Ayuso , Florian Westphal Subject: [PATCH RESEND net-next 0/2] Remove duplicate code around MTU Date: Tue, 20 Jul 2021 23:06:26 +0300 Message-Id: <20210720200628.16805-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 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(-)