Gentoo Archives: gentoo-commits

From: "Matt Thode (prometheanfire)" <prometheanfire@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-misc/openvswitch/files: configure.patch kernel-3.11-support.patch atomic-test.patch kernel-3.12-support.patch xcp-interface-reconfigure.patch
Date: Sun, 09 Feb 2014 08:56:21
Message-Id: 20140209085618.167EE2004C@flycatcher.gentoo.org
1 prometheanfire 14/02/09 08:56:18
2
3 Added: configure.patch kernel-3.11-support.patch
4 atomic-test.patch kernel-3.12-support.patch
5 xcp-interface-reconfigure.patch
6 Log:
7 fixing bugs 494152 498728 499500
8
9 (Portage version: 2.2.7/cvs/Linux x86_64, signed Manifest commit with key 0x2471eb3e40ac5ac3)
10
11 Revision Changes Path
12 1.1 net-misc/openvswitch/files/configure.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/configure.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/configure.patch?rev=1.1&content-type=text/plain
16
17 Index: configure.patch
18 ===================================================================
19 --- configure.orig 2014-01-27 21:55:14.116272645 +0200
20 +++ configure 2014-01-27 21:55:40.687273108 +0200
21 @@ -7949,10 +7949,10 @@
22 $as_echo "$kversion" >&6; }
23
24 if test "$version" -ge 3; then
25 - if test "$version" = 3 && test "$patchlevel" -le 10; then
26 + if test "$version" = 3 && test "$patchlevel" -le 12; then
27 : # Linux 3.x
28 else
29 - as_fn_error $? "Linux kernel in $KBUILD is version $kversion, but version newer than 3.10.x is not supported" "$LINENO" 5
30 + as_fn_error $? "Linux kernel in $KBUILD is version $kversion, but version newer than 3.12.x is not supported" "$LINENO" 5
31 fi
32 else
33 if test "$version" -le 1 || test "$patchlevel" -le 5 || test "$sublevel" -le 31; then
34
35
36
37 1.1 net-misc/openvswitch/files/kernel-3.11-support.patch
38
39 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/kernel-3.11-support.patch?rev=1.1&view=markup
40 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/kernel-3.11-support.patch?rev=1.1&content-type=text/plain
41
42 Index: kernel-3.11-support.patch
43 ===================================================================
44 --- a/acinclude.m4
45 +++ b/acinclude.m4
46 @@ -134,10 +134,10 @@ AC_DEFUN([OVS_CHECK_LINUX], [
47 AC_MSG_RESULT([$kversion])
48
49 if test "$version" -ge 3; then
50 - if test "$version" = 3 && test "$patchlevel" -le 10; then
51 + if test "$version" = 3 && test "$patchlevel" -le 11; then
52 : # Linux 3.x
53 else
54 - AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 3.10.x is not supported])
55 + AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 3.11.x is not supported])
56 fi
57 else
58 if test "$version" -le 1 || test "$patchlevel" -le 5 || test "$sublevel" -le 31; then
59 --- a/datapath/dp_notify.c
60 +++ b/datapath/dp_notify.c
61 @@ -79,7 +79,7 @@ static int dp_device_event(struct notifi
62 void *ptr)
63 {
64 struct ovs_net *ovs_net;
65 - struct net_device *dev = ptr;
66 + struct net_device *dev = netdev_notifier_info_to_dev(ptr);
67 struct vport *vport = NULL;
68
69 if (!ovs_is_internal_dev(dev))
70 --- a/datapath/linux/compat/include/linux/netdevice.h
71 +++ b/datapath/linux/compat/include/linux/netdevice.h
72 @@ -120,4 +120,11 @@ static inline void netdev_upper_dev_unli
73 }
74 #endif
75
76 +#if LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0)
77 +static inline struct net_device *netdev_notifier_info_to_dev(void *info)
78 +{
79 + return info;
80 +}
81 +#endif
82 +
83 #endif
84 --- a/datapath/linux/compat/include/net/gre.h
85 +++ b/datapath/linux/compat/include/net/gre.h
86 @@ -74,12 +74,17 @@ static inline __be16 tnl_flags_to_gre_fl
87 #endif /* LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) */
88
89 #define MAX_GRE_PROTO_PRIORITY 255
90 +#define gre_cisco_protocol rpl_gre_cisco_protocol
91 +
92 struct gre_cisco_protocol {
93 int (*handler)(struct sk_buff *skb, const struct tnl_ptk_info *tpi);
94 u8 priority;
95 };
96
97 +#define gre_cisco_register rpl_gre_cisco_register
98 int gre_cisco_register(struct gre_cisco_protocol *proto);
99 +
100 +#define gre_cisco_unregister rpl_gre_cisco_unregister
101 int gre_cisco_unregister(struct gre_cisco_protocol *proto);
102
103 #define gre_build_header rpl_gre_build_header
104 @@ -89,6 +94,7 @@ void gre_build_header(struct sk_buff *sk
105 #define gre_handle_offloads rpl_gre_handle_offloads
106 struct sk_buff *gre_handle_offloads(struct sk_buff *skb, bool gre_csum);
107
108 +#define ip_gre_calc_hlen rpl_ip_gre_calc_hlen
109 static inline int ip_gre_calc_hlen(__be16 o_flags)
110 {
111 int addend = 4;
112
113
114
115 1.1 net-misc/openvswitch/files/atomic-test.patch
116
117 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/atomic-test.patch?rev=1.1&view=markup
118 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/atomic-test.patch?rev=1.1&content-type=text/plain
119
120 Index: atomic-test.patch
121 ===================================================================
122 Description: Link atomic test with -latomic for powerpc.
123 Author: Adam Conrad <adconrad@××××××.com>
124
125 --- openvswitch-2.0.0.orig/tests/automake.mk
126 +++ openvswitch-2.0.0/tests/automake.mk
127 @@ -181,7 +181,7 @@ tests_test_aes128_LDADD = lib/libopenvsw
128
129 noinst_PROGRAMS += tests/test-atomic
130 tests_test_atomic_SOURCES = tests/test-atomic.c
131 -tests_test_atomic_LDADD = lib/libopenvswitch.a $(SSL_LIBS)
132 +tests_test_atomic_LDADD = lib/libopenvswitch.a $(SSL_LIBS) -latomic
133
134 noinst_PROGRAMS += tests/test-bundle
135 tests_test_bundle_SOURCES = tests/test-bundle.c
136
137
138
139 1.1 net-misc/openvswitch/files/kernel-3.12-support.patch
140
141 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/kernel-3.12-support.patch?rev=1.1&view=markup
142 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/kernel-3.12-support.patch?rev=1.1&content-type=text/plain
143
144 Index: kernel-3.12-support.patch
145 ===================================================================
146 Description: Enable support for 3.12 kernel
147 Author: James Page <james.page@××××××.com>
148 Forwarded: no
149
150 --- a/acinclude.m4
151 +++ b/acinclude.m4
152 @@ -134,10 +134,10 @@ AC_DEFUN([OVS_CHECK_LINUX], [
153 AC_MSG_RESULT([$kversion])
154
155 if test "$version" -ge 3; then
156 - if test "$version" = 3 && test "$patchlevel" -le 11; then
157 + if test "$version" = 3 && test "$patchlevel" -le 12; then
158 : # Linux 3.x
159 else
160 - AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 3.11.x is not supported])
161 + AC_ERROR([Linux kernel in $KBUILD is version $kversion, but version newer than 3.12.x is not supported])
162 fi
163 else
164 if test "$version" -le 1 || test "$patchlevel" -le 5 || test "$sublevel" -le 31; then
165
166
167
168 1.1 net-misc/openvswitch/files/xcp-interface-reconfigure.patch
169
170 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/xcp-interface-reconfigure.patch?rev=1.1&view=markup
171 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/openvswitch/files/xcp-interface-reconfigure.patch?rev=1.1&content-type=text/plain
172
173 Index: xcp-interface-reconfigure.patch
174 ===================================================================
175 Description: Use xcp-xapi interface-reconfigure if found
176 Ubuntu/Debian provide the XCP interface-reconfigure hook in
177 a FHS compliant location; use this if found.
178 Author: James Page <james.page@××××××.com>
179 Ubuntu-Bug: https://bugs.launchpad.net/ubuntu/+source/openvswitch/+bug/1195053
180 Forwarded: no
181
182 --- a/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update
183 +++ b/xenserver/etc_xapi.d_plugins_openvswitch-cfg-update
184 @@ -43,6 +43,10 @@ def delete_cacert():
185 def update(session, args):
186 # Refresh bridge network UUIDs in case this host joined or left a pool.
187 script = "/opt/xensource/libexec/interface-reconfigure"
188 + # NOTE(jamespage): Override with distro xcp xapi locations
189 + # if present
190 + if os.path.exists('/usr/lib/xcp/lib/interface-reconfigure'):
191 + script = '/usr/lib/xcp/lib/interface-reconfigure'
192 try:
193 retval = subprocess.call([script, "rewrite"])
194 if retval != 0: