<div dir="ltr">Great, that patch works for me.<div>After cherry-picked that patch to 2.6.1, we can also build the 2.6.1 ovs kmod.</div><div>Thank you very much.</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 12, 2017 at 10:21 AM, Joe Stringer <span dir="ltr">&lt;<a href="mailto:joe@ovn.org" target="_blank">joe@ovn.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><span style="font-family:sans-serif">Does your master include this commit?</span><div dir="auto" style="font-family:sans-serif"><br></div><div dir="auto" style="font-family:sans-serif"><a href="https://github.com/openvswitch/ovs/commit/6ccf21ca77ec092aa63b3daff66dc9f0d0e1be93" target="_blank">https://github.com/openvswitch<wbr>/ovs/commit/6ccf21ca77ec092aa6<wbr>3b3daff66dc9f0d0e1be93</a></div><div><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On 11/01/2017 18:14, &quot;liu yulong&quot; &lt;<a href="mailto:liuyulong.xa@gmail.com" target="_blank">liuyulong.xa@gmail.com</a>&gt; wrote:<br type="attribution"><blockquote class="m_-4140456941058494986quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Thanks Joe and Ben, actually the master branch we also got such error.</div><div>The doc we followed is &quot;Fedora, RHEL 7.x Packaging for Open vSwitch&quot; [1].</div><div>The conflicting shown in [2] was basically same. </div><div><br></div><div>[1] <a href="https://github.com/openvswitch/ovs/blob/master/Documentation/intro/install/fedora.rst" target="_blank">https://github.com/openvswitch<wbr>/ovs/blob/master/Documentation<wbr>/intro/install/fedora.rst</a></div><div>[2] <a href="http://paste.openstack.org/show/594350/" target="_blank">http://paste.openstack.org/sho<wbr>w/594350/</a></div><div class="m_-4140456941058494986elided-text"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 12, 2017 at 7:51 AM, Joe Stringer <span dir="ltr">&lt;<a href="mailto:joe@ovn.org" target="_blank">joe@ovn.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="m_-4140456941058494986m_5824359955291287246gmail-HOEnZb"><div class="m_-4140456941058494986m_5824359955291287246gmail-h5">On 11 January 2017 at 15:38, Ben Pfaff &lt;<a href="mailto:blp@ovn.org" target="_blank">blp@ovn.org</a>&gt; wrote:<br>
&gt; On Wed, Jan 11, 2017 at 03:03:45PM -0800, Joe Stringer wrote:<br>
&gt;&gt; On 9 January 2017 at 19:01, liu yulong &lt;<a href="mailto:liuyulong.xa@gmail.com" target="_blank">liuyulong.xa@gmail.com</a>&gt; wrote:<br>
&gt;&gt; &gt; Hi experts,<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; We have failed to build Open vSwitch Kernel Modules on CentOS 7 (kernel<br>
&gt;&gt; &gt; 3.10.0-514.2.2.el7.x86_64).<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Here are some traces we got:<br>
&gt;&gt; &gt; <a href="http://paste.openstack.org/show/594350/" rel="noreferrer" target="_blank">http://paste.openstack.org/sho<wbr>w/594350/</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Steps:<br>
&gt;&gt; &gt; 1. download the current openvswitch release:<br>
&gt;&gt; &gt; <a href="http://openvswitch.org/releases/openvswitch-2.6.1.tar.gz" rel="noreferrer" target="_blank">http://openvswitch.org/release<wbr>s/openvswitch-2.6.1.tar.gz</a><br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; 2. rpmbuild<br>
&gt;&gt; &gt; (1) prepare the SOURCE<br>
&gt;&gt; &gt; cp openvswitch-2.6.1.tar.gz ~/rpmbuild/SOURCES/<br>
&gt;&gt; &gt; tar -zxvf openvswitch-2.6.1.tar.gz<br>
&gt;&gt; &gt; cp ./openvswitch-2.6.1/rhel/* ~/rpmbuild/SOURCES/<br>
&gt;&gt; &gt; cp ./openvswitch-2.6.1/rhel/*.spe<wbr>c ~/rpmbuild/SPECS/<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; (2) edit ~/rpmbuild/SPECS/openvswitch-k<wbr>mod-fedora.spec<br>
&gt;&gt; &gt; change the #%define kernel to:<br>
&gt;&gt; &gt; #%define kernel 3.10.0-514.2.2.el7.x86_64<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; (3) start build<br>
&gt;&gt; &gt; rpmbuild -bb --without check ~/rpmbuild/SPECS/openvswitch-k<wbr>mod-fedora.spec<br>
&gt;&gt; &gt;<br>
&gt;&gt; &gt; Then we get that error. So can anyone help to solve such issue?<br>
&gt;&gt; &gt; Thank you.<br>
&gt;&gt;<br>
&gt;&gt; If you want to use the kernel module from the OVS tree, you need to<br>
&gt;&gt; use master or wait for the next version of OVS. Alternatively you can<br>
&gt;&gt; skip using the kernel module from OVS tree and only compile the<br>
&gt;&gt; userspace programs, then use the kernel module that is provided with<br>
&gt;&gt; Centos 7.<br>
&gt;<br>
&gt; Maybe liu is confused because the FAQ that comes with OVS 2.6.1 says<br>
&gt; that the kernel module should work with Linux 3.10.  Maybe it does not<br>
&gt; work because Centos kernels diverge from upstream.<br>
<br>
</div></div>True, it&#39;s a bit confusing. The FAQ distributed with 2.6 specifically<br>
states the supported versions, with this caveat:<br>
<br>
&quot;The Linux kernel versions are upstream kernel versions, so Linux<br>
kernels modified from the upstream sources may not build in some cases<br>
even if they are based on a supported version. This is most notably<br>
true of Red Hat Enterprise Linux (RHEL) kernels, which are extensively<br>
modified from upstream.&quot;<br>
<br>
<a href="https://github.com/openvswitch/ovs/blob/branch-2.6/FAQ.md#q-what-linux-kernel-versions-does-each-open-vswitch-release-work-with" rel="noreferrer" target="_blank">https://github.com/openvswitch<wbr>/ovs/blob/branch-2.6/FAQ.md#q-<wbr>what-linux-kernel-versions-doe<wbr>s-each-open-vswitch-release-<wbr>work-with</a><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br></div></div></div></div></div>
</blockquote></div><br></div>