aboutgitcodebugslistschat
path: root/icmp.c
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2023-12-07 16:53:53 +1100
committerStefano Brivio <sbrivio@redhat.com>2023-12-27 19:29:45 +0100
commit5d5bb8c1501e6ee02568d086e36081a756e45e51 (patch)
tree0ad3763402db0e9d05d34c3b767d1bd726ee9b70 /icmp.c
parent64e5459ba644930ef99ea56dd3df92101bd364ff (diff)
downloadpasst-5d5bb8c1501e6ee02568d086e36081a756e45e51.tar
passt-5d5bb8c1501e6ee02568d086e36081a756e45e51.tar.gz
passt-5d5bb8c1501e6ee02568d086e36081a756e45e51.tar.bz2
passt-5d5bb8c1501e6ee02568d086e36081a756e45e51.tar.lz
passt-5d5bb8c1501e6ee02568d086e36081a756e45e51.tar.xz
passt-5d5bb8c1501e6ee02568d086e36081a756e45e51.tar.zst
passt-5d5bb8c1501e6ee02568d086e36081a756e45e51.zip
tcp: Don't account for hash table size in tcp_hash()
Currently tcp_hash() returns the hash bucket for a value, that is the hash modulo the size of the hash table. Usually it's a bit more flexible to have hash functions return a "raw" hash value and perform the modulus in the callers. That allows the same hash function to be used for multiple tables of different sizes, or to re-use the hash for other purposes. We don't do anything like that with tcp_hash() at present, but we have some plans to do so. Prepare for that by making tcp_hash() and tcp_conn_hash() return raw hash values. Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Signed-off-by: Stefano Brivio <sbrivio@redhat.com>
Diffstat (limited to 'icmp.c')
0 files changed, 0 insertions, 0 deletions