diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-11 21:44:04 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-13 18:34:50 -0800 |
commit | 3e41af90767dcf8e5ca91cfbbbcb772584940df9 (patch) | |
tree | 7b3db30c1a7b8b6d9b4d27c52d5285bd59020955 /tools | |
parent | f383ced24d6ae6c1989394d052d3109b9d645f11 (diff) |
rtnetlink: use xarray iterator to implement rtnl_dump_ifinfo()
Adopt net->dev_by_index as I did in commit 0e0939c0adf9
("net-procfs: use xarray iterator to implement /proc/net/dev")
This makes sure an existing device is always visible in the dump,
regardless of concurrent insertions/deletions.
v2: added suggestions from Jakub Kicinski and Ido Schimmel,
thanks for the help !
Link: https://lore.kernel.org/all/20240209142441.6c56435b@kernel.org/
Link: https://lore.kernel.org/all/ZckR-XOsULLI9EHc@shredder/
Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Link: https://lore.kernel.org/r/20240211214404.1882191-3-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools')
0 files changed, 0 insertions, 0 deletions