]> git.proxmox.com Git - pve-kernel-2.6.32.git/blob - ovspatches/ovs-compile.patch
fde1743c1aafb516041ee330d92a8c8b989d8524
[pve-kernel-2.6.32.git] / ovspatches / ovs-compile.patch
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
5 @@ -291,6 +291,7 @@
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])
10
11 OVS_GREP_IFELSE([$KSRC/include/linux/random.h], [prandom_u32])
12
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
17 @@ -3,7 +3,7 @@
18 #include <net/net_namespace.h>
19 #include <net/netns/generic.h>
20
21 -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
22 +#ifndef HAVE_PERNET_OPERATIONS
23
24 int compat_init_net(struct net *net, struct rpl_pernet_operations *pnet)
25 {
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
30 @@ -3,7 +3,7 @@
31
32 #include_next <net/net_namespace.h>
33
34 -#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,33)
35 +#ifndef HAVE_PERNET_OPERATIONS
36 /* for 2.6.32* */
37 struct rpl_pernet_operations {
38 int (*init)(struct net *net);