openvswitch: uprev to the recently released v2.7.0

This version of OVS was released on Feb. 21. Bringing our recipe up to
date with the latest release ensure we have all the latest CVE fixes
as well as any new functionality that folks might be looking
for. Additionally we are better situated to support up to date
releases of DPDK (v16.11 in this case). No surprises with the uprev,
it passes all usecase tests (meta-overc) and ptest results are much
the same as the results we had in v2.6.1. While completing the uprev I
took the opportunity to do some cleanup of patches that were no longer
used or required.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: Bruce Ashfield <bruce.ashfield@windriver.com>
This commit is contained in:
Mark Asselstine 2017-03-29 11:26:15 -04:00 committed by Bruce Ashfield
parent ea05b2693a
commit 4e130b7165
5 changed files with 114 additions and 96 deletions

View File

@ -1,50 +0,0 @@
From d1ab2f62a03c2c977de6fed5fca8de63e328a870 Mon Sep 17 00:00:00 2001
Message-Id: <d1ab2f62a03c2c977de6fed5fca8de63e328a870.1391527986.git.Jim.Somerville@windriver.com>
From: Jim Somerville <Jim.Somerville@windriver.com>
Date: Tue, 4 Feb 2014 15:30:41 +0000
Subject: [PATCH 1/1] openvswitch: add more target python substitutions
The TARGET_PYTHON variable is used for script
substitutions to ensure the scripts will be able to properly execute
if the target system has a different path for the python.
Signed-off-by: Jim Somerville <Jim.Somerville@windriver.com>
---
ovsdb/ovsdb-dot.in | 2 +-
ovsdb/ovsdb-idlc.in | 2 +-
utilities/ovs-dpctl-top.in | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in
index 85c126d..402a77c 100755
--- a/ovsdb/ovsdb-dot.in
+++ b/ovsdb/ovsdb-dot.in
@@ -1,4 +1,4 @@
-#! @PYTHON@
+#! @TARGET_PYTHON@
from datetime import date
import ovs.db.error
diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in
index ec1c655..f5c135f 100755
--- a/ovsdb/ovsdb-idlc.in
+++ b/ovsdb/ovsdb-idlc.in
@@ -1,4 +1,4 @@
-#! @PYTHON@
+#! @TARGET_PYTHON@
import getopt
import os
diff --git a/utilities/ovs-dpctl-top.in b/utilities/ovs-dpctl-top.in
index f43fdeb..8475118 100755
--- a/utilities/ovs-dpctl-top.in
+++ b/utilities/ovs-dpctl-top.in
@@ -1,4 +1,4 @@
-#! @PYTHON@
+#! @TARGET_PYTHON@
#
# Copyright (c) 2013 Nicira, Inc.
#
--
1.8.3.4

View File

