On 16.11.2016 15:09, Jiri Pirko wrote: > From: Ido Schimmel <ido...@mellanox.com> > > Commit b90eb7549499 ("fib: introduce FIB notification infrastructure") > introduced a new notification chain to notify listeners (f.e., switchdev > drivers) about addition and deletion of routes. > > However, upon registration to the chain the FIB tables can already be > populated, which means potential listeners will have an incomplete view > of the tables. > > Solve that by adding an API to request a FIB dump. The dump itself it > done using RCU in order not to starve consumers that need RTNL to make > progress. > > Signed-off-by: Ido Schimmel <ido...@mellanox.com> > Signed-off-by: Jiri Pirko <j...@mellanox.com>
Have you looked at potential inconsistencies resulting of RCU walking the table and having concurrent inserts? I don't see a way around doing a journal like in filesystems somehow, but maybe the effects are not that severe and it is not a problem after all. Bye, Hannes