]> git.proxmox.com Git - mirror_frr.git/commit - lib/hash.c
lib: remove overflow arithmetic from hash stats
authorQuentin Young <qlyoung@nvidia.com>
Wed, 2 Sep 2020 20:02:55 +0000 (16:02 -0400)
committerQuentin Young <qlyoung@nvidia.com>
Wed, 2 Sep 2020 20:54:41 +0000 (16:54 -0400)
commite6464fdc184e4b0a4032286c8fae245dcdb03d8f
treee08ad3607c4046c5f83bc3d32f4f4c914a51559b
parente9faf4be72294fccd9f7bd21b62473d408c80a37
lib: remove overflow arithmetic from hash stats

Signed values get converted to unsigned for addition, so when the value
to adjust a stats variable for hash tables was negative this resulted in
overflow arithmetic, which we generally don't want.

Signed-off-by: Quentin Young <qlyoung@nvidia.com>
lib/hash.c