@ -1,4 +1,4 @@
From 33769657e951da855b9258eb91fa9838373023ad Mon Sep 17 00:00:00 2001 From 04ad1c3d9f47cfdf4ad9b5d685e953ec094326ff Mon Sep 17 00:00:00 2001
From: Mark Asselstine <mark.asselstine@windriver.com> From: Mark Asselstine <mark.asselstine@windriver.com>
Date: Fri, 13 Jan 2017 16:12:55 -0500 Date: Fri, 13 Jan 2017 16:12:55 -0500
Subject: [PATCH] python: make remaining scripts use /usr/bin/env Subject: [PATCH] python: make remaining scripts use /usr/bin/env
@ -13,11 +13,110 @@ make use of /usr/bin/env to increase the chances of finding python.
Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
--- ---
ovsdb/ovsdb-dot.in | 2 +- build-aux/check-structs | 2 +-
ovsdb/ovsdb-idlc.in | 2 +- build-aux/extract-ofp-actions | 2 +-
utilities/bugtool/ovs-bugtool.in | 2 +- build-aux/extract-ofp-errors | 2 +-
3 files changed, 3 insertions(+), 3 deletions(-) build-aux/extract-ofp-fields | 2 +-
build-aux/extract-ofp-msgs | 2 +-
build-aux/xml2nroff | 2 +-
ovn/utilities/ovn-docker-overlay-driver | 2 +-
ovn/utilities/ovn-docker-underlay-driver | 2 +-
ovsdb/ovsdb-doc | 2 +-
ovsdb/ovsdb-dot.in | 2 +-
ovsdb/ovsdb-idlc.in | 2 +-
utilities/bugtool/ovs-bugtool.in | 2 +-
12 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/build-aux/check-structs b/build-aux/check-structs
index f79f235..c7b8730 100755
--- a/build-aux/check-structs
+++ b/build-aux/check-structs
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
import os.path
import sys
diff --git a/build-aux/extract-ofp-actions b/build-aux/extract-ofp-actions
index 184447b..92ea18d 100755
--- a/build-aux/extract-ofp-actions
+++ b/build-aux/extract-ofp-actions
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
import sys
import os.path
diff --git a/build-aux/extract-ofp-errors b/build-aux/extract-ofp-errors
index 9642593..11e6de7 100755
--- a/build-aux/extract-ofp-errors
+++ b/build-aux/extract-ofp-errors
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
import sys
import os.path
diff --git a/build-aux/extract-ofp-fields b/build-aux/extract-ofp-fields
index 498b887..5d6bcec 100755
--- a/build-aux/extract-ofp-fields
+++ b/build-aux/extract-ofp-fields
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
import getopt
import sys
diff --git a/build-aux/extract-ofp-msgs b/build-aux/extract-ofp-msgs
index 1813638..e9e3c25 100755
--- a/build-aux/extract-ofp-msgs
+++ b/build-aux/extract-ofp-msgs
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
import sys
import os.path
diff --git a/build-aux/xml2nroff b/build-aux/xml2nroff
index bd4e879..9d81503 100755
--- a/build-aux/xml2nroff
+++ b/build-aux/xml2nroff
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
# Copyright (c) 2010, 2011, 2012, 2013, 2014, 2015, 2016 Nicira, Inc.
#
diff --git a/ovn/utilities/ovn-docker-overlay-driver b/ovn/utilities/ovn-docker-overlay-driver
index 52de3db..c90f02b 100755
--- a/ovn/utilities/ovn-docker-overlay-driver
+++ b/ovn/utilities/ovn-docker-overlay-driver
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
# Copyright (C) 2015 Nicira, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/ovn/utilities/ovn-docker-underlay-driver b/ovn/utilities/ovn-docker-underlay-driver
index 2c9c4b6..89b804c 100755
--- a/ovn/utilities/ovn-docker-underlay-driver
+++ b/ovn/utilities/ovn-docker-underlay-driver
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
# Copyright (C) 2015 Nicira, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
diff --git a/ovsdb/ovsdb-doc b/ovsdb/ovsdb-doc
index 5cf26ee..f76f4bd 100755
--- a/ovsdb/ovsdb-doc
+++ b/ovsdb/ovsdb-doc
@@ -1,4 +1,4 @@
-#! /usr/bin/python
+#! /usr/bin/env python
# Copyright (c) 2010, 2011, 2012, 2013, 2014, 2015 Nicira, Inc.
#
diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in diff --git a/ovsdb/ovsdb-dot.in b/ovsdb/ovsdb-dot.in
index 134ce22..893c408 100755 index 134ce22..893c408 100755
--- a/ovsdb/ovsdb-dot.in --- a/ovsdb/ovsdb-dot.in
@ -29,7 +128,7 @@ index 134ce22..893c408 100755
from datetime import date from datetime import date
import ovs.db.error import ovs.db.error
diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in diff --git a/ovsdb/ovsdb-idlc.in b/ovsdb/ovsdb-idlc.in
index cd4532e..dceb02f 100755 index 721ab50..bfbcf23 100755
--- a/ovsdb/ovsdb-idlc.in --- a/ovsdb/ovsdb-idlc.in
+++ b/ovsdb/ovsdb-idlc.in +++ b/ovsdb/ovsdb-idlc.in
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@
@ -39,7 +138,7 @@ index cd4532e..dceb02f 100755
import getopt import getopt
import os import os
diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in diff --git a/utilities/bugtool/ovs-bugtool.in b/utilities/bugtool/ovs-bugtool.in
index bb771b0..152d171 100755 index 963c50c..c84d7c2 100755
--- a/utilities/bugtool/ovs-bugtool.in --- a/utilities/bugtool/ovs-bugtool.in
+++ b/utilities/bugtool/ovs-bugtool.in +++ b/utilities/bugtool/ovs-bugtool.in
@@ -1,4 +1,4 @@ @@ -1,4 +1,4 @@

View File

