From mboxrd@z Thu Jan 1 00:00:00 1970 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 3CA68C07E99 for ; Mon, 5 Jul 2021 21:38:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 2363761988 for ; Mon, 5 Jul 2021 21:38:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230123AbhGEVko (ORCPT ); Mon, 5 Jul 2021 17:40:44 -0400 Received: from novek.ru ([213.148.174.62]:46158 "EHLO novek.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233476AbhGEVjT (ORCPT ); Mon, 5 Jul 2021 17:39:19 -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 C05C7503221; Tue, 6 Jul 2021 00:34:31 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 novek.ru C05C7503221 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=novek.ru; s=mail; t=1625520872; bh=S9dAAHDp1jEnrAkc5uQ1mfVv7nWGZZAC0uE0HeVYlls=; h=From:To:Cc:Subject:Date:From; b=WG/8NfBGXebxEhxch/a9uMunhDxgkBAPLMqFlXgz9Ru51XD/PYjgisfiek1mZQgWL j8ZRxzLe91vEF5he42se3wUWQrMZ9OuZYmSp/8OLeGhObCdtRsoLzt7bqT299oSGRU 3ESJ3vyTJyyFzdSswl//YeM/96vHmgvWH7vsDnTI= 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: [PATCH net-next 0/2] Remove duplicate code around MTU Date: Tue, 6 Jul 2021 00:36:15 +0300 Message-Id: <20210705213617.18317-1-vfedorenko@novek.ru> X-Mailer: git-send-email 2.18.4 Precedence: bulk List-ID: X-Mailing-List: netdev@vger.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(-) -- 2.18.4