Commit d7920faf authored by David S. Miller's avatar David S. Miller

[IPV4]: Fix typo in hashing changes.

parent 6d35bbea
...@@ -2575,9 +2575,6 @@ ctl_table ipv4_route_table[] = { ...@@ -2575,9 +2575,6 @@ ctl_table ipv4_route_table[] = {
}; };
#endif #endif
rt_hash_rnd = (int) ((num_physpages ^ (num_physpages>>8)) ^
(jiffies ^ (jiffies >> 7)));
#ifdef CONFIG_NET_CLS_ROUTE #ifdef CONFIG_NET_CLS_ROUTE
struct ip_rt_acct *ip_rt_acct; struct ip_rt_acct *ip_rt_acct;
...@@ -2637,6 +2634,9 @@ int __init ip_rt_init(void) ...@@ -2637,6 +2634,9 @@ int __init ip_rt_init(void)
{ {
int i, order, goal, rc = 0; int i, order, goal, rc = 0;
rt_hash_rnd = (int) ((num_physpages ^ (num_physpages>>8)) ^
(jiffies ^ (jiffies >> 7)));
#ifdef CONFIG_NET_CLS_ROUTE #ifdef CONFIG_NET_CLS_ROUTE
for (order = 0; for (order = 0;
(PAGE_SIZE << order) < 256 * sizeof(struct ip_rt_acct) * NR_CPUS; order++) (PAGE_SIZE << order) < 256 * sizeof(struct ip_rt_acct) * NR_CPUS; order++)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment