Re: [PATCH RFC bpf-next v2 00/18] bpf: Introduce resizable hash map

Herbert Xu
2026-04-17T06:54:40Z

On Thu, Apr 16, 2026 at 04:10:35PM +0100, Mykyta Yatsenko wrote:
>
> There is a problem though is the get_next_key interface:
>
> int get_next_key(struct bpf_map *map, void *key, void *next_key)

Any chance of changing the interface?

If not then perhaps a better solution is to use a linked list
in conjunction with rhashtable. It'll cost a little bit of
extra memory, but really provides you with the ideal solution
for what you're trying to do.

Cheers,
--
Email: Herbert Xu <herbert@gondor.apana.org.au>
Home Page: http://gondor.apana.org.au/~herbert/
PGP Key: http://gondor.apana.org.au/~herbert/pubkey.txt