[ovs-dev] [PATCH 2/3] tunnel: Handle hh_cache access for Linux kernel 3.1

Jesse Gross jesse at nicira.com
Fri Oct 21 19:34:09 UTC 2011


On Thu, Oct 20, 2011 at 5:31 PM, Pravin B Shelar <pshelar at nicira.com> wrote:
> diff --git a/datapath/tunnel.c b/datapath/tunnel.c
> index b750bbc..274542a 100644
> --- a/datapath/tunnel.c
> +++ b/datapath/tunnel.c
> @@ -93,6 +93,19 @@ static unsigned int remote_ports __read_mostly;
>  #define rt_dst(rt) (rt->u.dst)
>  #endif
>
> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,1,0)
> +static inline struct hh_cache *rt_hh(struct rtable *rt)

You don't need to explicitly mark things as inline, the compiler can
figure it out for itself (I know there are other places that do that
in this file but they are wrong too).

Otherwise looks good:
Acked-by: Jesse Gross <jesse at nicira.com>



More information about the dev mailing list