summaryrefslogtreecommitdiffstats
path: root/sys/net/route.c
diff options
context:
space:
mode:
authorjulian <julian@FreeBSD.org>2013-05-16 16:20:17 +0000
committerjulian <julian@FreeBSD.org>2013-05-16 16:20:17 +0000
commit329247aec2da82ea7a5882d9c688a96b68113626 (patch)
tree48f3057d1fe7a3275a632f2f7574c8ec9fbc4ced /sys/net/route.c
parent50a31d452c540902dc3440b10fdb5be335608fe8 (diff)
downloadFreeBSD-src-329247aec2da82ea7a5882d9c688a96b68113626.zip
FreeBSD-src-329247aec2da82ea7a5882d9c688a96b68113626.tar.gz
Finally change the mbuf to have its own fib field instead of stealing
4 flag bits. This was supposed to happen in 8.0, and again in 2012.. MFC after: never
Diffstat (limited to 'sys/net/route.c')
-rw-r--r--sys/net/route.c14
1 files changed, 3 insertions, 11 deletions
diff --git a/sys/net/route.c b/sys/net/route.c
index 3a1a775..3ffacca 100644
--- a/sys/net/route.c
+++ b/sys/net/route.c
@@ -68,8 +68,7 @@
#include <vm/uma.h>
-/* We use 4 bits in the mbuf flags, thus we are limited to 16 FIBS. */
-#define RT_MAXFIBS 16
+#define RT_MAXFIBS UINT16_MAX
/* Kernel config default option. */
#ifdef ROUTETABLES
@@ -86,17 +85,10 @@
#define RT_NUMFIBS 1
#endif
+/* This is read-only.. */
u_int rt_numfibs = RT_NUMFIBS;
SYSCTL_UINT(_net, OID_AUTO, fibs, CTLFLAG_RD, &rt_numfibs, 0, "");
-/*
- * Allow the boot code to allow LESS than RT_MAXFIBS to be used.
- * We can't do more because storage is statically allocated for now.
- * (for compatibility reasons.. this will change. When this changes, code should
- * be refactored to protocol independent parts and protocol dependent parts,
- * probably hanging of domain(9) specific storage to not need the full
- * fib * af RNH allocation etc. but allow tuning the number of tables per
- * address family).
- */
+/* and this can be set too big but will be fixed before it is used */
TUNABLE_INT("net.fibs", &rt_numfibs);
/*
OpenPOWER on IntegriCloud