On 06/28/2017 05:53 PM, 王志克 wrote:
Hi Greg,
I just download offical tar bar:
wget http://openvswitch.org/releases/openvswitch-2.6.0.tar.gz
Then compiling as below: ( I do not see any compiling issue)
./configure --with-linux=/lib/modules/$(uname -r)/build
make
make install
make modules_install
Br,
Wang Zhike
Weird... below is what I get at the compile phase when I follow the same steps.
Let me
try a completely fresh installation of Centos 7.2 on a new VM. Perhaps
something has muddled
the build environments for the VM I'm using.
I'll try that and see if I can get something going.
Thanks,
- Greg
In file included from include/net/inet_sock.h:24:0,
from include/net/ip.h:30,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/net/ip.h:4,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/actions.c:25:
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netdevice.h:125:34: error: conflicting types for
netdev_notifier_info_to_dev
static inline struct net_device *netdev_notifier_info_to_dev(void *info)
^
In file included from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netdevice.h:4:0,
from include/net/inet_sock.h:24,
from include/net/ip.h:30,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/net/ip.h:4,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netfilter_ipv6.h:7,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/actions.c:25:
include/linux/netdevice.h:2257:1: note: previous definition of
netdev_notifier_info_to_dev was here
netdev_notifier_info_to_dev(const struct netdev_notifier_info *info)
^
In file included from include/uapi/linux/if_arp.h:26:0,
from include/linux/if_arp.h:27,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/datapath.c:23:
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netdevice.h:125:34: error: conflicting types for
netdev_notifier_info_to_dev
static inline struct net_device *netdev_notifier_info_to_dev(void *info)
^
In file included from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netdevice.h:4:0,
from include/uapi/linux/if_arp.h:26,
from include/linux/if_arp.h:27,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/datapath.c:23:
include/linux/netdevice.h:2257:1: note: previous definition of
netdev_notifier_info_to_dev was here
netdev_notifier_info_to_dev(const struct netdev_notifier_info *info)
^
In file included from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/dp_notify.c:19:0:
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netdevice.h:125:34: error: conflicting types for
netdev_notifier_info_to_dev
static inline struct net_device *netdev_notifier_info_to_dev(void *info)
^
In file included from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netdevice.h:4:0,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/dp_notify.c:19:
include/linux/netdevice.h:2257:1: note: previous definition of
netdev_notifier_info_to_dev was here
netdev_notifier_info_to_dev(const struct netdev_notifier_info *info)
^
In file included from include/net/sock.h:51:0,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/net/sock.h:4,
from include/linux/tcp.h:23,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/conntrack.c:21:
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netdevice.h:125:34: error: conflicting types for
netdev_notifier_info_to_dev
static inline struct net_device *netdev_notifier_info_to_dev(void *info)
^
In file included from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/linux/netdevice.h:4:0,
from include/net/sock.h:51,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/compat/include/net/sock.h:4,
from include/linux/tcp.h:23,
from
/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/conntrack.c:21:
include/linux/netdevice.h:2257:1: note: previous definition of
netdev_notifier_info_to_dev was here
netdev_notifier_info_to_dev(const struct netdev_notifier_info *info)
^
make[5]: *** [/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/dp_notify.o]
Error 1
make[5]: *** Waiting for unfinished jobs....
make[5]: *** [/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/actions.o]
Error 1
make[5]: *** [/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/datapath.o]
Error 1
make[5]: *** [/home/gvrose/prj/openvswitch-2.6.0/datapath/linux/conntrack.o]
Error 1
make[4]: *** [_module_/home/gvrose/prj/openvswitch-2.6.0/datapath/linux] Error 2
make[4]: Leaving directory `/usr/src/kernels/3.10.0-514.16.1.el7.x86_64'
make[3]: *** [default] Error 2
make[3]: Leaving directory `/home/gvrose/prj/openvswitch-2.6.0/datapath/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/gvrose/prj/openvswitch-2.6.0/datapath'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/gvrose/prj/openvswitch-2.6.0'
make: *** [all] Error 2
-----Original Message-----
From: Greg Rose [mailto:gvrose8...@gmail.com]
Sent: Thursday, June 29, 2017 4:29 AM
To: 王志克
Cc: d...@openvswitch.org; Joe Stringer
Subject: Re: 答复: [ovs-dev] 答复: 答复: [PATCH] pkt reassemble: fix kernel panic for
ovs reassemble
On 06/26/2017 05:51 PM, 王志克 wrote:
Hi Greg,
The exact issue occured on the 20th of check-kmod (sometimes there are other
kernel issue: kernel just hangs but without panic). OVS2.6.0 on CentOS7.2 with
kernel 3.10.0-327.el7.x86_64. Some info below, which hopes helpful.
datapath-sanity
1: datapath - ping between two ports ok
2: datapath - http between two ports ok
3: datapath - ping between two ports on vlan ok
4: datapath - ping6 between two ports ok
5: datapath - ping6 between two ports on vlan ok
6: datapath - ping over vxlan tunnel FAILED
(system-traffic.at:159)
7: datapath - ping over gre tunnel FAILED
(system-traffic.at:199)
8: datapath - ping over geneve tunnel skipped
(system-traffic.at:213)
9: datapath - basic truncate action ok
10: datapath - truncate and output to gre tunnel FAILED
(system-traffic.at:445)
11: conntrack - controller FAILED
(system-traffic.at:522)
12: conntrack - IPv4 HTTP ok
13: conntrack - IPv6 HTTP ok
14: conntrack - IPv4 ping ok
15: conntrack - IPv6 ping ok
16: conntrack - commit, recirc ok
17: conntrack - preserve registers ok
18: conntrack - invalid ok
19: conntrack - zones ok
20: conntrack - zones from field ....(system crash...)
[snipped]
Hi Wang,
I am having some definite problems trying to get this to repro. I can't even
get
openvswitch-2.6.0 to build. I am running into numerous compatibility layer
issues
with netfilter and the net_ns (!!!!!!!!!!!!) code that prevent compilation, much
less getting any check-kmod tests to run. It's a complete mess.
Can you point me to a link with an openvswitch 2.6 tarball that builds on your
Centos7.2
3.10.0-327.el7.x86_64 kernel?
I'm building on Centos 7.2 as well - using the 3.10.0-514.el7.x86_64 kernel
myself but that shouldn't
matter. Or if it does then that is an important detail.
Thanks,
- Greg
_______________________________________________
dev mailing list
d...@openvswitch.org
https://mail.openvswitch.org/mailman/listinfo/ovs-dev