[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <877itju408.fsf@kruemel.my-eitzenberger.de>
Date: Wed, 14 Mar 2007 18:30:31 +0100
From: Holger Eitzenberger <holger@...eitzenberger.de>
To: netdev@...r.kernel.org
Subject: [NETLINK] periodically rehash table, why?
Hi,
in nl_pid_hash_dilute() there is:
if (unlikely(avg > 1) && nl_pid_hash_rehash(hash, 1))
return 1;
if (unlikely(len > avg) && time_after(jiffies, hash->rehash_time)) {
nl_pid_hash_rehash(hash, 0);
return 1;
}
I don't see a reason why periodically rehashing might help in any way
(without resizing). Is there a reason for that?
Thanks. /holger
-
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists