[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20241017063126.3890888-1-gnaaman@drivenets.com>
Date: Thu, 17 Oct 2024 06:31:26 +0000
From: Gilad Naaman <gnaaman@...venets.com>
To: kuniyu@...zon.com
Cc: davem@...emloft.net,
edumazet@...gle.com,
gnaaman@...venets.com,
kuba@...nel.org,
netdev@...r.kernel.org,
pabeni@...hat.com
Subject: Re: [PATCH net-next v4 3/6] Convert neigh_* seq_file functions to use hlist
> How about factorising the operations inside loops and use
> hlist_for_each_entry_continue() and call neigh_get_first()
> in neigh_get_next() ?
Yes, this works.
(Just had to initialize buckets to `-1` since `neigh_get_first` always
advances it, and otherwise the first bucket would have been skipped)
Powered by blists - more mailing lists