@ -1,4 +1,4 @@
From e20556d7cf0fc8258db77c1f3e0a160cf9fd4514 Mon Sep 17 00:00:00 2001 From a2a656e6976a60e5df3ade0d17a40b4ebdc2b41a Mon Sep 17 00:00:00 2001
From: He Zhe <zhe.he@windriver.com> From: He Zhe <zhe.he@windriver.com>
Date: Wed, 30 Mar 2016 06:23:45 -0400 Date: Wed, 30 Mar 2016 06:23:45 -0400
Subject: [PATCH] openvswitch: Add test-install rule to support ptest execution Subject: [PATCH] openvswitch: Add test-install rule to support ptest execution
@ -19,13 +19,13 @@ Signed-off-by: He Zhe <zhe.he@windriver.com>
create mode 100644 test.mk create mode 100644 test.mk
diff --git a/Makefile.am b/Makefile.am diff --git a/Makefile.am b/Makefile.am
index ed43c2f..f38d278 100644 index a4dd7b8..0bd32c7 100644
--- a/Makefile.am --- a/Makefile.am
+++ b/Makefile.am +++ b/Makefile.am
@@ -401,3 +401,4 @@ include datapath-windows/include/automake.mk @@ -429,3 +429,4 @@ include windows/automake.mk
include windows/automake.mk
include ovn/automake.mk include ovn/automake.mk
include selinux/automake.mk include selinux/automake.mk
include build-aux/automake.mk
+include test.mk +include test.mk
diff --git a/test.mk b/test.mk diff --git a/test.mk b/test.mk
new file mode 100644 new file mode 100644
@ -106,5 +106,5 @@ index 0000000..b10a581
+ sed -i 's|ovs-appctl-bashcomp\.bash|/etc/bash_completion.d/ovs-appctl-bashcomp\.bash|g' $(TEST_DEST)/tests/testsuite + sed -i 's|ovs-appctl-bashcomp\.bash|/etc/bash_completion.d/ovs-appctl-bashcomp\.bash|g' $(TEST_DEST)/tests/testsuite
+ sed -i 's|ovs-vsctl-bashcomp\.bash|/etc/bash_completion.d/ovs-vsctl-bashcomp\.bash|g' $(TEST_DEST)/tests/testsuite + sed -i 's|ovs-vsctl-bashcomp\.bash|/etc/bash_completion.d/ovs-vsctl-bashcomp\.bash|g' $(TEST_DEST)/tests/testsuite
-- --
1.9.1 2.7.4

View File

@ -1,30 +0,0 @@
From 2a78bddb865e0d3377f437428ed6825195af0a14 Mon Sep 17 00:00:00 2001
From: He Zhe <zhe.he@windriver.com>
Date: Wed, 13 Apr 2016 03:13:01 -0400
Subject: [PATCH] openvswitch: ptest: Fix python path
For now PYTHON just happens to be the same as TARGET_PYTHON so we get the right
python binary. This patch sets PYTHON to TARGET_PYTHON since ptest is going to
be run on target.
Signed-off-by: He Zhe <zhe.he@windriver.com>
---
tests/atlocal.in | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/atlocal.in b/tests/atlocal.in
index 5815c6c..db2d2c9 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -5,7 +5,7 @@ EGREP='@EGREP@'
PERL='@PERL@'
if test x"$PYTHON" = x; then
- PYTHON='@PYTHON@'
+ PYTHON='@TARGET_PYTHON@'
fi
PYTHONPATH=$abs_top_srcdir/python:$abs_top_builddir/tests:$PYTHONPATH
--
1.9.1

View File

@ -12,21 +12,20 @@ RDEPENDS_${PN}-ptest += "\
" "
S = "${WORKDIR}/git" S = "${WORKDIR}/git"
PV = "2.6.1+${SRCREV}" PV = "2.7.0+${SRCREV}"
FILESEXTRAPATHS_append := "${THISDIR}/${PN}-git:" FILESEXTRAPATHS_append := "${THISDIR}/${PN}-git:"
SRCREV = "f4b0e64cffb4777ff03d48621c3eadcf1d8c19f3" SRCREV = "c298ef781c2d35d939fe163cbc2f41ea7b1cb8d1"
SRC_URI = "file://openvswitch-switch \ SRC_URI = "file://openvswitch-switch \
file://openvswitch-switch-setup \ file://openvswitch-switch-setup \
file://openvswitch-testcontroller \ file://openvswitch-testcontroller \
file://openvswitch-testcontroller-setup \ file://openvswitch-testcontroller-setup \
git://github.com/openvswitch/ovs.git;protocol=git;branch=branch-2.6 \ git://github.com/openvswitch/ovs.git;protocol=git;branch=branch-2.7 \
file://openvswitch-add-ptest-${SRCREV}.patch \ file://openvswitch-add-ptest-${SRCREV}.patch \
file://run-ptest \ file://run-ptest \
file://disable_m4_check.patch \ file://disable_m4_check.patch \
file://kernel_module.patch \ file://kernel_module.patch \
file://openvswitch-ptest-Fix-python-path.patch \
file://python-make-remaining-scripts-use-usr-bin-env.patch \ file://python-make-remaining-scripts-use-usr-bin-env.patch \
file://0001-use-the-linux-if_packet.h-Interface-directly.patch \ file://0001-use-the-linux-if_packet.h-Interface-directly.patch \
file://0002-Define-WAIT_ANY-if-not-provided-by-system.patch \ file://0002-Define-WAIT_ANY-if-not-provided-by-system.patch \