[ovs-git] [openvswitch/ovs] 0f6379: odp-util: Don't try to parse geneve data if not pr...
GitHub
noreply at github.com
Tue Dec 18 23:50:05 UTC 2018
Branch: refs/heads/master
Home: https://github.com/openvswitch/ovs
Commit: 0f6379e7fa4dfba56d6825c55bff97f9cd340519
https://github.com/openvswitch/ovs/commit/0f6379e7fa4dfba56d6825c55bff97f9cd340519
Author: Ilya Maximets <i.maximets at samsung.com>
Date: 2018-12-18 (Tue, 18 Dec 2018)
Changed paths:
M lib/odp-util.c
Log Message:
-----------
odp-util: Don't try to parse geneve data if not provided.
Despite of linux, 'strtoull' on FreeBSD sets errno to EINVAL in case
of no digits found. This causes odp_flow parsing failure if
there is no geneve data inside it. For example, ovs fails to parse
following flow on FreeBSD:
tunnel(<...>,geneve({class=0xffff,type=1,len=0}),<...>)
Moving the parsing attempt under the if condition fixes the following
unit test failure:
tunnel.at:780: testing tunnel - Geneve option present ...
./tunnel.at:810: ovs-appctl ofproto/trace ovs-dummy \
'tunnel(<...>,geneve({class=0xffff,type=1,len=0}), ...'
--- /dev/null 2018-12-18 13:24:55.001110000 +0000
+++ /tmp/cirrus-ci-build/tests/testsuite.dir/at-groups/848/stderr
@@ -0,0 +1,2 @@
+ovs-dummy: unknown bridge
+ovs-appctl: ovs-vswitchd: server returned an error
CC: Jesse Gross <jesse at kernel.org>
Fixes: 622a0a8e764d ("odp-util: Geneve netlink decoding.")
Signed-off-by: Ilya Maximets <i.maximets at samsung.com>
Signed-off-by: Ben Pfaff <blp at ovn.org>
**NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/
Functionality will be removed from GitHub.com on January 31st, 2019.
More information about the git
mailing list