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=-3.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,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 E8E8FC10F0E for ; Tue, 9 Apr 2019 21:41:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B12F9218FC for ; Tue, 9 Apr 2019 21:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554846060; bh=zETYWugn7Bl+MLHyHSZCwb2CVg3Mn4cueQR/AjIvQ1M=; h=From:To:Cc:Subject:Date:List-ID:From; b=HebO7w8cf7L3PPkeYSPcJEaIATOuLn08snzYjew2k2Le1CjGPbEZYJ+aO5WdhsBBI aDpgeo/bCZJnLbxLwIxNrviKvLlAvxUEeIiHr405WWFyq3RC1IRfzX9LL1HNjoxRzd leLNbVG6qidzucqpXIPcRx48C6G5bIKSGsBv8s+k= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726756AbfDIVk7 (ORCPT ); Tue, 9 Apr 2019 17:40:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:55996 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726739AbfDIVk7 (ORCPT ); Tue, 9 Apr 2019 17:40:59 -0400 Received: from kenny.it.cumulusnetworks.com. (fw.cumulusnetworks.com [216.129.126.126]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AD3ED2082A; Tue, 9 Apr 2019 21:40:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1554846058; bh=zETYWugn7Bl+MLHyHSZCwb2CVg3Mn4cueQR/AjIvQ1M=; h=From:To:Cc:Subject:Date:From; b=gzUzeGRAbALmrgHXn2qO0VFDzx/GiLM7VTOu5oSgloVcHcxL0BhjLbHb9ZS8fJOPn EtjAhuQQlLD2m7fCiSV8Zm6M9xgjH5XDCWjv0aT0pP5NGYrQD+cWkn72KMPrJCK+uB xQvWom3QBZcf+TJB8eCDCCOLRbxs0YkF9qMEroT4= From: David Ahern To: davem@davemloft.net, netdev@vger.kernel.org Cc: idosch@mellanox.com, David Ahern Subject: [PATCH net-next 00/10] ipv6: Refactor nexthop selection helpers during a fib lookup Date: Tue, 9 Apr 2019 14:41:09 -0700 Message-Id: <20190409214119.15258-1-dsahern@kernel.org> X-Mailer: git-send-email 2.11.0 Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org From: David Ahern IPv6 has a fib6_nh embedded within each fib6_info and a separate fib6_info for each path in a multipath route. A side effect is that a fib6_info is passed all the way down the stack when selecting a path on a fib lookup. Refactor the fib lookup functions and associated helper functions to take a fib6_nh when appropriate to enable IPv6 to work with nexthop objects where the fib6_nh is not directly part of a fib entry. David Ahern (10): ipv6: only call rt6_check_neigh for nexthop with gateway ipv6: Remove rt6_check_dev ipv6: Change rt6_probe to take a fib6_nh ipv6: Pass fib6_nh and flags to rt6_score_route ipv6: Refactor find_match ipv6: Refactor find_rr_leaf ipv6: Be smarter with null_entry handling in ip6_pol_route_lookup ipv6: Move fib6_multipath_select down in ip6_pol_route ipv6: Refactor rt6_device_match ipv6: Refactor __ip6_route_redirect include/net/ip6_fib.h | 8 +- net/ipv6/route.c | 266 +++++++++++++++++++++++++++----------------------- 2 files changed, 149 insertions(+), 125 deletions(-) -- 2.11.0