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)
commitff92741270bf8b6e78aa885f166b68c7a67ab13a
tree34ee884df47a3417597f2a70cb4e72061e7c8c7c
parent6958c97a488c69c2421760e4b73834fb63d6a935
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