Re: [RFC PATCH net-next 0/4] rhashtable: length helper for rhashtable and rhltable

From
Jakub Kicinski <kuba@kernel.org>
Date
2023-06-09 17:36:45
Reply to
Pedro Tammela, 2023-06-09
On Fri,  9 Jun 2023 12:13:28 -0300 Pedro Tammela wrote:
Whenever someone wants to retrieve the total number of elements in a
rhashtable/rhltable it needs to open code the access to 'nelems'.
Therefore provide a helper for such operation and convert two accesses as
an example.
IMHO read of nelems is much more readable than len(). I mean the name
of the helper is not great. IDK what length of a hashtable is. Feels
like a Python-ism.
Thread (9 messages) 9 messages, 3 authors, last reply 2023-06-09
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help