On Thu, Dec 17, 2015 at 8:50 PM, Simon Horman <[email protected]> wrote: > From: Simon Horman <[email protected]> > > tstats field was added to struct net_device in v2.6.37. > > Fixes: e23775f20e1a ("datapath: Add support for lwtunnel") > Signed-off-by: Simon Horman <[email protected]> > --- > .travis.yml | 1 + > datapath/linux/compat/include/linux/netdevice.h | 3 ++- > 2 files changed, 3 insertions(+), 1 deletion(-) > > diff --git a/.travis.yml b/.travis.yml > index d6376ff51bd2..be9ad9ff8caf 100644 > --- a/.travis.yml > +++ b/.travis.yml > @@ -35,6 +35,7 @@ env: > - KERNEL=2.6.39.4 > - KERNEL=2.6.38.8 > - KERNEL=2.6.37.6 > + - KERNEL=2.6.36.4 > - KERNEL=2.6.33.20 > - KERNEL=2.6.32.68 > > diff --git a/datapath/linux/compat/include/linux/netdevice.h > b/datapath/linux/compat/include/linux/netdevice.h > index 19a7b8ef53d2..71de4e54389a 100644 > --- a/datapath/linux/compat/include/linux/netdevice.h > +++ b/datapath/linux/compat/include/linux/netdevice.h > @@ -261,7 +261,8 @@ struct rtnl_link_stats64 *rpl_dev_get_stats(struct > net_device *dev, > > #else > #define HAVE_DEV_TSTATS > -#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,0) > +#if RHEL_RELEASE_CODE < RHEL_RELEASE_VERSION(7,0) || \ > + LINUX_VERSION_CODE < KERNEL_VERSION(2,6,37)
If we add the kernel version test, then the previous test related to RHEL version becomes redundant. > #undef HAVE_DEV_TSTATS > #endif > #endif > -- > 2.1.4 > > _______________________________________________ > dev mailing list > [email protected] > http://openvswitch.org/mailman/listinfo/dev _______________________________________________ dev mailing list [email protected] http://openvswitch.org/mailman/listinfo/dev
