# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2023/06/11263350
- Thread: https://ratatoskr.run/netdev/2023/06/11263311/t.md

```text
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.
```
