1 Index: openvswitch-2.3.2/acinclude.m4
2 ===================================================================
3 --- openvswitch-2.3.2.orig/acinclude.m4 2015-06-18 21:32:47.000000000 +0200
4 +++ openvswitch-2.3.2/acinclude.m4 2015-07-21 10:06:17.000000000 +0200
6 OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [can_checksum_protocol])
7 OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [netdev_features_t])
8 OVS_GREP_IFELSE([$KSRC/include/linux/netdevice.h], [pcpu_sw_netstats])
9 + OVS_GREP_IFELSE([$KSRC/include/net/net_namespace.h], [pernet_operations])
11 OVS_GREP_IFELSE([$KSRC/include/linux/random.h], [prandom_u32])
13 Index: openvswitch-2.3.2/datapath/linux/compat/net_namespace.c
14 ===================================================================
15 --- openvswitch-2.3.2.orig/datapath/linux/compat/net_namespace.c 2015-06-18 21:32:47.000000000 +0200
16 +++ openvswitch-2.3.2/datapath/linux/compat/net_namespace.c 2015-07-21 10:06:17.000000000 +0200
18 #include <net/net_namespace.h>
19 #include <net/netns/generic.h>
21 -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
22 +#ifndef HAVE_PERNET_OPERATIONS
24 int compat_init_net(struct net *net, struct rpl_pernet_operations *pnet)
26 Index: openvswitch-2.3.2/datapath/linux/compat/include/net/net_namespace.h
27 ===================================================================
28 --- openvswitch-2.3.2.orig/datapath/linux/compat/include/net/net_namespace.h 2015-06-18 21:32:47.000000000 +0200
29 +++ openvswitch-2.3.2/datapath/linux/compat/include/net/net_namespace.h 2015-07-21 10:06:17.000000000 +0200
32 #include_next <net/net_namespace.h>
34 -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
35 +#ifndef HAVE_PERNET_OPERATIONS
37 struct rpl_pernet_operations {
38 int (*init)(struct net *net);