Subject: Re: [RFC 2/9] ipv6: sr: add code base for control plane support of SR-IPv6

From: Stephen Hemminger <[email-masked]>
Date: Wed, 31 Aug 2016 10:10:28 -0700

On Fri, 26 Aug 2016 17:52:40 +0200
David Lebrun <[email-masked]> wrote:

> +
> +static inline struct seg6_pernet_data *seg6_pernet(struct net *net)
> +{
> +	return net->ipv6.seg6_data;
> +}
> +
> +static inline void seg6_pernet_lock(struct net *net)
> +{
> +	spin_lock(&seg6_pernet(net)->lock);
> +}
> +
> +static inline void seg6_pernet_unlock(struct net *net)
> +{
> +	spin_unlock(&seg6_pernet(net)->lock);
> +}

Since these are for control operations why a mutex?