<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<p><span class="tlid-translation translation" lang="en"><span title="" class="">I'll add information.</span><br>
<span title="" class="">With hw-offload disabled, creating new instances is no problem.</span><br>
<br>
<span title="">ovs-vsctl set Open_vSwitch.</span> <span title="" class="">other-config: hw-offload = false</span><br>
<br>
<span title="" class="">We have installed kernel linux-image-generic-hwe-18.04-edge 4.18.0.16.65</span><br>
<br>
<span title="" class="">Thank you for your help.</span><br>
<span title="" class="">Petr</span></span></p>
<div class="moz-cite-prefix">On 11/12/19 12:49 PM, Koukal Petr wrote:<br>
</div>
<blockquote type="cite" cite="mid:1739ca08-a37c-0ff3-82d2-0bdb14e5b124@radiokomunikace.cz">
<p><span class="tlid-translation translation" lang="en">Hello,<br>
I installed the linux-generic-hwe-18.04-edge kernel.<br>
<br>
apt list --installed | grep linux-image<br>
linux-image-generic-hwe-18.04-edge/bionic,now 4.18.0.16.65 amd64 [installed]<br>
<br>
hwe-support-status - verbose<br>
Your Hardware Enablement Stack (HWE) is supported until April 2023.<br>
<br>
<br>
Previously reported error when<br>
In a short time after creating several new instances, the service will crash after capturing this assert<br>
&quot;ovs | 00001 | util (handler8) | EMER | ../ include / openvswitch / ofpbuf.h: 190: assertion offset &#43; size &lt;= b -&gt; size failed inpbuf_at_assert ()&quot;<br>
it is not happening yet.<br>
</span></p>
<p><span class="tlid-translation translation" lang="en"><br>
</span><span class="tlid-translation translation" lang="en">However, there was another problem.<br>
When creating a new VM, the following error occurs:<br>
in /var/log/openvswitch/ovs-vswitchd.log</span></p>
<p><span class="tlid-translation translation" lang="en">2019-11-11T15:54:46.937Z|00108|connmgr|INFO|br-int&lt;-&gt;tcp:127.0.0.1:6633: 16 flow_mods in the 4 s starting 10 s ago (12 adds, 4 deletes)<br>
2019-11-11T16:03:53.798Z|00001|dpif_netlink(handler7)|ERR|failed to offload flow: Numerical result out of range: eth51<br>
2019-11-11T16:03:53.810Z|00002|dpif_netlink(handler7)|ERR|failed to offload flow: Numerical result out of range: eth51<br>
2019-11-11T16:03:54.154Z|00003|dpif_netlink(handler7)|ERR|failed to offload flow: Numerical result out of range: eth51<br>
2019-11-11T16:03:55.178Z|00004|dpif_netlink(handler7)|ERR|failed to offload flow: Numerical result out of range: eth51<br>
</span></p>
<p><span class="tlid-translation translation" lang="en"></span><span class="tlid-translation translation" lang="en"><span class="tlid-translation translation" lang="en"><br>
</span></span></p>
<p><span class="tlid-translation translation" lang="en"><span class="tlid-translation translation" lang="en">The status of ovs-vswitchd will end up with a problem with offloading rules.</span></span></p>
<p><span class="tlid-translation translation" lang="en">oot@dev-node1:/usr/share/doc# service ovs-vswitchd status<br>
* ovs-vswitchd.service - Open vSwitch Forwarding Unit<br>
&nbsp;&nbsp; Loaded: loaded (/lib/systemd/system/ovs-vswitchd.service; static; vendor preset: enabled)<br>
&nbsp;&nbsp; Active: active (running) since Mon 2019-11-11 16:28:43 CET; 36min ago<br>
&nbsp; Process: 26869 ExecStop=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server stop (code=exited, status=0/SUCCESS)<br>
&nbsp; Process: 26993 ExecStart=/usr/share/openvswitch/scripts/ovs-ctl --no-ovsdb-server --no-monitor --system-id=random start $OPTIONS (code=exited,
<br>
&nbsp;Main PID: 27037 (ovs-vswitchd)<br>
&nbsp;&nbsp;&nbsp; Tasks: 4 (limit: 4915)<br>
&nbsp;&nbsp; CGroup: /system.slice/ovs-vswitchd.service<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; `-27037 ovs-vswitchd unix:/var/run/openvswitch/db.sock -vconsole:emer -vsyslog:err -vfile:info --mlockall --no-chdir --log-file=/var/l<br>
<br>
Nov 11 16:28:43 dev-node1 ovs-vsctl[27057]: ovs|00001|vsctl|INFO|Called as ovs-vsctl --no-wait set Open_vSwitch . external-ids:hostname=dev-node1<br>
Nov 11 16:28:43 dev-node1 ovs-ctl[26993]:&nbsp; * Enabling remote OVSDB managers<br>
Nov 11 16:28:43 dev-node1 systemd[1]: Started Open vSwitch Forwarding Unit.<br>
Nov 11 17:03:53 dev-node1 ovs-vswitchd[27037]: ovs|00001|dpif_netlink(handler7)|ERR|failed to offload flow: Numerical result out of range: eth51<br>
Nov 11 17:03:53 dev-node1 ovs-vswitchd[27037]: ovs|00002|dpif_netlink(handler7)|ERR|failed to offload flow: Numerical result out of range: eth51<br>
Nov 11 17:03:54 dev-node1 ovs-vswitchd[27037]: ovs|00003|dpif_netlink(handler7)|ERR|failed to offload flow: Numerical result out of range: eth51<br>
</span></p>
<p><br>
<span class="tlid-translation translation" lang="en"></span></p>
<p><span class="tlid-translation translation" lang="en"><span class="tlid-translation translation" lang="en">This error does not happen with every VM creation, but it always ends after a few successfully created VMs.<br>
</span></span></p>
<p><span class="tlid-translation translation" lang="en"><br>
</span></p>
<p><span class="tlid-translation translation" lang="en">We have hw-offload turned on<br>
</span></p>
<p><span class="tlid-translation translation" lang="en"></span></p>
<span class="tlid-translation translation" lang="en">root@dev-node1: ~ # ovs-vsctl get Open_vSwitch. other-config<br>
{hw-offload = &quot;true&quot;}</span>
<p><br>
<span class="tlid-translation translation" lang="en"><span class="tlid-translation translation" lang="en">Thank you for your help.</span></span></p>
<p><span class="tlid-translation translation" lang="en"><span class="tlid-translation translation" lang="en">Petr Koukal<br>
</span></span></p>
<p><span class="tlid-translation translation" lang="en"><br>
</span></p>
<p><span class="tlid-translation translation" lang="en"><br>
</span></p>
<p><span class="tlid-translation translation" lang="en"><br>
</span></p>
<p><span class="tlid-translation translation" lang="en"><br>
</span></p>
<div class="moz-cite-prefix">On 11/7/19 10:46 AM, James Page wrote:<br>
</div>
<blockquote type="cite" cite="mid:CAG1bqQom2t5xCMcU14qJ4&#43;g5vgULwmY2D9W_hCCdVgWLKiZNDA@mail.gmail.com">
<div dir="ltr">Hi Koukal
<div><br>
</div>
<div>I note that you're using the 4.18 kernel from Ubuntu; For Mellanox hardware offload I'd suggest you switch to using the hwe-edge kernel (5.3) as this is generally more mature for this (and other mlx5_core) feature - package name is 'linux-generic-hwe-18.04-edge'.</div>
<div><br>
</div>
</div>
<br>
<div class="gmail_quote">
<div dir="ltr" class="gmail_attr">On Thu, Nov 7, 2019 at 9:23 AM Koukal Petr &lt;<a href="mailto:p.koukal@radiokomunikace.cz" moz-do-not-send="true">p.koukal@radiokomunikace.cz</a>&gt; wrote:<br>
</div>
<blockquote class="gmail_quote" style="margin:0px 0px 0px
            0.8ex;border-left:1px solid
            rgb(204,204,204);padding-left:1ex">
<div bgcolor="#FFFFFF">
<p><span lang="en"><span title="">In case I turn off hw-offload with</span><br>
<span title="">ovs-vsctl set Open_vSwitch.</span> <span title="">other-config: hw-offload = false</span><br>
<span title="">then &quot;ovs-vswitchd&quot; is without collision.</span></span></p>
<p><br>
<span lang="en"><span title=""><span lang="en"><span title="">Is it possible to reach someone who knows what to do with the offload problem?</span></span></span></span></p>
<p><span lang="en"><span title=""><span lang="en"><span title=""><span lang="en"><span title="">Thank you for your help.</span></span></span></span></span></span></p>
<p><span lang="en"><span title=""><span lang="en"><span title="">Petr<br>
</span></span></span></span></p>
<div>On 11/6/19 6:48 PM, Ben Pfaff wrote:<br>
</div>
<blockquote type="cite">
<pre>On Wed, Nov 06, 2019 at 01:59:36PM &#43;0100, Koukal Petr wrote:
</pre>
<blockquote type="cite">
<pre>The problem is the same even if hw-offload is off.

I'm sending a log from ovs-vswitchd.log just after restarting the whole
openvswitch-switch.
Here you can see what happens before the assertion pops up.

ethtool -K phys1-1 hw-tc-offload off
ethtool -K phys1-2 hw-tc-offload off
</pre>
</blockquote>
<pre>This demonstrates turning off hardware offload at the ethtool level.
However, even with that, I believe that OVS will still try to use it if
OVS is configured for hardware offload.  It looks like your OVS does
have hardware offload enabled.  To turn it off, run:

ovs-vsctl set Open_vSwitch . other-config:hw-offload=false

Then restart OVS and see if it makes a difference.
</pre>
</blockquote>
____________________________________________<br>
</div>
discuss mailing list<br>
<a href="mailto:discuss@openvswitch.org" target="_blank" moz-do-not-send="true">discuss@openvswitch.org</a><br>
<a href="https://mail.openvswitch.org/mailman/listinfo/ovs-discuss" rel="noreferrer" target="_blank" moz-do-not-send="true">https://mail.openvswitch.org/mailman/listinfo/ovs-discuss</a><br>
</blockquote>
</div>
</blockquote>
</blockquote>
<p style="font-family: calibri, tahoma, verdana; font-size: 9pt;">Informace obsažené v této e-mailové zprávě a všech přiložených souborech jsou důvěrné a jsou určeny pouze pro potřebu adresáta. Prosíme, abyste v případě, že tento e-mail obdržíte omylem, neprodleně
 upozornili odesílatele a tento e-mail odstranili z Vašeho systému. Pokud nejste zamýšleným příjemcem, berte prosím na vědomí, že zveřejnění, kopírování, šíření či přijetí jakéhokoliv opatření v souvislosti s obsahem této zprávy je zakázáno a může být protiprávní.
</p>
<p style="font-family: calibri, tahoma, verdana; font-size: 9pt;">_____________________________________________________________________
</p>
<p style="font-family: calibri, tahoma, verdana; font-size: 9pt;">The information contained in this e-mail message and all attached files is confidential and is intended solely for the use of the individual or entity to whom they are addressed. Please notify
 the sender immediately if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this
 information is prohibited and may be unlawful. </p>
</body>
</html>