From nobody Fri Jan 13 21:25:15 2023 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Ntvb01Dh5z2qksN; Fri, 13 Jan 2023 21:25:16 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Ntvb00B6Xz425T; Fri, 13 Jan 2023 21:25:16 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673645116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=X3G6ox75V5Gjz8Yo/Sm0wC1URLOciEZMRRwEQLC9Vos=; b=JG9n9A4ajmSQdn1SY+U9tGBNBKGRXkAyiwOUHksAT1IJwDKfQ+vB8zgac1J+bQQtamEzY9 QiKwH9oMkKkfVZZ6UoMWKpo2LF1NudSwHm8cuY6hPJC36S0QgY/ZP+2B7cY+hbavVycdQL 3S+u6nUXNnVtUnG7pBcjVotncLwSeqiErEfngzqZ9loJLVLHRLiDPyJUFP1D4DVgfvHxLh ZZOrv4yLnoh9X/l3FlI8F3DYPfPRs0cJlncq60dR6tiNZMHfWHpzR8pVIPOeLEG1CP+yQe u7aB482hcD1w629h/VsNSH6DC8xs76OqKzFaUMMM7g76NrIDMy/LKXkKHIRYwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1673645116; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=X3G6ox75V5Gjz8Yo/Sm0wC1URLOciEZMRRwEQLC9Vos=; b=OnIaRcL3wkO+CkUsEnnGBItINPi93jutTk7MOkWnkBkrGJDyTqt+xADcpfDjZLqKucUn0R MIgkGaXvon3fIC3GfT0BRBx/Oj+L3TWujRo2Aa5vgbN9qbuZdTLPCoxFHaKCF/0yfXRQNh YPJHtX/0qG5NUy7DjHdigiv7M5l5+2BeBHYL9lTW3/AS5IcDnocNkuZLTmx5n2CxF5Hy12 tqFZ6K4RetK1tSPfBVpah6hgpDiAwqS/nC3dmwZ3gVVsfH0uESUU/QZJBMe/WeQ8xzTv09 9hOUnFTr9yABOFMHHZh1N4KQpn0Yhh5NQSXXB6QMTQDqccri9s59UJ1lR5XAdQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1673645116; a=rsa-sha256; cv=none; b=IeFVzD+E6fHI30H6CGsXwzxVxElGxhfKdlqPDs2Jv6kJor/0Ok3/AbMSSHJ4rDGnnWHL0v 6KU+1MbjcKIlgMsF4iknAkRC4HrAzosXFzmTsOHxp/qk+3qW3nIxoZIabKFevid4BuIf8H 1SiV3Kejua0Oitn0rGGgFy/z9bvAz8hgPyeGs4HS8DL0p+13XY3Mc87fbfBg+rjOPa+Vlm /NTHoyLnltebfV2g91uWXHVIYH8OtzY7F78lUMwn/m6CQ223CrD+DK/5h4FRTCslZvrpde 0xLrTglKMSKdzR9Oe+UIE9oL3+30i8hIJ4h1F0XkM3gPq4mXEm1bEs3k6rAh4w== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NtvZz6JslzNGZ; Fri, 13 Jan 2023 21:25:15 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 30DLPFqh041599; Fri, 13 Jan 2023 21:25:15 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 30DLPF9U041598; Fri, 13 Jan 2023 21:25:15 GMT (envelope-from git) Date: Fri, 13 Jan 2023 21:25:15 GMT Message-Id: <202301132125.30DLPF9U041598@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: "Alexander V. Chernikov" Subject: git: 21d23766841d - stable/13 - routing: install prefix and loopback routes using new nhop-based KPI. List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: melifaro X-Git-Repository: src X-Git-Refname: refs/heads/stable/13 X-Git-Reftype: branch X-Git-Commit: 21d23766841d8e13dd80d315ce8bf3e0fd1b5027 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=21d23766841d8e13dd80d315ce8bf3e0fd1b5027 commit 21d23766841d8e13dd80d315ce8bf3e0fd1b5027 Author: Alexander V. Chernikov AuthorDate: 2022-08-08 19:24:26 +0000 Commit: Alexander V. Chernikov CommitDate: 2023-01-13 21:24:10 +0000 routing: install prefix and loopback routes using new nhop-based KPI. Construct the desired hexthops directly instead of using the "translation" layer in form of filling rt_addrinfo data. Simplify V_rt_add_addr_allfibs handling by using recently-added rib_copy_route() to propagate the routes to the non-primary address fibs. Differential Revision: https://reviews.freebsd.org/D36166 (cherry picked from commit a1b59379db7d879551118b921f6e9692b4bf200c) --- sys/net/route/route_ctl.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/net/route/route_ctl.h b/sys/net/route/route_ctl.h index 19fe5362b6ec..5cb7e67120ae 100644 --- a/sys/net/route/route_ctl.h +++ b/sys/net/route/route_ctl.h @@ -75,6 +75,8 @@ int rib_change_route(uint32_t fibnum, struct rt_addrinfo *info, struct rib_cmd_info *rc); int rib_action(uint32_t fibnum, int action, struct rt_addrinfo *info, struct rib_cmd_info *rc); +int rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh, + void *_data); int rib_handle_ifaddr_info(uint32_t fibnum, int cmd, struct rt_addrinfo *info); int rib_match_gw(const struct rtentry *rt, const struct nhop_object *nh,