From nobody Thu Jul 30 13:01:52 2026 X-Original-To: dev-commits-src-main@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 4h9q8w4frkz6nTG1 for ; Thu, 30 Jul 2026 13:01:52 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4h9q8w4811z3RSy for ; Thu, 30 Jul 2026 13:01:52 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785416512; 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=L2tcL2byWPmj5mYYJsHhEKdM25rXGrF6LuHzz+5eAxA=; b=SPGrEqbHCvI1+/nP54YlqzVJRlZuowNNcu5jA/yBs40epkU0Y6lTgIljl93OD4qmtyGjAq RFjaftzSdO9pDuijZaI6HmAsZQjAePgHnbLRCYZISyIvrjkClZSSEvuT8Za2xHdvK9RwQy 17tlfF6C1vzFQHE3NFC6mrn1uo5SOXJrbKq7nv+htQPwESdXzplN1JEBNMfq2OUA+vBTLM yFBP/+vmvCTyXdozQHCLZWlrt7Gzg5V49l6ILJmFNfhaS9y2oDorWZulAgU2wD9+w6O6e5 uAjbUmXSkvN5wq4orJW8IgIjvOsTynM7OqeGvkBllpRjfotm4Q1l0RZzSX8uKQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1785416512; a=rsa-sha256; cv=none; b=V9lqhMMpEMzMYN4hwX28TWvfsgy69duv11Rpi7+TAypQLcPL5HYFB6FPlH/1PlgxGWv44S Ig0Ro/X2JRky22v8cIDcvtXRrZLbgAeP0sI9zuRgdEz7S8CCrvUqphtZsF+yHQD/zvrhHm niEjjSqU5VjtzDQig/O6sSYMIQwO4eoKRNX7kmYB4rYT4tg31QfXap5lJrpPJhdruVEAaB lCrWdm6vjL2bgc0sZTbI/qe/1DJ2XYhi11wCNfst3u+AdSuHCyCLbwENXtAqjQjYEZX/Y8 kEzYDDEO+LJZS6VO7TJzbk8mCfMe5Amln05obOMtG5Pq0uzQkZLogGnXiiTN2w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1785416512; 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=L2tcL2byWPmj5mYYJsHhEKdM25rXGrF6LuHzz+5eAxA=; b=I2rSUvQ1up+SajZn7JOFqMKmKDExVMHiLoIyPQrcgGRl546OWiHcpw/5qPF/T4txE9cqOO HxQs4GGIREZtMFEu/aLv2anrj2AD/SbZizH3nKrnsOcHedL0Z7yKqC1DrrEO2Xtn4hKf2f 7wbNm+xElloxvDwj2Mjpg/LmmzFy9JB2ktUA53QlLHTDqWvf55hWOP91ELiFW+7CAi2IUU uBVwDfbt9kuxCPjS0BRIruRVfP5KoglCFsIe/tt7G6w2njGnZiIW8NRjuQxiTN1FJwDGP1 8PA//J7qJITWzUS1Q+qM1uJ8gQtY9KhlmvYzzvz65p75ZWHVtEXuSaQvBNDPsg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4h9q8w2vyrz3m for ; Thu, 30 Jul 2026 13:01:52 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 450b8 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 30 Jul 2026 13:01:52 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Pouria Mousavizadeh Tehrani Subject: git: 81efd611d817 - main - routing: Remove unused rib_head members List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: pouria X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 81efd611d81743fa08d36ee830d4c28e1955badd Auto-Submitted: auto-generated Date: Thu, 30 Jul 2026 13:01:52 +0000 Message-Id: <6a6b4b40.450b8.3b2d7e8b@gitrepo.freebsd.org> The branch main has been updated by pouria: URL: https://cgit.FreeBSD.org/src/commit/?id=81efd611d81743fa08d36ee830d4c28e1955badd commit 81efd611d81743fa08d36ee830d4c28e1955badd Author: Pouria Mousavizadeh Tehrani AuthorDate: 2026-07-29 17:52:56 +0000 Commit: Pouria Mousavizadeh Tehrani CommitDate: 2026-07-30 12:59:38 +0000 routing: Remove unused rib_head members Remove unused rnh_multipath and rib_algo_fixed members. While here, convert rib_dying and rib_algo_init from uint32_t to bool. Reviewed by: glebius Differential Revision: https://reviews.freebsd.org/D58537 --- sys/net/route/route_var.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/sys/net/route/route_var.h b/sys/net/route/route_var.h index c91002e6c005..b830890295a6 100644 --- a/sys/net/route/route_var.h +++ b/sys/net/route/route_var.h @@ -56,7 +56,6 @@ struct rib_head { rn_walktree_from_t *rnh_walktree_from; /* traverse tree below a */ rnh_set_nh_pfxflags_f_t *rnh_set_nh_pfxflags; /* hook to alter record prior to insertion */ rt_gen_t rnh_gen; /* datapath generation counter */ - int rnh_multipath; /* multipath capable ? */ struct radix_node rnh_nodes[3]; /* empty tree for common case */ struct rmlock rib_lock; /* config/data path lock */ struct radix_mask_head rmhead; /* masks radix head */ @@ -67,9 +66,8 @@ struct rib_head { time_t next_expire; /* Next expire run ts */ uint32_t rnh_prefixes; /* Number of prefixes */ rt_gen_t rnh_gen_rib; /* fib algo: rib generation counter */ - uint32_t rib_dying:1; /* rib is detaching */ - uint32_t rib_algo_fixed:1;/* fixed algorithm */ - uint32_t rib_algo_init:1;/* algo init done */ + bool rib_dying:1, /* rib is detaching */ + rib_algo_init:1;/* algo init done */ struct nh_control *nh_control; /* nexthop subsystem data */ rnh_augment_nh_f_t *rnh_augment_nh;/* hook to alter nexthop prior to insertion */ CK_STAILQ_HEAD(, rib_subscription) rnh_subscribers;/* notification subscribers */