]> git.baikalelectronics.ru Git - kernel.git/commit
net: introduce name_node struct to be used in hashlist
authorJiri Pirko <jiri@mellanox.com>
Mon, 30 Sep 2019 09:48:15 +0000 (11:48 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 1 Oct 2019 21:47:19 +0000 (14:47 -0700)
commit3a12623608ab09b01efc96c482b4a3fdd6cdb145
tree34ee884df47a3417597f2a70cb4e72061e7c8c7c
parent4ef8f50669f5cb658a2e348d2379e08301b196eb
net: introduce name_node struct to be used in hashlist

Introduce name_node structure to hold name of device and put it into
hashlist instead of putting there struct net_device directly. Add a
necessary infrastructure to manipulate the hashlist. This prepares
the code to use the same hashlist for alternative names introduced
later in this set.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h
net/core/dev.c