On Fri, 26 Aug 2016 17:52:40 +0200
David Lebrun <david.leb...@uclouvain.be> 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?

Reply via email to