[ovs-dev] [PATCH] datapath: Fix compatibility with older kernel (<2.6.26).

Palo Andi andi at dis.uniroma1.it
Wed Mar 6 11:51:06 UTC 2013


Hi all,
the patches solved the compilation errors.

But when I insert the kernel module (insmod openvswitch.ko) the module
doesn't load.
In dmesg I get:
*openvswitch: Unknown symbol ksize*

Thanks,
Andi

On 6 March 2013 01:34, Jesse Gross <jesse at nicira.com> wrote:

> On Tue, Mar 5, 2013 at 3:44 PM, Pravin B Shelar <pshelar at nicira.com>
> wrote:
> > diff --git a/datapath/tunnel.c b/datapath/tunnel.c
> > index 83d2c41..dbe4ebc 100644
> > --- a/datapath/tunnel.c
> > +++ b/datapath/tunnel.c
> > @@ -27,6 +27,7 @@
> >  #include <linux/version.h>
> >  #include <linux/workqueue.h>
> >  #include <linux/rculist.h>
> > +#include <net/ip.h>
> >  #include <net/route.h>
> >  #include <net/xfrm.h>
> >
> > @@ -203,6 +204,7 @@ error:
> >         return ERR_PTR(err);
> >  }
> >
> > +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,26)
>
> I'm somewhat inclined to provide a backport for
> inet_get_local_port_range() for kernels older than 2.6.24 (which is
> when it was actually introduced).  If there isn't an easy alternate
> way to get those values, then it can just statically return some
> defaults.
> _______________________________________________
> dev mailing list
> dev at openvswitch.org
> http://openvswitch.org/mailman/listinfo/dev
>



-- 
-------------------------------------------------------------------------
*University of Rome "La Sapienza"*

*Ing Andi Palo*
*PhD student*
*Department of Computer, Control and Management Engineering (DIAG)*

Via Ariosto, 25 - 00185 Rome - Italy
Tel: +39 06 77274034
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openvswitch.org/pipermail/ovs-dev/attachments/20130306/69d7b589/attachment-0003.html>


More information about the dev mailing list