Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F159098689
D57469.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D57469.diff
View Options
diff --git a/sys/net/route/nhgrp_ctl.c b/sys/net/route/nhgrp_ctl.c
--- a/sys/net/route/nhgrp_ctl.c
+++ b/sys/net/route/nhgrp_ctl.c
@@ -505,6 +505,12 @@
*perror = ENOMEM;
return (NULL);
}
+ if (V_fib_hash_outbound == 0) {
+ /* Enable local outbound connections hashing. */
+ if (bootverbose)
+ printf("FIB: enabled flowid calculation for locally-originated packets\n");
+ V_fib_hash_outbound = 1;
+ }
}
/* Sort nexthops & check there are no duplicates */
diff --git a/sys/net/route/route_ctl.c b/sys/net/route/route_ctl.c
--- a/sys/net/route/route_ctl.c
+++ b/sys/net/route/route_ctl.c
@@ -876,21 +876,8 @@
}
return (error);
}
- error = change_route_conditional(rnh, rt, rnd_orig, &rnd_new, rc);
- if (error != 0)
- return (error);
-
- if (V_fib_hash_outbound == 0 && NH_IS_NHGRP(rc->rc_nh_new)) {
- /*
- * First multipath route got installed. Enable local
- * outbound connections hashing.
- */
- if (bootverbose)
- printf("FIB: enabled flowid calculation for locally-originated packets\n");
- V_fib_hash_outbound = 1;
- }
- return (0);
+ return (change_route_conditional(rnh, rt, rnd_orig, &rnd_new, rc));
}
/*
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Thu, Jun 11, 2:47 AM (3 h, 42 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
33831447
Default Alt Text
D57469.diff (1 KB)
Attached To
Mode
D57469: routing: Enable hash_outbound during nhgrp allocation
Attached
Detach File
Event Timeline
Log In to Comment