git: a48f7a2eb90b - main - fibs: Suppress the WARNING message for setups with multiple fibs

From: Zhenlei Huang <zlei_at_FreeBSD.org>
Date: Thu, 01 Aug 2024 17:50:11 UTC
The branch main has been updated by zlei:

URL: https://cgit.FreeBSD.org/src/commit/?id=a48f7a2eb90b0812281e6d69bb05eb61433ea247

commit a48f7a2eb90b0812281e6d69bb05eb61433ea247
Author:     Zhenlei Huang <zlei@FreeBSD.org>
AuthorDate: 2024-08-01 17:48:58 +0000
Commit:     Zhenlei Huang <zlei@FreeBSD.org>
CommitDate: 2024-08-01 17:48:58 +0000

    fibs: Suppress the WARNING message for setups with multiple fibs
    
    Change 2d3982419593 switched net.add_addr_allfibs default to 0. The
    warning message is for potential users of the feature. Well since all
    supported releases have 0 as default, those potential users may have
    already gotten the notification, emitting this WARNING every time
    increasing the fib number is less useful but rather confusing to other
    users. So let's suppress it right now.
    
    PR:             280097
    Reviewed by:    markj
    Differential Revision:  https://reviews.freebsd.org/D45971
---
 sys/net/route/route_tables.c | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/sys/net/route/route_tables.c b/sys/net/route/route_tables.c
index fd211bcd5dda..da829503b846 100644
--- a/sys/net/route/route_tables.c
+++ b/sys/net/route/route_tables.c
@@ -231,11 +231,6 @@ grow_rtables(uint32_t num_tables)
 	new_rt_tables = mallocarray(num_tables * (AF_MAX + 1), sizeof(void *),
 	    M_RTABLE, M_WAITOK | M_ZERO);
 
-	if ((num_tables > 1) && (V_rt_add_addr_allfibs == 0))
-		printf("WARNING: Adding ifaddrs to all fibs has been turned off "
-			"by default. Consider tuning %s if needed\n",
-			"net.add_addr_allfibs");
-
 #ifdef FIB_ALGO
 	fib_grow_rtables(num_tables);
 #endif