Page MenuHomeFreeBSD

D57469.diff
No OneTemporary

D57469.diff

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

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)

Event Timeline