diff options
author | Eric Dumazet <edumazet@google.com> | 2024-02-07 16:53:18 +0000 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2024-02-08 19:06:09 -0800 |
commit | 0e0939c0adf90a3233392e2a9650290b1ad8068c (patch) | |
tree | 84584345d7ba4e8fab8303f6d5c6f210eded1307 /block/blk-mq-sysfs.c | |
parent | 6fb5dfee274cfbb97646dc4d94fb8e2fd9e33001 (diff) |
net-procfs: use xarray iterator to implement /proc/net/dev
In commit 759ab1edb56c ("net: store netdevs in an xarray")
Jakub added net->dev_by_index to map ifindex to netdevices.
We can get rid of the old hash table (net->dev_index_head),
one patch at a time, if performance is acceptable.
This patch removes unpleasant code to something more readable.
As a bonus, /proc/net/dev gets netdevices sorted by their ifindex.
Signed-off-by: Eric Dumazet <edumazet@google.com>
Link: https://lore.kernel.org/r/20240207165318.3814525-1-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'block/blk-mq-sysfs.c')
0 files changed, 0 insertions, 0 deletions