Re: [ovs-dev] [PATCH] datapath: Add support for 3.6 kernel.

2012-10-26 Thread Jesse Gross
On Sat, Oct 27, 2012 at 1:07 PM, Pravin B Shelar wrote: > diff --git a/datapath/tunnel.c b/datapath/tunnel.c > index 5b74877..04ff55f 100644 > --- a/datapath/tunnel.c > +++ b/datapath/tunnel.c > @@ -1007,10 +1011,9 @@ int ovs_tnl_send(struct vport *vport, struct sk_buff > *skb) >

Re: [ovs-dev] [PATCH] datapath: Add support for 3.6 kernel.

2012-10-26 Thread Jesse Gross
On Thu, Oct 25, 2012 at 1:34 PM, Ben Pfaff wrote: > On Thu, Oct 25, 2012 at 01:33:32PM -0700, Pravin Shelar wrote: >> On Thu, Oct 25, 2012 at 1:22 PM, Ben Pfaff wrote: >> > On Sat, Oct 27, 2012 at 01:07:35PM -0700, Pravin B Shelar wrote: >> >> Signed-off-by: Pravin B Shelar >> > >> > ... >> > >>

Re: [ovs-dev] [PATCH] datapath: Add support for 3.6 kernel.

2012-10-25 Thread Ben Pfaff
On Thu, Oct 25, 2012 at 01:33:32PM -0700, Pravin Shelar wrote: > On Thu, Oct 25, 2012 at 1:22 PM, Ben Pfaff wrote: > > On Sat, Oct 27, 2012 at 01:07:35PM -0700, Pravin B Shelar wrote: > >> Signed-off-by: Pravin B Shelar > > > > ... > > > >> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) > >> +#

Re: [ovs-dev] [PATCH] datapath: Add support for 3.6 kernel.

2012-10-25 Thread Pravin Shelar
On Thu, Oct 25, 2012 at 1:22 PM, Ben Pfaff wrote: > On Sat, Oct 27, 2012 at 01:07:35PM -0700, Pravin B Shelar wrote: >> Signed-off-by: Pravin B Shelar > > ... > >> +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) >> +#define NETLINK_CB_PORT_ID(skb) (NETLINK_CB((skb)).portid) >> +#else >> +#define

Re: [ovs-dev] [PATCH] datapath: Add support for 3.6 kernel.

2012-10-25 Thread Ben Pfaff
On Sat, Oct 27, 2012 at 01:07:35PM -0700, Pravin B Shelar wrote: > Signed-off-by: Pravin B Shelar ... > +#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,6,0) > +#define NETLINK_CB_PORT_ID(skb) (NETLINK_CB((skb)).portid) > +#else > +#define NETLINK_CB_PORT_ID(skb) (NETLINK_CB((skb)).pid) > +#endif I'