]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
net: procfs: use index hashlist instead of name hashlist
authorJiri Pirko <jiri@mellanox.com>
Mon, 30 Sep 2019 09:48:14 +0000 (11:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2019 21:47:19 +0000 (14:47 -0700)
commit6958c97a488c69c2421760e4b73834fb63d6a935
tree817501a54a96ac885298c3134bf5440203f91a74
parentbe2644aac3e1db02d09f45d56206bbdafca582a2
net: procfs: use index hashlist instead of name hashlist

Name hashlist is going to be used for more than just dev->name, so use
rather index hashlist for iteration over net_device instances.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/net-procfs.c