lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
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

Powered by Openwall GNU/*/Linux Powered by OpenVZ