[ovs-dev] [patch 2/5] datapath: rtable may not have a u. member

Simon Horman horms at verge.net.au
Wed Aug 18 03:14:30 UTC 2010


On Sun, Aug 08, 2010 at 05:49:40PM -0400, Jesse Gross wrote:
> On Fri, Aug 6, 2010 at 11:05 AM, Simon Horman <horms at verge.net.au> wrote:
> 
> > +#ifdef HAVE_RT_UNION
> > +#define rt_dst(rt) (rt->u.dst)
> > +#else
> > +#define rt_dst(rt) (rt->dst)
> > +#endif
> >
> 
> This is best placed at the top of vport-gre.c since it isn't a definition
> that appears in any kernel.  Since we ideally can delete the compat
> directory and things will just work on the latest kernel we shouldn't put
> things we define there.

Done.

I have also changed the conditional to
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,36)




More information about the dev mailing list