]> git.baikalelectronics.ru Git - kernel.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)
commit4ef8f50669f5cb658a2e348d2379e08301b196eb
tree817501a54a96ac885298c3134bf5440203f91a74
parent45dd51ad63b2dbb48520d1286cbacd3c316d2353
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