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=-10.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 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 9E69AC433B4 for ; Wed, 28 Apr 2021 12:31:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5ECFA613AD for ; Wed, 28 Apr 2021 12:31:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237625AbhD1Mch (ORCPT ); Wed, 28 Apr 2021 08:32:37 -0400 Received: from mx0.infotecs.ru ([91.244.183.115]:53404 "EHLO mx0.infotecs.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235956AbhD1Mcg (ORCPT ); Wed, 28 Apr 2021 08:32:36 -0400 Received: from mx0.infotecs-nt (localhost [127.0.0.1]) by mx0.infotecs.ru (Postfix) with ESMTP id 46D101395850; Wed, 28 Apr 2021 15:31:50 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx0.infotecs.ru 46D101395850 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infotecs.ru; s=mx; t=1619613110; bh=FmBlWo8T/7J6U7RhItShLxG8m/sdraW8iuK14mDW0FI=; h=Date:From:To:CC:Subject:From; b=N/iybFB8kfovTg+AAzNuDZDbrU7Qr4QYC/u2wAiU2GLwwXbCg0H3t+LW9BmsFvnYY Bs68O62xBYWc1JD7Q7hxnZTo98mD9lCquE97EwBZSmPyM8iZrWyrzQJvisQ9H0fs+t rLFgWYr+B66F9ORjXrZY4PypFhDPBklasuey6EbU= Received: from msk-exch-02.infotecs-nt (msk-exch-02.infotecs-nt [10.0.7.192]) by mx0.infotecs-nt (Postfix) with ESMTP id 447D63029CD2; Wed, 28 Apr 2021 15:31:50 +0300 (MSK) Date: Wed, 28 Apr 2021 15:30:00 +0300 From: Pavel Balaev To: CC: "David S. Miller" , Jakub Kicinski , Jonathan Corbet , Hideaki YOSHIFUJI , David Ahern , Shuah Khan , Christophe JAILLET , , , Ido Schimmel Subject: [PATCH v6 net-next 0/3] net: multipath routing: configurable seed Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline X-Originating-IP: [11.0.8.107] X-EXCLAIMER-MD-CONFIG: 208ac3cd-1ed4-4982-a353-bdefac89ac0a X-KLMS-Rule-ID: 1 X-KLMS-Message-Action: clean X-KLMS-AntiSpam-Lua-Profiles: 163368 [Apr 28 2021] X-KLMS-AntiSpam-Version: 5.9.20.0 X-KLMS-AntiSpam-Envelope-From: BalaevPA@infotecs.ru X-KLMS-AntiSpam-Rate: 0 X-KLMS-AntiSpam-Status: not_detected X-KLMS-AntiSpam-Method: none X-KLMS-AntiSpam-Auth: dkim=none X-KLMS-AntiSpam-Info: LuaCore: 444 444 810d227eb39db4b6b1b4a1d2ddb57b8d8d084f93, {Tracking_uf_ne_domains}, {Tracking_from_domain_doesnt_match_to} X-MS-Exchange-Organization-SCL: -1 X-KLMS-AntiSpam-Interceptor-Info: scan successful X-KLMS-AntiPhishing: Clean, bases: 2021/04/28 11:08:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2021/04/28 07:03:00 #16582427 X-KLMS-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org This is the sixth version of the mpath seed series. This patch series adds ability for a user to assign seed value to multipath route hashes. changes v6: - Fix author name and surname position changes v5: - patch was splited to patch series - remove CONFIG_IP_ROUTE_MULTIPATH define from flow_multipath_hash_from_keys(), it used in both IPv4/IPv6 protos. The mainlining discussion history of this branch: v5: https://lore.kernel.org/netdev/YIgu4hLNSa69%2FoFZ@rnd/ v4: https://lore.kernel.org/netdev/YILPPCyMjlnhPmEN@rnd/ Pavel Balaev (3): net/ipv4: multipath routing: configurable seed net/ipv6: multipath routing: configurable seed selftests/net/forwarding: configurable seed tests Documentation/networking/ip-sysctl.rst | 14 + include/net/flow_dissector.h | 2 + include/net/netns/ipv4.h | 2 + include/net/netns/ipv6.h | 3 + net/core/flow_dissector.c | 7 + net/ipv4/route.c | 10 +- net/ipv4/sysctl_net_ipv4.c | 97 ++++++ net/ipv6/route.c | 10 +- net/ipv6/sysctl_net_ipv6.c | 96 ++++++ tools/testing/selftests/net/forwarding/Makefile | 1 + tools/testing/selftests/net/forwarding/lib.sh | 28 ++ .../net/forwarding/router_mpath_seed.sh (new +x) | 347 +++++++++++++++++++++ 12 files changed, 615 insertions(+), 2 deletions(-)