Attention is currently required from: laforge, pespin.

neels has posted comments on this change. ( 
https://gerrit.osmocom.org/c/osmo-hnbgw/+/36889?usp=email )

Change subject: add hnb_persistent hashtable: optimize lookup by cell id
......................................................................


Patch Set 4:

(2 comments)

File include/osmocom/hnbgw/hnbgw.h:

https://gerrit.osmocom.org/c/osmo-hnbgw/+/36889/comment/1a6c8607_3dafe643
PS3, Line 463:  DECLARE_HASHTABLE(hnb_persistent_by_id, 5);
> is this 5 related to the one in mkhash_add()? if so, it may make sense to use 
> a define, or some hash […]
no, this is just how many bits to use for the hash table.
That mkhash stuff is to get to something that this here can handle (up to 64 
bit input)


File src/osmo-hnbgw/hnbgw.c:

https://gerrit.osmocom.org/c/osmo-hnbgw/+/36889/comment/135863b6_01741fea
PS4, Line 245: /* source: http://www.cse.yorku.ca/~oz/hash.html */
I am not very sure about whether this here is the right way. Maybe we need a 
generic arbitrary-buffer-to-hash function, or maybe there already is one that I 
don't know about?

Or maybe we can just feed the last 64 bit of the umts_cell_id to the 
hashtable's hash function?



--
To view, visit https://gerrit.osmocom.org/c/osmo-hnbgw/+/36889?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-hnbgw
Gerrit-Branch: master
Gerrit-Change-Id: Iecb81eba28263ecf90a09c108995f6fb6f5f81f2
Gerrit-Change-Number: 36889
Gerrit-PatchSet: 4
Gerrit-Owner: neels <nhofm...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-Reviewer: pespin <pes...@sysmocom.de>
Gerrit-Attention: laforge <lafo...@osmocom.org>
Gerrit-Attention: pespin <pes...@sysmocom.de>
Gerrit-Comment-Date: Wed, 22 May 2024 14:40:18 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: pespin <pes...@sysmocom.de>
Gerrit-MessageType: comment

Reply via email to