[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130722105355.GP3109@secunet.com>
Date: Mon, 22 Jul 2013 12:53:55 +0200
From: Steffen Klassert <steffen.klassert@...unet.com>
To: Fan Du <fan.du@...driver.com>
Cc: David Miller <davem@...emloft.net>, nicolas.dichtel@...nd.com,
kuznet@....inr.ac.ru, yoshfuji@...ux-ipv6.org, jmorris@...ei.org,
netdev@...r.kernel.org
Subject: Re: [RFC PATCH net-next] net: split rt_genid for ipv4 and ipv6
On Mon, Jul 22, 2013 at 01:43:30PM +0800, Fan Du wrote:
>
> -static inline void rt_genid_bump(struct net *net)
> +#if IS_ENABLED(CONFIG_IPV6)
> +static inline int rt_genid_ipv6(struct net *net)
> {
> - atomic_inc(&net->rt_genid);
> + return atomic_read(&net->rt_genid_ipv6);
> +}
> +
> +static inline void rt_genid_bump_ipv6(struct net *net)
> +{
> + atomic_inc(&net->rt_genid_ipv6);
> +}
> +#endif
> +
I think this will introduce a compile error if ipv6 is
not enabled because you use rt_genid_bump_ipv6() in
the generic IPsec code.
> +static inline void rt_genid_bump_all(struct net *net)
> +{
> + atomic_inc(&net->rt_genid_ipv4);
> +#if IS_ENABLED(CONFIG_IPV6)
> + atomic_inc(&net->rt_genid_ipv6);
> +#endif
> }
>
Function is unused.
The rest looks ok.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists