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,URIBL_BLOCKED autolearn=unavailable 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 ABCA6C43461 for ; Tue, 27 Apr 2021 15:35:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 802EF60BBB for ; Tue, 27 Apr 2021 15:35:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237856AbhD0Pgd (ORCPT ); Tue, 27 Apr 2021 11:36:33 -0400 Received: from mx0.infotecs.ru ([91.244.183.115]:56210 "EHLO mx0.infotecs.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236254AbhD0Pgb (ORCPT ); Tue, 27 Apr 2021 11:36:31 -0400 Received: from mx0.infotecs-nt (localhost [127.0.0.1]) by mx0.infotecs.ru (Postfix) with ESMTP id 67595108A04B; Tue, 27 Apr 2021 18:35:43 +0300 (MSK) DKIM-Filter: OpenDKIM Filter v2.11.0 mx0.infotecs.ru 67595108A04B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=infotecs.ru; s=mx; t=1619537743; bh=KxbNYGfPwQJcQ49DgL87484lXfDTpag3H+aJRE9b52A=; h=Date:From:To:CC:Subject:From; b=i8CVO9rhOWeVh49XeEzit6nvpzMcwRong51cFMxFHl6ieEKJnVh4YpJIhpxmAIob0 nx3DnpvxwEqzgiHPsRAh3LFwQbuB3txPz4t7LC4qdVbeKheniNNL1iC3WOhQvq+SKB OB61Bzcs3E8wer6D85LNFa59UDI/nkAYnO7DP0Oo= Received: from msk-exch-02.infotecs-nt (autodiscover.iitrust.ru [10.0.7.192]) by mx0.infotecs-nt (Postfix) with ESMTP id 647D4316F917; Tue, 27 Apr 2021 18:35:43 +0300 (MSK) Date: Tue, 27 Apr 2021 18:33:54 +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 v5 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: 163354 [Apr 27 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: 443 443 d64ad0ad6f66abd85f8fb55fe5d831fdcc4c44a0, {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/27 12:22:00 X-KLMS-AntiVirus: Kaspersky Security for Linux Mail Server, version 8.0.3.30, bases: 2021/04/27 11:47:00 #16580367 X-KLMS-AntiVirus-Status: Clean, skipped Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is the fifth version of the mpath seed series. This patch series adds ability for a user to assign seed value to multipath route hashes. changes v4: - 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: v4: https://lore.kernel.org/netdev/21a2fb1925b215cc48ab8e2f783a7de7@void.so Balaev Pavel (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(-)