Subject: Re: [patch net-next rfc 2/7] net: introduce name_node struct to be used in hashlist

From: Stephen Hemminger <[email-masked]>
Date: Fri, 19 Jul 2019 09:29:36 -0700

On Fri, 19 Jul 2019 13:00:24 +0200
Jiri Pirko <[email-masked]> wrote:

> From: Jiri Pirko <[email-masked]>
> 
> Signed-off-by: Jiri Pirko <[email-masked]>
> ---
>  include/linux/netdevice.h | 10 +++-
>  net/core/dev.c            | 96 +++++++++++++++++++++++++++++++--------
>  2 files changed, 86 insertions(+), 20 deletions(-)
> 
> diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
> index 88292953aa6f..74f99f127b0e 100644
> --- a/include/linux/netdevice.h
> +++ b/include/linux/netdevice.h
> @@ -918,6 +918,12 @@ struct dev_ifalias {
>  struct devlink;
>  struct tlsdev_ops;
>  
> +struct netdev_name_node {
> +	struct hlist_node hlist;
> +	struct net_device *dev;
> +	char *name

You probably can make this const char *

Do you want to add __rcu to this list?