SHA256
1
0
forked from pool/openvswitch

Compare commits

...

228 Commits

Author SHA256 Message Date
Dominique Leuenberger
9903272ada Accepting request 1244140 from network
OBS-URL: https://build.opensuse.org/request/show/1244140
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=79
2025-02-09 19:00:19 +00:00
30dfafc4b3 - Update openvswitch to 3.3.2. For a list of changes, check
https://github.com/openvswitch/ovs/blob/v3.3.2/NEWS
- Update OVN to 24.03.5. For a list of changes, check
  https://github.com/ovn-org/ovn/blob/v24.03.5/NEWS
  - This update fix CVE-2025-0650 ovn: egress ACLs may be bypassed
    via specially crafted UDP packet (bsc#1236353)

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=267
2025-02-07 12:30:08 +00:00
Ana Guerrero
01e39c3f3e Accepting request 1234305 from network
OBS-URL: https://build.opensuse.org/request/show/1234305
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=78
2025-01-02 18:19:30 +00:00
Duraisankar P
310a4825a5 - Add proper dependency on /usr/sbin/ipsec on openvswitch-ipsec:
without the binary present, the service crashes on startup
  (boo#1234617).

NOTE: /usr/sbin/ipsec has been marked deprecated by the strongswan maintainers

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=265
2025-01-01 12:36:09 +00:00
Dominique Leuenberger
a0c87b9d90 Accepting request 1198352 from network
OBS-URL: https://build.opensuse.org/request/show/1198352
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=77
2024-09-04 11:22:02 +00:00
Dominique Leuenberger
a7703baae5 Accepting request 1191002 from network
OBS-URL: https://build.opensuse.org/request/show/1191002
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=76
2024-08-05 15:20:17 +00:00
0b6d41226d Accepting request 1190492 from home:pgajdos
- remove dependency on /usr/bin/python3 using
  %python3_fix_shebang_path macro, [bsc#1212476]

OBS-URL: https://build.opensuse.org/request/show/1190492
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=261
2024-08-01 14:59:28 +00:00
Ana Guerrero
f70eafe09f Accepting request 1178928 from network
OBS-URL: https://build.opensuse.org/request/show/1178928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=75
2024-06-07 13:02:15 +00:00
656a62a896 Accepting request 1178479 from home:jamborm:gcc14fixes
- GCC 14 started to advertise c_atomic extension, older versions
  didn't do that.  Add check for __clang__, so GCC doesn't include
  headers designed for Clang
  (openvswitch-2.17.8-gcc14-build-fix.patch) [boo#1225906]

OBS-URL: https://build.opensuse.org/request/show/1178479
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=259
2024-06-06 08:30:34 +00:00
Dominique Leuenberger
0e8acf1c1c Accepting request 1153975 from network
OBS-URL: https://build.opensuse.org/request/show/1153975
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=74
2024-03-03 19:18:51 +00:00
d7664db00a Accepting request 1151380 from home:dimstar:rpm4.20:o
Prepare for RPM 4.20

OBS-URL: https://build.opensuse.org/request/show/1151380
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=257
2024-03-01 12:41:20 +00:00
Ana Guerrero
9ed0fe8570 Accepting request 1150566 from network
OBS-URL: https://build.opensuse.org/request/show/1150566
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=73
2024-02-27 21:43:34 +00:00
Duraisankar P
e2f18d8bbd Accepting request 1146716 from home:dpitchumani:branches:openSUSE:Factory
- Fix CVE-2023-3966 [bsc#1219465] openvswitch3: Invalid memory access in Geneve with HW offload
- Added patch,
      +openvswitch-CVE-2023-3966.patch

OBS-URL: https://build.opensuse.org/request/show/1146716
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=255
2024-02-26 07:09:11 +00:00
Ana Guerrero
4dd1606b6a Accepting request 1144341 from network
OBS-URL: https://build.opensuse.org/request/show/1144341
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=72
2024-02-06 15:33:01 +00:00
362e50dfde Accepting request 1143536 from home:dpitchumani:branches:openSUSE:Factory
Description :
- Fix CVE-2023-5366 [bsc#1216002], openvswitch: missing masks on a final stage with ports trie
- Added patch,
   * CVE-2023-5366.patch

Action:
Submit home:dpitchumani:branches:openSUSE:Factory/openvswitch => network/openvswitch

OBS-URL: https://build.opensuse.org/request/show/1143536
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=253
2024-02-05 15:56:24 +00:00
Ana Guerrero
14209fdf60 Accepting request 1133086 from network
- convert to sysuser generated users

- Add BuildRequires on python-setuptools. Previously this was pulled
  by python-Sphinx in the build environment.
       CVE-2023-3152.patch
     CVE-2023-1668.patch
   Some of the features are,
   -For more details, check
   - Added ovsb tool install patch,
     * install-ovsdb-tools.patch
- add openssl(cli) dependency on pki (bsc#1185839)
  https://github.com/openvswitch/ovs/blob/v2.14.2/NEWS
  (bsc#1181742).
- Fix wrong default directories for OVS python utilities (bsc#1176273).
  https://github.com/openvswitch/ovs/blob/v2.14.0/NEWS
  https://github.com/ovn-org/ovn/blob/v20.06.2/NEWS
- add missing provides/obsoletes for python3-openvswitch-test
- Update openvswitch to 2.13.0.
    https://github.com/openvswitch/ovs/blob/v2.13.0/NEWS
  https://github.com/openvswitch/ovs/blob/master/NEWS
- Update DPDK dependency to support DPDK 18.11.2.
  * 0001-rhel-secure-openvswitch-useropts.patch
- Use temporary directory for python build.
  including:
     - Support for the kernel versions 4.18.x
 * 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch
  * 0001-utilities-Add-script-to-support-DPDK-option-migratio.patch
- Replace references to /var/adm/fillup-templates with new
  removed (bsc#1050896)
  builds on aarch64 now

OBS-URL: https://build.opensuse.org/request/show/1133086
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=71
2023-12-15 20:46:52 +00:00
95221c70c1 - convert to sysuser generated users
- Add BuildRequires on python-setuptools. Previously this was pulled
  by python-Sphinx in the build environment.
       CVE-2023-3152.patch
     CVE-2023-1668.patch
   Some of the features are,
   -For more details, check
   - Added ovsb tool install patch,
     * install-ovsdb-tools.patch
- add openssl(cli) dependency on pki (bsc#1185839)
  https://github.com/openvswitch/ovs/blob/v2.14.2/NEWS
  (bsc#1181742).
- Fix wrong default directories for OVS python utilities (bsc#1176273).
  https://github.com/openvswitch/ovs/blob/v2.14.0/NEWS
  https://github.com/ovn-org/ovn/blob/v20.06.2/NEWS
- add missing provides/obsoletes for python3-openvswitch-test
- Update openvswitch to 2.13.0.
    https://github.com/openvswitch/ovs/blob/v2.13.0/NEWS
  https://github.com/openvswitch/ovs/blob/master/NEWS
- Update DPDK dependency to support DPDK 18.11.2.
  * 0001-rhel-secure-openvswitch-useropts.patch
- Use temporary directory for python build.
  including:
     - Support for the kernel versions 4.18.x
 * 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch
  * 0001-utilities-Add-script-to-support-DPDK-option-migratio.patch
- Replace references to /var/adm/fillup-templates with new
  removed (bsc#1050896)
  builds on aarch64 now
- fix rcX link

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=251
2023-12-14 12:03:53 +00:00
Ana Guerrero
e3bfefd5ad Accepting request 1130936 from network
OBS-URL: https://build.opensuse.org/request/show/1130936
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=70
2023-12-06 22:52:19 +00:00
8e59917189 Accepting request 1130820 from home:anag:AllStaging
- Add BuildRequires on python-setuptools. Previously this was pulled 
  by python-Sphinx in the build environment.

OBS-URL: https://build.opensuse.org/request/show/1130820
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=249
2023-12-05 09:42:40 +00:00
Ana Guerrero
8914997bcf Accepting request 1109539 from network
Description:
- Added fix for CVE-2023-3152, openvswitch : service monitor MAC flow is not rate limited

Actions:
- submit network/openvswitch => openSUSE:Factory/openvswitch

Changes:
- Fix CVE-2023-3153 [bsc#1212125], VUL-0: CVE-2023-3153: openvswitch,openvswitch3: service monitor MAC flow is not rate limited
- Added patch,
       CVE-2023-3152.patch

OBS-URL: https://build.opensuse.org/request/show/1109539
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=69
2023-09-07 19:12:22 +00:00
Duraisankar P
2fa8fb38ca - Fix CVE-2023-3153 [bsc#1212125], VUL-0: CVE-2023-3153: openvswitch,openvswitch3: service monitor MAC flow is not rate limited
- Added patch,
       CVE-2023-3152.patch

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=247
2023-09-07 11:39:57 +00:00
Dominique Leuenberger
5bf1b64211 Accepting request 1087788 from network
OBS-URL: https://build.opensuse.org/request/show/1087788
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=68
2023-05-19 09:54:48 +00:00
e4a743678d Accepting request 1087541 from home:dpitchumani:branches:network
Description: 
- Fix CVE-2023-1668 [bsc#1210054], openvswitch: remote traffic denial of service via crafted packets with IP proto 0
- Added patch,
     CVE-2023-1668.patch 

Actions:
- submit home:dpitchumani:branches:network/openvswitch => network/openvswitch

OBS-URL: https://build.opensuse.org/request/show/1087541
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=245
2023-05-18 11:46:20 +00:00
Dominique Leuenberger
c696c061af Accepting request 1084458 from network
OBS-URL: https://build.opensuse.org/request/show/1084458
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=67
2023-05-04 15:09:21 +00:00
7eb5be33d8 Accepting request 1083952 from home:dimstar:Factory
- Remove python/ovs/dirs.py prior to building: have this
  re-generated based on the shipped template (boo#1210479).

OBS-URL: https://build.opensuse.org/request/show/1083952
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=243
2023-05-03 16:02:25 +00:00
Dominique Leuenberger
5a91a4c811 Accepting request 1079120 from network
OBS-URL: https://build.opensuse.org/request/show/1079120
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=66
2023-04-14 11:12:27 +00:00
051ecd63ee Accepting request 1078288 from home:dpitchumani:branches:network
Description: 
- Updated commit message with proper patch changes

Actions:
- submit home:dpitchumani:branches:network/openvswitch => network/openvswitch

Changes: 
   - Renamed and rebased patches,
     * 0001-Don-t-change-permissions-of-dev-hugepages.patch
     * 0001-Use-double-hash-for-OVS_USER_ID-comment.patch
     * 0001-Run-ovn-as-openvswitch-openvswitch.patch
     * 0001-Use-strongswan-for-openvswitch-ipsec-service.patch
     * 0001-Run-openvswitch-as-openvswitch-openvswitch.patch

OBS-URL: https://build.opensuse.org/request/show/1078288
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=241
2023-04-13 10:58:56 +00:00
Reinhard Max
13e0ada764 Accepting request 1077727 from home:gyribeiro:branches:network
* 0002-build-Seperated-common-used-headers.patch
   * Don-t-change-permissions-of-dev-hugepages.patch
   * Use-double-hash-for-OVS_USER_ID-comment.patch
   * a77ad9693c8b49055389559187fe74eddb619746.patch
   * Run-openvswitch-as-openvswitch-openvswitch.patch
   * 0001-m4-Test-avx512-for-x86-only.patch
   * Use-strongswan-for-openvswitch-ipsec-service.patch
   * openvswitch-2.17.2-Fix-tests-with-GNU-grep-3.8.patch
   * 0001-Don-t-change-permissions-of-dev-hugepages.patch
   * 0001-Use-double-hash-for-OVS_USER_ID-comment.patch
   * 0001-Run-ovn-as-openvswitch-openvswitch.patch
   * 0001-Use-strongswan-for-openvswitch-ipsec-service.patch
   * 0001-Run-openvswitch-as-openvswitch-openvswitch.patch

OBS-URL: https://build.opensuse.org/request/show/1077727
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=240
2023-04-06 13:14:18 +00:00
Reinhard Max
d6aaeac21a * 0001-openvswitch-merge-compiler.h-files-into-one-file.patch
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=239
2023-04-06 12:34:57 +00:00
Reinhard Max
ee8143d3f4 Accepting request 1077608 from home:dpitchumani:branches:openSUSE:Factory
Description: 
- Update OVS to version v3.1.0 and OVN to version v23.03.0

Actions:
- submit home:dpitchumani:branches:openSUSE:Factory/openvswitch => netowkr/openvswitch

Features:
   - ovs-vswitchd now detects changes in CPU affinity and adjusts the number
     of handler and revalidator threads if necessary.
   - AF_XDP:
     * Added support for building with libxdp and libbpf >= 0.7.
     * Support for AF_XDP is now enabled by default if all dependencies are
       available at the build time.  Use --disable-afxdp to disable.
       Use --enable-afxdp to fail the build if dependencies are not present.
   - ovs-appctl:
     * "ovs-appctl ofproto/trace" command can now display port names with the
       "--names" option.
   - OVSDB-IDL:
     * Add the support to specify the persistent uuid for row insert in both
       C and Python IDLs.
   - Windows:
     * Conntrack IPv6 fragment support.
   - DPDK:
     * Add support for DPDK 22.11.1.
   - For the QoS max-rate and STP/RSTP path-cost configuration OVS now assumes
     10 Gbps link speed by default in case the actual link speed cannot be
     determined.  Previously it was 10 Mbps.  Values can still be overridden
     by specifying 'max-rate' or '[r]stp-path-cost' accordingly.
   - OpenFlow:
     * New OpenFlow extension NXT_CT_FLUSH to flush connections matching
       the specified fields.
   - ovs-ctl:
     * New option '--dump-hugepages' to include hugepages in core dumps. This
       can assist with postmortem analysis involving DPDK, but may also produce
       significantly larger core dump files.
   - ovs-dpctl and 'ovs-appctl dpctl/' commands:
     * 'flush-conntrack' is now capable of handling partial 5-tuple,
        with additional optional parameter to specify the reply direction.
   - ovs-ofctl:
     * New command 'flush-conntrack' that accepts zone and 5-tuple (or partial
       5-tuple) for both directions.
   - Support for travis-ci.org based continuous integration builds has been
     dropped.
   - Userspace datapath:
     * Add '-secs' argument to appctl 'dpif-netdev/pmd-rxq-show' to show
       the pmd usage of an Rx queue over a configurable time period.
     * Add new experimental PMD load based sleeping feature. PMD threads can
       request to sleep up to a user configured 'pmd-maxsleep' value under
       low load conditions.
   -For more details, check 
      https://github.com/openvswitch/ovs/blob/v3.1.0/NEWS
   -Includes secrity fix for CVE-2022-4338 (bsc#1206580) and CVE-2022-4337 (bsc#1206581)
- OVN package is not included as new version with API chnages are not yet released.
- Removed upstreamed patches,
   * 0001-Replace-deprecated-var-run-with-run.patch
   * openvswitch-CVE-2021-36980.patch
- Added ovsb tool install patch, 
   * install-ovsdb-tools.patch

OBS-URL: https://build.opensuse.org/request/show/1077608
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=238
2023-04-06 09:47:29 +00:00
Fabian Vogt
3ebcc49df8 Accepting request 1008394 from network
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1008394
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=65
2022-10-10 16:43:14 +00:00
Richard Brown
7092f53a75 Accepting request 1006932 from network
OBS-URL: https://build.opensuse.org/request/show/1006932
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=64
2022-10-01 15:42:46 +00:00
38ecd810de - add 0001-m4-Test-avx512-for-x86-only.patch
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=235
2022-09-29 13:02:01 +00:00
6a17311000 Accepting request 1006931 from home:dirkmueller:Factory
- add a77ad9693c8b49055389559187fe74eddb619746.patch to avoid
  the cpu detection code being compiled with AVX512 enabled

OBS-URL: https://build.opensuse.org/request/show/1006931
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=234
2022-09-29 12:06:16 +00:00
Dominique Leuenberger
c27515044d Accepting request 1003119 from network
OBS-URL: https://build.opensuse.org/request/show/1003119
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=63
2022-09-14 11:44:30 +00:00
3f4674e0ba Accepting request 1003045 from home:AndreasStieger:branches:network
fix tests with GNU grep 3.8 boo#1203239

OBS-URL: https://build.opensuse.org/request/show/1003045
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=232
2022-09-13 07:10:22 +00:00
Dominique Leuenberger
04614e984f Accepting request 993959 from network
- update to 2.17.2:
  - Bug fixes
  - DPDK:
    * OVS validated with DPDK 21.11.1.  It is recommended to use this version
      until further releases.
  - Bug fixes
  - libopenvswitch API change:
    * To fix the Undefined Behavior issue causing the compiler to incorrectly
      optimize important parts of code, container iteration macros (e.g.,
      LIST_FOR_EACH) have been re-implemented in a UB-safe way.
    * Backwards compatibility has mostly been preserved, however the
     user-provided pointer is now set to NULL after the loop (unless it
      exited via "break;")
    * Users of libopenvswitch will need to double-check the use of such loop
       macros before compiling with a new version.
    * Since the change is limited to the definitions within the headers, the
      ABI is not affected.
- refresh 0001-openvswitch-merge-compiler.h-files-into-one-file.patch
  0002-build-Seperated-common-used-headers.patch

OBS-URL: https://build.opensuse.org/request/show/993959
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=62
2022-08-10 15:13:02 +00:00
94ad13f072 - update to 2.17.2:
* OVS validated with DPDK 21.11.1.  It is recommended to use this version
    until further releases.

- update to 2.17.1:
  * To fix the Undefined Behavior issue causing the compiler to incorrectly
    optimize important parts of code, container iteration macros (e.g.,
    LIST_FOR_EACH) have been re-implemented in a UB-safe way.
  * Backwards compatibility has mostly been preserved, however the
    user-provided pointer is now set to NULL after the loop (unless it
    exited via "break;")
  * Users of libopenvswitch will need to double-check the use of such loop
    macros before compiling with a new version.
  * Since the change is limited to the definitions within the headers, the
    ABI is not affected.

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=230
2022-08-09 08:56:40 +00:00
31714c7a75 - update to 2.17.2:
- Bug fixes
  - DPDK:
    * OVS validated with DPDK 21.11.1.  It is recommended to use this version
      until further releases.
  - Bug fixes
  - libopenvswitch API change:
    * To fix the Undefined Behavior issue causing the compiler to incorrectly
      optimize important parts of code, container iteration macros (e.g.,
      LIST_FOR_EACH) have been re-implemented in a UB-safe way.
    * Backwards compatibility has mostly been preserved, however the
     user-provided pointer is now set to NULL after the loop (unless it
      exited via "break;")
    * Users of libopenvswitch will need to double-check the use of such loop
       macros before compiling with a new version.
    * Since the change is limited to the definitions within the headers, the
      ABI is not affected.
- refresh 0001-openvswitch-merge-compiler.h-files-into-one-file.patch
  0002-build-Seperated-common-used-headers.patch

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=229
2022-08-03 11:12:42 +00:00
Dominique Leuenberger
b95e9b26a1 Accepting request 977255 from network
OBS-URL: https://build.opensuse.org/request/show/977255
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=61
2022-05-14 20:57:14 +00:00
920b9cedb9 Accepting request 977074 from home:dimstar:Factory
- Allow dpdk version 21.11.

OBS-URL: https://build.opensuse.org/request/show/977074
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=227
2022-05-14 16:04:31 +00:00
Dominique Leuenberger
71068dc62d Accepting request 972941 from network
OBS-URL: https://build.opensuse.org/request/show/972941
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=60
2022-04-26 18:16:20 +00:00
e6a9ac2ea1 Accepting request 972247 from home:susnux:network
- Python package: Do not use C json parser on 32bit as large numbers
  will overflow.

Fixed ovn on i586

OBS-URL: https://build.opensuse.org/request/show/972247
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=225
2022-04-26 15:37:21 +00:00
Dominique Leuenberger
7d8e92ed50 Accepting request 967690 from network
OBS-URL: https://build.opensuse.org/request/show/967690
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=59
2022-04-11 21:48:08 +00:00
6e6d5f61e6 Accepting request 966656 from home:susnux:network
Fix to submit to factory

OBS-URL: https://build.opensuse.org/request/show/966656
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=223
2022-04-08 07:40:06 +00:00
eec277fb34 Accepting request 965755 from home:susnux:network
Fix installation of files shared with OVN (required for building
OVN without openvswitch sources)

OBS-URL: https://build.opensuse.org/request/show/965755
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=222
2022-03-30 07:41:26 +00:00
Dominique Leuenberger
344bc84e2c Accepting request 961646 from network
OBS-URL: https://build.opensuse.org/request/show/961646
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=58
2022-03-14 18:35:44 +00:00
c30d90f8dc Accepting request 961072 from home:susnux:branches:network
- Fix OVS location for python bindings (dirs.py), boo#1196978

OBS-URL: https://build.opensuse.org/request/show/961072
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=220
2022-03-14 10:53:37 +00:00
Dominique Leuenberger
f63c0409a2 Accepting request 959873 from network
- fix python3 requires (bsc#1196758)

- Added install-ovsdb-tools.patch to install ovsdb tools required
  for building OVN

- Enable multiple python3 flavor subpackages on Tumbleweed / Factory

- Update OVS to version 2.17.0
  * Userspace datapath:
    * Optimized flow lookups for datapath flows with simple match criteria.
    * New per-interface configuration knob 'other_config:tx-steering'.
    * Removed experimental tag for PMD Auto Load Balance.
    * New configuration knob 'other_config:n-offload-threads' to change the
      number of HW offloading threads.
  * DPDK:
    * EAL argument --socket-mem is no longer configured by default upon
      start-up.  If dpdk-socket-mem and dpdk-alloc-mem are not specified,
      DPDK defaults will be used.
    * EAL argument --socket-limit no longer takes on the value of --socket-mem
      by default.  'other_config:dpdk-socket-limit' can be set equal to
      the 'other_config:dpdk-socket-mem' to preserve the legacy memory
      limiting behavior.
    * EAL argument --in-memory is applied by default if supported.
    * Add support for DPDK 21.11.
    * Forbid use of DPDK multiprocess feature.
    * Add support for running threads on cores >= RTE_MAX_LCORE.
  * Python: For SSL support, the use of the pyOpenSSL library has
      been replaced with the native 'ssl' module.
  * OVSDB:
    * Python library for OVSDB clients now also supports faster

OBS-URL: https://build.opensuse.org/request/show/959873
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=57
2022-03-07 16:47:26 +00:00
d8bcd28d64 - fix python3 requires (bsc#1196758)
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=218
2022-03-07 12:05:07 +00:00
2cfeceea7a Accepting request 957920 from home:susnux:branches:network
* Update OVS to version 2.17.0
* Fix CVE-2021-36980 (boo#1188524)
* Enable multiple python3 flavor sub-packages on Tumbleweed / Factory
Requires: https://build.opensuse.org/request/show/957836

(added patch for missing programs for OVN)

OBS-URL: https://build.opensuse.org/request/show/957920
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=217
2022-03-03 21:11:12 +00:00
Dominique Leuenberger
e4014f841b Accepting request 892002 from network
- add openssl(cli) dependency on pki (bsc#1185839)

OBS-URL: https://build.opensuse.org/request/show/892002
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=56
2021-05-10 13:39:20 +00:00
8bc212488a - add openssl(cli) dependency on pki (bsc#1185839)
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=215
2021-05-10 10:28:51 +00:00
Dominique Leuenberger
4e29e964ff Accepting request 889415 from network
OBS-URL: https://build.opensuse.org/request/show/889415
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=55
2021-04-30 22:46:38 +00:00
Jaime Caamaño Ruiz
3ec34180ba Accepting request 889367 from home:jaicaa:branches:network
- Replace deprecated /var/run with /run (bsc#1185176, bsc#1185177).
  * 0001-Replace-deprecated-var-run-with-run.patch

OBS-URL: https://build.opensuse.org/request/show/889367
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=213
2021-04-29 21:02:09 +00:00
Dominique Leuenberger
4551c30a0e Accepting request 871483 from network
OBS-URL: https://build.opensuse.org/request/show/871483
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=54
2021-02-15 22:17:11 +00:00
Jaime Caamaño Ruiz
12d7ab0ed5 Accepting request 871475 from home:jaicaa:branches:network
Forgot to remove the patches *sigh*

OBS-URL: https://build.opensuse.org/request/show/871475
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=211
2021-02-12 15:28:11 +00:00
6a20ec084e Accepting request 871465 from home:jaicaa:branches:network
- Update openvswitch to 2.14.2. For a list of changes, check
  https://github.com/openvswitch/ovs/blob/v2.14.2/NEWS 
  Includes security fix for CVE-2020-27827 (bsc#1181345) and CVE-2020-35498
  (bsc#1181742). 
- Removed patches no longer applying to code base:
  * 0001-rhel-Fix-reload-of-OVS_USER_ID-on-startup.patch
  * 0001-ipsec-Fix-Strongswan-configuration-syntax.patch

OBS-URL: https://build.opensuse.org/request/show/871465
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=210
2021-02-12 14:52:58 +00:00
Dominique Leuenberger
eb3c9164d6 Accepting request 845688 from network
OBS-URL: https://build.opensuse.org/request/show/845688
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=53
2020-11-04 17:26:04 +00:00
Jaime Caamaño Ruiz
81b0a49c4f Accepting request 845687 from home:jaicaa:branches:network
- Replaced `%service_del_postun -n` with `%service_del_postun_without_restart`
  (bsc#1117483).

OBS-URL: https://build.opensuse.org/request/show/845687
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=208
2020-11-03 10:58:57 +00:00
Dominique Leuenberger
f8e0680c4e Accepting request 838587 from network
- Fix wrong default directories for OVS python utilities (bsc#1176273). 
- Add upstream patches to fix openvswitch-ipsec service (bsc#1176273).
  * 0001-ipsec-Fix-Strongswan-configuration-syntax.patch

OBS-URL: https://build.opensuse.org/request/show/838587
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=52
2020-09-29 17:05:38 +00:00
Jaime Caamaño Ruiz
00e85ebde6 Accepting request 838586 from home:jaicaa:branches:network
- Fix wrong default directories for OVS python utilities (bsc#1176273). 
- Add upstream patches to fix openvswitch-ipsec service (bsc#1176273).
  * 0001-ipsec-Fix-Strongswan-configuration-syntax.patch

OBS-URL: https://build.opensuse.org/request/show/838586
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=206
2020-09-29 15:00:41 +00:00
Jaime Caamaño Ruiz
456ae62fc2 Accepting request 838579 from home:jaicaa:branches:network
- Fix wrong default directories for OVS python utilities (bsc#1176273). 
- Add upstream patches to fix openvswitch-ipsec service (bsc#1176273).
  * 0001-Use-strongswan-for-openvswitch-ipsec-service.patch

OBS-URL: https://build.opensuse.org/request/show/838579
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=205
2020-09-29 14:51:25 +00:00
Dominique Leuenberger
45fcd6615a Accepting request 831923 from network
OBS-URL: https://build.opensuse.org/request/show/831923
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=51
2020-09-04 09:13:05 +00:00
14f9851715 Accepting request 831142 from home:jaicaa:branches:network
- Update openvswitch to 2.13.0. For a list of changes, check
  https://github.com/openvswitch/ovs/blob/v2.14.0/NEWS 
- Update OVN to 20.06.2. For a list of changes, check
  https://github.com/ovn-org/ovn/blob/v20.06.2/NEWS

OBS-URL: https://build.opensuse.org/request/show/831142
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=203
2020-09-03 15:34:03 +00:00
Dominique Leuenberger
8b2f684cb6 Accepting request 816321 from network
OBS-URL: https://build.opensuse.org/request/show/816321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=50
2020-06-23 19:05:16 +00:00
933defe9f0 Accepting request 814738 from home:jaicaa:branches:network
- Fix preserving old default OVS_USER_ID for users that removed the
  override at /etc/sysconfig/openvswitch or for users affected by
  fillup bug below (bsc#1172861).
- Add patch to workaround a possible fillup issue that could cause
  existing openvswitch configuration to be unintendedly altered during
  upgrades (bsc#1172929).
  * 0001-Use-double-hash-for-OVS_USER_ID-comment.patch

OBS-URL: https://build.opensuse.org/request/show/814738
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=201
2020-06-22 11:21:05 +00:00
Dominique Leuenberger
6fe83d7e1e Accepting request 811480 from network
OBS-URL: https://build.opensuse.org/request/show/811480
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=49
2020-06-04 15:56:54 +00:00
Jaime Caamaño Ruiz
58308ffb2d Accepting request 811167 from home:jaicaa:branches:network
- add missing provides/obsoletes for python3-openvswitch-test

OBS-URL: https://build.opensuse.org/request/show/811167
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=199
2020-06-04 13:21:04 +00:00
Dominique Leuenberger
2da3307cdc Accepting request 807822 from network
OBS-URL: https://build.opensuse.org/request/show/807822
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=48
2020-06-02 12:43:07 +00:00
e17fe0aa6e Accepting request 807734 from home:jaicaa:branches:network
Fixed patch name typo in openvswitch.changes

OBS-URL: https://build.opensuse.org/request/show/807734
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=197
2020-05-20 17:44:21 +00:00
604489e1db Accepting request 802898 from home:jaicaa:branches:network
- Update openvswitch to 2.13.0. 
  * For a list of changes, check
    https://github.com/openvswitch/ovs/blob/v2.13.0/NEWS 
  * This version drops python2 binding support. Only python3 bindings
    provided going forward.
  * Tool ovs-vlan-bug-workaround is no longer provided.
- OVN was split to its own repo but is still built together with OVS and as
  such from this same source package. OVN initial version is 20.03.
  * For a list of changes, check
    https://github.com/ovn-org/ovn/blob/v20.03.0/NEWS
  * Packages openvswitch-ovn* are renamed to ovn*.
  * OVN now has its own sysconfig and log paths.
- Add OVS patch to be proposed upstream:
  * 0001-rhel-Fix-reload-of-OVS_USER_ID-on-startup.patch
- Patch instead of post-processing configuration files to set running
  credentials (bsc#1157338):
  * 0001-Run-openvswitch-as-openvswitch-openvswitch.patch
  * 0001-Run-ovn-as-openvswitch-openvswitch.patch
- Will no longer change group ownership of /dev/hugepages to 'hugetlbfs'
  (bsc#1140835). System admin should mount hugepages on a path and permissions of
  his choosing for OVS. Add patch:
  * 0001-dont-change-permissions-of-dev-hugepages.patch
- Will no longer install udev rule to change group ownership of vfio devices to
  'hugetlbfs'. Group name does not make much sense in this case and ownership of
  vfio devices should be coordinated system wide or per device.
- Will no longer run under group 'hugetlbfs' on new installs with DPDK enabled.
  OVS will now run under group 'openvswitch' whether compiled with DPDK support
  or not.
- OVS persistent state is now saved on /var/lib/openvswitch instead of
  /etc/openvswitch for new installs.

OBS-URL: https://build.opensuse.org/request/show/802898
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=196
2020-05-20 07:45:43 +00:00
Oliver Kurz
a40273eb7c Accepting request 774221 from network
- add missing sortedcontainers dependency to the python bindings

OBS-URL: https://build.opensuse.org/request/show/774221
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=47
2020-02-14 15:39:18 +00:00
63f13e4642 - add missing sortedcontainers dependency to the python bindings
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=194
2020-02-13 18:06:22 +00:00
Dominique Leuenberger
07c8b1e4c8 Accepting request 744470 from network
OBS-URL: https://build.opensuse.org/request/show/744470
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=46
2019-10-31 21:39:03 +00:00
Tomáš Chvátal
312d116c79 Accepting request 744426 from home:jaicaa:branches:network
- Update openvswitch to 2.12.0. For a list of changes, check
  https://github.com/openvswitch/ovs/blob/master/NEWS 
- Removed patches that are already included upstream:
  * 0001-rhel-secure-openvswitch-useropts.patch
  * 0002-rhel-let-ctl-handle-runtime-directory.patch
- Rebased patches:
  * 0001-Use-strongswan-for-openvswitch-ipsec-service.patch

OBS-URL: https://build.opensuse.org/request/show/744426
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=192
2019-10-31 12:42:47 +00:00
Dominique Leuenberger
29d6bea4f0 Accepting request 721761 from network
OBS-URL: https://build.opensuse.org/request/show/721761
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=45
2019-08-09 14:53:41 +00:00
Tomáš Chvátal
b39f80b04b Accepting request 721733 from home:jaicaa:branches:network
- Fixed missing obsoletes for old python-ovs (bsc#1138948).

OBS-URL: https://build.opensuse.org/request/show/721733
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=190
2019-08-08 12:44:37 +00:00
Dominique Leuenberger
fd3ec53853 Accepting request 715649 from network
OBS-URL: https://build.opensuse.org/request/show/715649
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=44
2019-07-18 13:20:09 +00:00
Tomáš Chvátal
589a62b28a Accepting request 715622 from home:jaicaa:branches:network
- Add unbound as a build requirement to support asynchronous DNS
  resolving for remotes.

OBS-URL: https://build.opensuse.org/request/show/715622
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=188
2019-07-16 10:59:54 +00:00
Dominique Leuenberger
03930f20f9 Accepting request 711567 from network
OBS-URL: https://build.opensuse.org/request/show/711567
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=43
2019-06-24 19:52:55 +00:00
Lars Vogdt
2859e36d2a Accepting request 711127 from home:jaicaa:branches:network
- Update DPDK dependency to support DPDK 18.11.2.

OBS-URL: https://build.opensuse.org/request/show/711127
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=186
2019-06-23 15:29:48 +00:00
Dominique Leuenberger
9a249ea5d9 Accepting request 709321 from network
OBS-URL: https://build.opensuse.org/request/show/709321
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=42
2019-06-12 11:19:18 +00:00
Tomáš Chvátal
21b9f164e3 Accepting request 709214 from home:jaicaa:branches:network
- Add upstream patches to fix bsc#1135884:
  * 0001-rhel-secure-openvswitch-useropts.patch  
  * 0002-rhel-let-ctl-handle-runtime-directory.patch

OBS-URL: https://build.opensuse.org/request/show/709214
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=184
2019-06-12 06:04:55 +00:00
Dominique Leuenberger
7b66c8ce59 Accepting request 703094 from network
OBS-URL: https://build.opensuse.org/request/show/703094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=41
2019-05-15 10:35:32 +00:00
35776c053e Accepting request 701249 from home:jaicaa:branches:network
- Use temporary directory for python build.

OBS-URL: https://build.opensuse.org/request/show/701249
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=182
2019-05-15 06:52:50 +00:00
Dominique Leuenberger
07cfc24886 Accepting request 700964 from network
OBS-URL: https://build.opensuse.org/request/show/700964
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=40
2019-05-06 11:28:11 +00:00
Tomáš Chvátal
cbca071983 Accepting request 699630 from home:jaicaa:branches:network
- Fix problem preventing new installs to run as non root (bsc#1132029),
  including: 
  * Align with upstream so that no running configuration is changed on
    upgrades, specifically to avoid changes on the user Open vSwitch runs
    under.
  * hugetblfs groups is created as system group.
- Add missing opnvswitch-ipsec package and systemd service.
- Add patch to use strongswan instead of libreswan for openvswitch-ipsec.
  libreswan package not available currently.
  * 0001-Use-strongswan-for-openvswitch-ipsec-service.patch
- Add missing ovs-delete-transient-ports systemd service.
- Align installed headers with upstream.
- Fix problem preventing rpm build '--with check'.
- Fix python environment that had directories pointing to /usr/local.
- Version bump to 2.11.1. Some of the changes are:
  * netdev-tc-offloads: Fix probe tc block support
  * rhel: Include all header files in the Fedora's devel package
  * reconnect.c: Don't transition back to ACTIVE when forced to RECONNECT.
  * OVN: Make periodic RAs consistent with RA responder.
  * OVN: Always send prefix option in RAs
  * OVN: Use offset instead of pointer into ofpbuf
  * ofproto: fix the bug of bucket counter is not updated
  * netdev-dpdk: Print netdev name for txq mapping.
  * dpif-netdev-perf: Fix millisecond stats precision with slower TSC.
  * ifupdown.sh: Add missing "--may-exist" option
  * dpif-netdev-perf: Fix double update of perf histograms.
  * dpdk: Stop dumping memzones to stdout.
  * dpctl: Drop parser debug information.
  * netdev-tc-offloads: Properly get the block id on flow del/get
  * netdev-tc-offloads: Improve log message for icmpv6 offload not supported
  * conntrack: Replace structure copy by memcpy().
  * conntrack: Lookup only 'UNNAT conns' in 'nat_clean()'.
  * conntrack: Fix race for NAT cleanup.
  * ovn-nbctl: Don't segfault when ovn-northd doesn't configure dynamic addresses.
  * datapath-windows: Add annotations to find vport functions
  * datapath-windows: Guard vport usage in user.c
  * datapath-windows: Fix potential deadlock in event subscription
  * datapath-windows: Fix race condition during port creation
  * datapath-windows: Fix nbl cleanup when memory allocation fails
  * netdev-linux: Remove ingress qdisc before trying to add shared block
  * netdev-tc-offloads: Remove ingress qdisc on tc init flow api
  * ovsdb-idl: Fix memory leak of idl->remote.
  * travis: Remove 'sudo' configuration.
  * OVN: Add port addresses to IPAM after all ports are joined.
  * dpif-netlink: Free leaked ofpbuf by using ofpbuf_delete
  * OVN: update RA next_announce according to {min, max}_interval
  * rconn: Avoid occasional immediate connection failures.
  * dpdk: Fix case-sensitivity of dpdk-init knob.
  * NEWS: Clean up the 2.11.0 release notes a bit.
  * conntrack: Fix L4 csum for V6 extension hdr pkts.
  * packets: Change return type for 'packet_csum_upperlayer6()'.
  * ovsdb-client: Fix typo.
  * ovn-nbctl: Daemon mode should retry when IDL connection lost.
  * ofctl: break the loop if ovs_pcap_read returns error
  * netlink: added check to prevent netlink attribute overflow

OBS-URL: https://build.opensuse.org/request/show/699630
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=180
2019-05-06 07:43:09 +00:00
Dominique Leuenberger
f2d005f531 Accepting request 688598 from network
OBS-URL: https://build.opensuse.org/request/show/688598
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=39
2019-03-26 14:45:35 +00:00
Tomáš Chvátal
69a69ece5d Accepting request 688296 from home:jaicaa:branches:network
- Disable dpdk on ix86, aligned with dpdk package.

OBS-URL: https://build.opensuse.org/request/show/688296
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=178
2019-03-26 08:14:28 +00:00
Dominique Leuenberger
04785be643 Accepting request 687928 from network
OBS-URL: https://build.opensuse.org/request/show/687928
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=38
2019-03-24 14:01:47 +00:00
f2eead3e38 Accepting request 687385 from home:jengelh:sct
- Combine %service_* calls to reduce generated boilerplate.
- Reduce scriptlets' hard dependency on systemd.

OBS-URL: https://build.opensuse.org/request/show/687385
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=176
2019-03-23 19:27:39 +00:00
Dominique Leuenberger
423dcb6869 Accepting request 681219 from network
OBS-URL: https://build.opensuse.org/request/show/681219
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=37
2019-03-05 11:20:16 +00:00
Tomáš Chvátal
24270361fb Accepting request 680119 from home:jaicaa:branches:network
- Version bump to 2.11.0.
- Revisit DISABLE_RESTART_ON_UPDATE and DISABLE_STOP_ON_REMOVAL options
  (bsc#1117483). DISABLE_STOP_ON_REMOVAL is removed.
  DISABLE_RESTART_ON_UPDATE is replaced by '%service_del_postun -n'.
  $FIRST_ARG is replaced by $1.
- Add extra openvswitch headers (bsc#1125897).
- Obsolete old python[2]-openvswitch-test subpackages (bsc#1124435).

OBS-URL: https://build.opensuse.org/request/show/680119
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=174
2019-03-04 09:02:58 +00:00
Stephan Kulow
ff40f59902 Accepting request 668409 from network
- Version bump to 2.11.0+git20190123.ad83fc9ab. Some of the changes are:
   * Linux datapath:
     - Support for the kernel versions 4.16.x and 4.17.x.
   * OpenFlow:
     - OFPMP_TABLE_FEATURES_REQUEST can now modify table features.
   * ovs-ofctl:
     - "mod-table" command can now change OpenFlow table names.
   * The environment variable OVS_SYSLOG_METHOD, if set, is now used
     as the default syslog method.
   * The environment variable OVS_CTL_TIMEOUT, if set, is now used
     as the default timeout for control utilities.
   * ovn:
     - OVN-SB schema changed: duplicated IP with same Encapsulation type
       is not allowed any more.  Please refer to
       Documentation/intro/install/ovn-upgrades.rst for the instructions
       in case there are problems encountered when upgrading from an earlier
       version.
     - New support for IPSEC encrypted tunnels between hypervisors.
     - ovn-ctl: allow passing user:group ids to the OVN daemons.
     - IPAM/MACAM:
       * add the capability to dynamically assign just L2 addresses
       * add the capability to specify a static ip address and get the L2 one
         allocated dynamically using the following syntax:
           ovn-nbctl lsp-set-addresses <port> "dynamic <IP>"
   * DPDK:
     - Add support for DPDK 18.11
     - Add support for port representors.
   * Userspace datapath:
     - Add option for simple round-robin based Rxq to PMD assignment.
       It can be set with pmd-rxq-assign.
     - Add support for Auto load balancing of PMDs (experimental)
     - Added new per-port configurable option to manage EMC:
       'other_config:emc-enable'.
   * Add 'symmetric_l3' hash function.
   * OVS now honors 'updelay' and 'downdelay' for bonds with LACP configured.
   * ovs-vswitchd:
     - New configuration option "offload-rebalance", that enables dynamic
       rebalancing of offloaded flows.
   * The environment variable OVS_RESOLV_CONF, if set, is now used
     as the DNS server configuration file.
   * RHEL packaging:
     - OVN packages are split from OVS packages. A new spec
       file - ovn-fedora.spec.in is added to generate OVN packages.
- Remove upstreamed patch:
  * 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch
- Remove DISABLE_RESTART_ON_UPDATE and DISABLE_STOP_ON_REMOVAL options (bsc#1117483).

OBS-URL: https://build.opensuse.org/request/show/668409
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=36
2019-02-04 13:24:11 +00:00
Jaime Caamaño Ruiz
3f0fdf5120 Accepting request 668408 from home:jaicaa:branches:network
- Fixed package name libopenvswitch-2_10-0 to libopenvswitch-2_11-0

OBS-URL: https://build.opensuse.org/request/show/668408
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=172
2019-01-24 17:14:57 +00:00
Jaime Caamaño Ruiz
2c5893f4ce Accepting request 668391 from home:jaicaa:branches:network
- Version bump to 2.11.0+git20190123.ad83fc9ab. Some of the changes are:
   * Linux datapath:
     - Support for the kernel versions 4.16.x and 4.17.x.
   * OpenFlow:
     - OFPMP_TABLE_FEATURES_REQUEST can now modify table features.
   * ovs-ofctl:
     - "mod-table" command can now change OpenFlow table names.
   * The environment variable OVS_SYSLOG_METHOD, if set, is now used
     as the default syslog method.
   * The environment variable OVS_CTL_TIMEOUT, if set, is now used
     as the default timeout for control utilities.
   * ovn:
     - OVN-SB schema changed: duplicated IP with same Encapsulation type
       is not allowed any more.  Please refer to
       Documentation/intro/install/ovn-upgrades.rst for the instructions
       in case there are problems encountered when upgrading from an earlier
       version.
     - New support for IPSEC encrypted tunnels between hypervisors.
     - ovn-ctl: allow passing user:group ids to the OVN daemons.
     - IPAM/MACAM:
       * add the capability to dynamically assign just L2 addresses
       * add the capability to specify a static ip address and get the L2 one
         allocated dynamically using the following syntax:
           ovn-nbctl lsp-set-addresses <port> "dynamic <IP>"
   * DPDK:
     - Add support for DPDK 18.11
     - Add support for port representors.
   * Userspace datapath:
     - Add option for simple round-robin based Rxq to PMD assignment.
       It can be set with pmd-rxq-assign.
     - Add support for Auto load balancing of PMDs (experimental)
     - Added new per-port configurable option to manage EMC:
       'other_config:emc-enable'.
   * Add 'symmetric_l3' hash function.
   * OVS now honors 'updelay' and 'downdelay' for bonds with LACP configured.
   * ovs-vswitchd:
     - New configuration option "offload-rebalance", that enables dynamic
       rebalancing of offloaded flows.
   * The environment variable OVS_RESOLV_CONF, if set, is now used
     as the DNS server configuration file.
   * RHEL packaging:
     - OVN packages are split from OVS packages. A new spec
       file - ovn-fedora.spec.in is added to generate OVN packages.
- Remove upstreamed patch:
  * 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch
- Remove DISABLE_RESTART_ON_UPDATE and DISABLE_STOP_ON_REMOVAL options (bsc#1117483).

OBS-URL: https://build.opensuse.org/request/show/668391
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=171
2019-01-24 16:17:24 +00:00
Dominique Leuenberger
ba148e0bef Accepting request 667291 from network
OBS-URL: https://build.opensuse.org/request/show/667291
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=35
2019-01-21 10:01:28 +00:00
Tomáš Chvátal
84ac2d5390 Accepting request 667289 from home:tbechtold:branches:network
- python2-ovs provides now also python-ovs which is the standard
  for singlespec python packages.

OBS-URL: https://build.opensuse.org/request/show/667289
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=169
2019-01-20 09:15:13 +00:00
Dominique Leuenberger
68a9b12bb5 Accepting request 652024 from network
OBS-URL: https://build.opensuse.org/request/show/652024
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=34
2018-11-27 09:44:17 +00:00
Tomáš Chvátal
9d0b2cf8f2 Accepting request 651988 from home:jaicaa:branches:network
- Backport upstream fix for python json parser memory leak (bsc#1116437)
 * 0001-python-c-ext-Fix-memory-leak-in-Parser_finish.patch

OBS-URL: https://build.opensuse.org/request/show/651988
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=167
2018-11-26 14:07:00 +00:00
Dominique Leuenberger
4268ac8100 Accepting request 648463 from network
OBS-URL: https://build.opensuse.org/request/show/648463
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=33
2018-11-13 16:00:45 +00:00
7e3ebe5466 Accepting request 648412 from home:markoschandras:network
- Improve python packaging (bsc#1115085)
  * Rename python*-openvswitch subpackages to python*-ovs to follow
    the openSUSE policy that packages should be named after the modules
    they install.
  * Build the JSON C bindings and as a result the 'noarch' BuildArch
    needs to be removed.
  * Drop the python*-openvswitch-test packages and merge them with the
    test subpackage
  * Build the python bindings using setuptools
  * Include the egg-info package.
  * Use libopenvswitch as dependency to python bindings

OBS-URL: https://build.opensuse.org/request/show/648412
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=165
2018-11-12 12:41:04 +00:00
Dominique Leuenberger
968718bb5e Accepting request 644195 from network
OBS-URL: https://build.opensuse.org/request/show/644195
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=32
2018-10-25 07:11:24 +00:00
Tomáš Chvátal
6379c55336 Accepting request 643691 from home:markoschandras:network
- Version bump to 2.10.1. Some of the changes are:
  * dpif-netdev.at: Add missing backslash.
  * ofproto-dpif-xlate: Avoid deadlock on multicast snooping recursion.
  * dpif-netdev-perf: Print SMC statistics.
  * dpif-netdev-unixctl: Change 'masked' to 'megaflow'.
  * ovn-controller: Support processing DHCPv6 information request message type
  * ovn-ctl: Fix the wrong pidfile argument passed to ovsdb-servers
  * ovndb-servers.ocf: Add ssl support for managing OVN DB resources with pacemaker using LB VIP.
  * ovn-ctl: Allow passing ssl certs when starting OVN DBs in ssl mode.
  * expr: Disallow < <= >= > comparisons against empty value set.
  * expr: Set a limit on the depth of nested parentheses
  * ovn: Fix IPv6 DAD failure for container ports
  * dpif-netdev: Add vlan to mask for flow_put operation.
  * ovs-save: Parse geneve tlv map correctly.
  * extend-table: Fix a bug that iterates wrong table
  * odp-util: Fix a use-after-free bug.
  * ofp-packet: Fix NXT_RESUME with geneve tunnel metadata
  * dpif-netlink: Fix null pointer.
  * ofproto-dpif-xlate.c: Fix uninitialized variable warning.
  * dpif: Remove support for multiple queues per port.
  * dpif-netlink: don't allocate per thread netlink sockets
  * ovsdb-types: Refactor structs so as to comply with C++ standard
  * bfd: Make the tp_dst masking megaflow-friendly.
  * ovsdb-data: Improve grammar in error message.
  * condition: Reject <, <=, >=, > with optional scalar against empty set.
  * condition: Fix ==, !=, includes, excludes on optional scalars.
  * netdev: Properly clear 'details' when iterating in NETDEV_QOS_FOR_EACH.
  * lex: Fix buffer overrun parsing overlong hexadecimal constants.
  * sflow: Set agent address properly based on collector address.
  * ovsdb-client: Fix a bug that uses wrong index

OBS-URL: https://build.opensuse.org/request/show/643691
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=163
2018-10-24 08:39:34 +00:00
Dominique Leuenberger
a2bf8b33c8 Accepting request 638873 from network
OBS-URL: https://build.opensuse.org/request/show/638873
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=31
2018-10-01 06:18:23 +00:00
ce37cd1963 Accepting request 638823 from home:markoschandras:network
- Use correct user for logrotate script (bsc#1104049, b096fa42ddc2)

OBS-URL: https://build.opensuse.org/request/show/638823
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=161
2018-09-28 00:18:04 +00:00
Dominique Leuenberger
68130de89d Accepting request 637897 from network
OBS-URL: https://build.opensuse.org/request/show/637897
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=30
2018-09-26 12:23:05 +00:00
Markos Chandras
fd6adfc343 Accepting request 637655 from home:markoschandras:network
- Fix package name for shared library.

OBS-URL: https://build.opensuse.org/request/show/637655
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=159
2018-09-25 09:30:20 +00:00
Dominique Leuenberger
b6d8a68f1e Accepting request 632456 from network
OBS-URL: https://build.opensuse.org/request/show/632456
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=29
2018-09-04 20:55:41 +00:00
Markos Chandras
ff8ab70d04 create missing /var/run/openvswitch directory which is
needed when building the kernel module

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=157
2018-09-03 08:00:26 +00:00
15fd25262d Accepting request 631965 from home:markoschandras:network
- Version bump to 2.10.0. Some of the changes are:
  * ovs-vswitchd and utilities now support DNS names in OpenFlow and
    OVSDB remotes.
  * ovs-vswitchd:
    - New options --l7 and --l7-len to "ofproto/trace" command.
    - Previous versions gave OpenFlow tables default names of the form
      "table#".  These are not helpful names for the purpose of accepting
      and displaying table names, so now tables by default have no names.
    - The "null" interface type, deprecated since 2013, has been removed.
    - Add minimum network namespace support for Linux.
    - New command "lacp/show-stats"
  * ovs-ofctl:
    - ovs-ofctl now accepts and display table names in place of numbers.  By
      default it always accepts names and in interactive use it displays them;
      use --names or --no-names to override.  See ovs-ofctl(8) for details.
  * ovs-vsctl: New commands "add-bond-iface" and "del-bond-iface".
  * ovs-dpctl:
    - New commands "ct-set-limits", "ct-del-limits", and "ct-get-limits".
  * OpenFlow:
    - OFPT_ROLE_STATUS is now available in OpenFlow 1.3.
    - OpenFlow 1.5 extensible statistics (OXS) now implemented.
    - New OpenFlow 1.0 extensions for group support.
    - Default selection method for select groups is now dp_hash with improved
      accuracy.
  * ovn:
    - Implemented icmp4/icmp6/tcp_reset actions in order to drop the packet
      and reply with a RST for TCP or ICMPv4/ICMPv6 unreachable message for
      other IPv4/IPv6-based protocols whenever a reject ACL rule is hit.
    - ACL match conditions can now match on Port_Groups as well as address
      sets that are automatically generated by Port_Groups.  ACLs can be

OBS-URL: https://build.opensuse.org/request/show/631965
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=156
2018-08-31 08:06:11 +00:00
Dominique Leuenberger
35f4fa890b Accepting request 631184 from network
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/631184
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=28
2018-08-27 10:58:02 +00:00
Markos Chandras
1f58457d89 Accepting request 629507 from home:markoschandras:network
- Fix conditional to only include vfio udev rules when building with
  DPDK support
- Exclude %_docdir from main package which seems to be packaged by
  default on older openSUSE releases.

OBS-URL: https://build.opensuse.org/request/show/629507
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=154
2018-08-16 09:03:36 +00:00
Yuchen Lin
35279b000b Accepting request 615104 from network
OBS-URL: https://build.opensuse.org/request/show/615104
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=27
2018-06-13 13:37:00 +00:00
OBS User mrdocs
763b818f98 Accepting request 614885 from home:markoschandras:network
- Restrict DPDK version to 18.02 since Open vSwitch 2.9 is not going
  to work with any newer releases.

OBS-URL: https://build.opensuse.org/request/show/614885
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=152
2018-06-08 01:34:52 +00:00
Dominique Leuenberger
17e41490fe Accepting request 613094 from network
OBS-URL: https://build.opensuse.org/request/show/613094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=26
2018-06-02 10:10:47 +00:00
Markos Chandras
ddcd77336e Accepting request 613092 from home:markoschandras:network
drop sle_version macros. suse_version is enough

OBS-URL: https://build.opensuse.org/request/show/613092
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=150
2018-05-30 15:01:52 +00:00
OBS User mrdocs
4413ab8eb8 Accepting request 612850 from home:markoschandras:network
- Version bump to 2.9.2. Some of the changes are:
  * OVSDB has new, experimental support for database clustering:
    - New high-level documentation in ovsdb(7).
    - New file format documentation for developers in ovsdb(5).
    - Protocol documentation moved from ovsdb-server(1) to ovsdb-server(7).
    - ovsdb-server now supports online schema conversion via
      "ovsdb-client convert".
    - ovsdb-server now always hosts a built-in database named _Server. See
      ovsdb-server(5) for more details.
    - ovsdb-client: New "get-schema-cksum", "query", "backup", "restore",
      and "wait" commands.  New --timeout option.
    - ovsdb-tool: New "create-cluster", "join-cluster", "db-cid", "db-sid",
      "db-local-address", "db-is-clustered", "db-is-standalone", "db-name",
      "schema-name", "compare-versions", and "check-cluster" commands.
    - ovsdb-server: New ovs-appctl commands for managing clusters.
    - ovs-sandbox: New support for clustered databases.
   * OVN:
     - ovn-sbctl, ovn-nbctl: New options --leader-only, --no-leader-only.
   * Bug fixes
- Use openvswitch user/group for the log directory (3f556d66edb9)

- Add support for RedHat distributions. All SUSE macros are now
  conditional and the spec file has been adapted based on the upstream
  one (fate#324537)
- spec-cleaner fixes

OBS-URL: https://build.opensuse.org/request/show/612850
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=149
2018-05-30 01:33:36 +00:00
Dominique Leuenberger
3d7e87607b Accepting request 604029 from network
OBS-URL: https://build.opensuse.org/request/show/604029
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=25
2018-05-06 13:02:01 +00:00
Ismail Dönmez
4911dbda67 Accepting request 603963 from home:markoschandras:network
- Move openvswitch user/group creation to %pre scriptlet. The default
  ownership of the configuration files expects the user and group to
  be available as early as possible (bsc#1091408)
- spec-cleaner fixes.

OBS-URL: https://build.opensuse.org/request/show/603963
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=147
2018-05-04 12:45:44 +00:00
Dominique Leuenberger
c084e7f6a9 Accepting request 600167 from network
OBS-URL: https://build.opensuse.org/request/show/600167
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=24
2018-04-24 13:34:31 +00:00
OBS User mrdocs
f14d37b592 Accepting request 599992 from home:markoschandras:network
- Preserve 'enable' status of openvswitch.service file when upgrading
  from <SLE-12-SP3. The service file has been moved from the old
  openvswitch-switch subpackage to the main openvswitch one so we
  need to handle this migration step in %posttrans (bsc#1089476)
- Move DISABLE_STOP_ON_REMOVAL=yes to %preun. This variable is only
  checked in %service_del_preun macro

OBS-URL: https://build.opensuse.org/request/show/599992
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=145
2018-04-24 00:25:50 +00:00
Dominique Leuenberger
1d727eac19 Accepting request 590601 from network
OBS-URL: https://build.opensuse.org/request/show/590601
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=23
2018-03-24 15:16:30 +00:00
4929f663f2 Accepting request 590075 from home:markoschandras:network
- Fix file permissions in /etc/openvswitch for upgrades (951d79e638ec)

OBS-URL: https://build.opensuse.org/request/show/590075
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=143
2018-03-23 09:28:45 +00:00
3bfbfddc06 - set rundir to %_rundir
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=142
2018-03-21 21:03:38 +00:00
Dominique Leuenberger
e2b2a82fe3 Accepting request 583259 from network
- Version bump to 2.9.0. Some of the changes are:
  * NSH implementation now conforms to latest draft (draft-ietf-sfc-nsh-28).
  * OVSDB:
    - ovsdb-client: New "get-schema-cksum" and "query" commands.
    - ovsdb-client: New "backup" and "restore" commands.
    - ovsdb-client: New --timeout option.
    - ovsdb-tool: New "db-name" and "schema-name" commands.
  * ovs-vsctl and other commands that display data in tables now support a
     --max-column-width option to limit column width.
  * No longer slow-path traffic that sends to a controller.  Applications,
    such as OVN ACL logging, want to send a copy of a packet to a
    controller while leaving the actual packet forwarding in the datapath.
  * OVN:
    - The "requested-chassis" option for a logical switch port now accepts a
      chassis "hostname" in addition to a chassis "name".
    - IPv6
      * Added support to send IPv6 Router Advertisement packets in response to
        the IPv6 Router Solicitation packets from  the VIF ports.
      * Added support to generate Neighbor Solicitation packets using the OVN
        action 'nd_ns' to resolve unknown next hop MAC addresses for the
        IPv6 packets.
    - ovn-ctl: New commands run_nb_ovsdb and run_sb_ovsdb.
  * OpenFlow:
    - ct_clear action is now backed by kernel datapath. Support is probed for
      when OVS starts.
   - ovs-dpctl and related ovs-appctl commands:
     * "flush-conntrack" now accept a 5-tuple to delete a specific
       connection tracking entry.
     * New "ct-set-maxconns", "ct-get-maxconns", and "ct-get-nconns" commands
       for userspace datapath.
   - No longer send packets to the Linux TAP device if it's DOWN unless it is
     in another networking namespace.
  * DPDK:
    - Add support for DPDK v17.11
    - Add support for vHost IOMMU
    - New debug appctl command 'netdev-dpdk/get-mempool-info'.
      * Custom statistics:
        - DPDK physical ports now return custom set of "dropped", "error" and
          "management" statistics.
        - ovs-ofctl dump-ports command now prints new of set custom statistics
          if available (for OpenFlow 1.4+).
    - New appctl command 'dpif-netdev/pmd-rxq-rebalance' to rebalance rxq to
      pmd assignments.
    - Add rxq utilization of pmd to appctl 'dpif-netdev/pmd-rxq-show'.
    - Add support for vHost dequeue zero copy (experimental)
  * Userspace datapath:
    - Output packet batching support.
  * vswitchd:
    - Datapath IDs may now be specified as 0x1 (etc.) instead of 16 digits.
    - Configuring a controller, or unconfiguring all controllers, now deletes
      all groups and meters (as well as all flows).
   - New --enable-sparse configure option enables "sparse" checking by default.
   - Added additional information to vhost-user status.
- For the complete list of changes, please refer to
  http://openvswitch.org/releases/NEWS-2.9.0
- Fix incorrect python3 dependencies for python2 subpackages
- Drop upstream patches for DPDK 17.11 support. They have been merged upstream
  * 0001-netdev-dpdk-replace-uint8_t-with-dpdk_port_t.patch
  * 0002-netdev-dpdk-DPDK-v17.11-upgrade.patch
  * 0003-netdev-dpdk-vHost-IOMMU-support.patch
- Get rid of the old openvswitch DPDK migration steps everybody should have
  migrated from <2.6 to latest releases by now.
  * 0001-utilities-Add-script-to-support-DPDK-option-migratio.patch

OBS-URL: https://build.opensuse.org/request/show/583259
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=22
2018-03-07 09:37:30 +00:00
Markos Chandras
5adc68e0f1 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=140 2018-03-06 10:05:38 +00:00
c0316badd8 Accepting request 582588 from home:markoschandras:network
- Version bump to 2.9.0. Some of the changes are:
  * NSH implementation now conforms to latest draft (draft-ietf-sfc-nsh-28).
  * OVSDB:
    - ovsdb-client: New "get-schema-cksum" and "query" commands.
    - ovsdb-client: New "backup" and "restore" commands.
    - ovsdb-client: New --timeout option.
    - ovsdb-tool: New "db-name" and "schema-name" commands.
  * ovs-vsctl and other commands that display data in tables now support a
     --max-column-width option to limit column width.
  * No longer slow-path traffic that sends to a controller.  Applications,
    such as OVN ACL logging, want to send a copy of a packet to a
    controller while leaving the actual packet forwarding in the datapath.
  * OVN:
    - The "requested-chassis" option for a logical switch port now accepts a
      chassis "hostname" in addition to a chassis "name".
    - IPv6
      * Added support to send IPv6 Router Advertisement packets in response to
        the IPv6 Router Solicitation packets from  the VIF ports.
      * Added support to generate Neighbor Solicitation packets using the OVN
        action 'nd_ns' to resolve unknown next hop MAC addresses for the
        IPv6 packets.
    - ovn-ctl: New commands run_nb_ovsdb and run_sb_ovsdb.
  * OpenFlow:
    - ct_clear action is now backed by kernel datapath. Support is probed for
      when OVS starts.
   - ovs-dpctl and related ovs-appctl commands:
     * "flush-conntrack" now accept a 5-tuple to delete a specific
       connection tracking entry.
     * New "ct-set-maxconns", "ct-get-maxconns", and "ct-get-nconns" commands
       for userspace datapath.

OBS-URL: https://build.opensuse.org/request/show/582588
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=139
2018-03-06 09:30:45 +00:00
Dominique Leuenberger
d1d5b69acb Accepting request 580249 from network
Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/580249
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=21
2018-02-26 22:26:55 +00:00
Markos Chandras
6d5d3ab04a Add missing bugzilla reference
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=137
2018-02-19 13:19:20 +00:00
Dominique Leuenberger
4c0eb04b7a Accepting request 563300 from network
- Add upstream patches to support DPDK 17.11 (fate#322609)
  * 0001-netdev-dpdk-replace-uint8_t-with-dpdk_port_t.patch
  * 0002-netdev-dpdk-DPDK-v17.11-upgrade.patch
  * 0003-netdev-dpdk-vHost-IOMMU-support.patch
- Python fixes and improvements
  * Build Python3 subpackages for Open vSwitch python bindings
  * Switch build architecture to 'noarch' for python bindings.
  * Fix license for python subpackages
  * Build and ship python bytecode files.
- Do not mark files in /usr/share/* as configuration files
- Replace version macro with actual version number of Obsoletes tags.
  The DPDK packages have been merged with the regular OvS ones in the
  2.7.0 release so make it more explicit which ones we are obsoleting.
- spec-cleaner fixes

OBS-URL: https://build.opensuse.org/request/show/563300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=20
2018-01-13 20:46:42 +00:00
Markos Chandras
daebd2c67f fix python-Twisted package names
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=135
2018-01-10 12:52:33 +00:00
93fd217d23 Accepting request 563105 from home:markoschandras:branches:network
- Add upstream patches to support DPDK 17.11 (fate#322609)
  * 0001-netdev-dpdk-replace-uint8_t-with-dpdk_port_t.patch
  * 0002-netdev-dpdk-DPDK-v17.11-upgrade.patch
  * 0003-netdev-dpdk-vHost-IOMMU-support.patch

OBS-URL: https://build.opensuse.org/request/show/563105
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=134
2018-01-10 09:52:13 +00:00
f850461846 Accepting request 560283 from home:markoschandras:branches:network
- Python fixes and improvements
  * Build Python3 subpackages for Open vSwitch python bindings
  * Switch build architecture to 'noarch' for python bindings.
  * Fix license for python subpackages
  * Build and ship python bytecode files.
- Do not mark files in /usr/share/* as configuration files
- Replace version macro with actual version number of Obsoletes tags.
  The DPDK packages have been merged with the regular OvS ones in the
  2.7.0 release so make it more explicit which ones we are obsoleting.
- spec-cleaner fixes

OBS-URL: https://build.opensuse.org/request/show/560283
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=133
2018-01-09 13:37:23 +00:00
Dominique Leuenberger
cc5a435874 Accepting request 554834 from network
OBS-URL: https://build.opensuse.org/request/show/554834
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=19
2017-12-14 09:54:41 +00:00
8283839e08 Accepting request 554830 from home:markoschandras:network
- Fix documentation installation. It's best to install everything to
  %buildroot and then remove the files we don't need instead of the
  other way around since some files need to be present in the source
  directory for the testsuite to run.

OBS-URL: https://build.opensuse.org/request/show/554830
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=131
2017-12-06 14:50:41 +00:00
Dominique Leuenberger
cb220d6f5e Accepting request 545123 from network
OBS-URL: https://build.opensuse.org/request/show/545123
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=18
2017-11-25 07:43:35 +00:00
5c4aa62ebd Accepting request 544668 from home:RBrownSUSE:branches:network
Replace references to /var/adm/fillup-templates with new %_fillupdir macro (boo#1069468)

OBS-URL: https://build.opensuse.org/request/show/544668
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=129
2017-11-24 10:22:26 +00:00
Dominique Leuenberger
beb740b3bc Accepting request 530557 from network
1

OBS-URL: https://build.opensuse.org/request/show/530557
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=17
2017-10-03 21:18:07 +00:00
Markos Chandras
5b92b0a2e2 Accepting request 530555 from home:markoschandras:network
* ofp-util: Fix memory leaks when parsing OF1.5 group properties (cve-2017-14970) (bsc#1061310)
  * ofp-util: Fix memory leaks on error cases in ofputil_decode_group_mod() (cve-2017-14970) (bsc#1061310)

OBS-URL: https://build.opensuse.org/request/show/530555
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=127
2017-10-02 20:36:49 +00:00
Markos Chandras
50945d8e7f Accepting request 530019 from home:markoschandras:network
- Version bump to 2.8.1. Some of the changes are:
  * connmgr: Fix violation of flow monitoring protocol description.
  * ovn/actions: Improve OVN load-balancing performance.
  * dpif-netdev: Fix a zero-rate bug for meter
  * conntrack: Tighten handling of alg reverse conns.
  * conntrack: Add function ct_print_conn_info().
  * conntrack: Create nat_conn_keys_insert().
  * netdev-dpdk: reset packet_type for reused dp_packets.
  * ofp-util: Fix memory leaks when parsing OF1.5 group properties.
  * ofp-util: Fix memory leaks on error cases in ofputil_decode_group_mod().
  * ofp-util: Fix buffer overread in ofputil_decode_bundle_add().
  * ofproto: Include patch ports in mtu overriden check
  * netdev-tc-offloads: Fix vxlan tunnel offloading
  * bridge: Fix controller status update to passive connections
  * lib/odp: Fix handling of set masked action in parse_odp_action
  * tests: Fix sparse error on test-ovn.c
  * dpif-netdev: Fix per packet cycles statistics.
  * netdev-dpdk: update vhost user client port status.
  * ovsdb-server.1: Fix mention of wrong option.

OBS-URL: https://build.opensuse.org/request/show/530019
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=126
2017-10-01 09:05:27 +00:00
Dominique Leuenberger
316e2ea6c7 Accepting request 522131 from network
1

OBS-URL: https://build.opensuse.org/request/show/522131
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=16
2017-09-13 20:29:53 +00:00
5d00e9df71 Accepting request 521652 from home:markoschandras:network
- Version bump to 2.8.0 (fate#323334, bsc#1050700). Some of the changes are:
  * ovs-ofctl can now accept and display port names in place of numbers.  By
    default it always accepts names and in interactive use it displays them;
    use --names or --no-names to override.  See ovs-ofctl(8) for details.
  * "ovs-ofctl dump-flows" now accepts --no-stats to omit flow statistics.
  * New ovs-dpctl command "ct-stats-show" to show connection tracking stats.
  * DPDK log messages redirected to OVS logging subsystem.
    Log level can be changed in a usual OVS way using
    'ovs-appctl vlog' commands for 'dpdk' module. Lower bound
    still can be configured via extra arguments for DPDK EAL.
  * dpdkvhostuser ports are marked as deprecated.  They will be removed
    in an upcoming release.
  * Support for DPDK v17.05.1.
  * New support for multiple VLANs (802.1ad or "QinQ"), including a new
    "dot1q-tunnel" port VLAN mode.
  * Added NAT support for userspace datapath.
  * Added FTP and TFTP support with NAT for userspace datapath.
  * Experimental NSH (Network Service Header) support in userspace datapath.
  * Tracing with ofproto/trace now traces through recirculation.
  * New support for role-based access control (see ovsdb-server(1)).
  * New commands 'stp/show' and 'rstp/show' (see ovs-vswitchd(8)).
  * All features required by OpenFlow 1.4 are now implemented, so
    ovs-vswitchd now enables OpenFlow 1.4 by default (in addition to
    OpenFlow 1.0 to 1.3).
  * Increased support for OpenFlow 1.6 (draft).
  * Bundles now support hashing by just nw_src or nw_dst.
  * The "learn" action now supports a "limit" option (see ovs-ofctl(8)).
  * The port status bit OFPPS_LIVE now reflects link aliveness.
  * OpenFlow 1.5 packet-out is now supported.
  * Support for OpenFlow 1.5 field packet_type and packet-type-aware

OBS-URL: https://build.opensuse.org/request/show/521652
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=124
2017-09-07 18:36:43 +00:00
Dominique Leuenberger
603faa4fc2 Accepting request 512973 from network
1

OBS-URL: https://build.opensuse.org/request/show/512973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=15
2017-08-24 16:42:36 +00:00
Markos Chandras
f8303455d3 Accepting request 516264 from home:olh:branches:network
- Update filename in /var/adm/update-messages to match documentation,
  and build-compare pattern

OBS-URL: https://build.opensuse.org/request/show/516264
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=122
2017-08-24 05:49:44 +00:00
OBS User mrdocs
d1d940d22b Accepting request 512793 from home:markoschandras:network
- Do not restart the ovs-vswitchd and ovsdb-server services
  on package updates (bsc#1002734)
- Do not restart the ovs-vswitchd, ovsdb-server and openvswitch
  services on package removals. This facilitates potential future
  package moves but also preserves connectivity when the package is
  removed (bsc#1050896)

OBS-URL: https://build.opensuse.org/request/show/512793
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=121
2017-07-29 02:26:08 +00:00
c3ae8625c4 Accepting request 512256 from home:markoschandras:network
another library that is missing from the libopenvswitch subpackage

OBS-URL: https://build.opensuse.org/request/show/512256
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=120
2017-07-24 19:07:04 +00:00
30ffff0d6e Accepting request 511377 from home:markoschandras:network
- Version bump to 2.7.2. Some of the changes are:
  * Revert "netdev: Fix netdev_open() to adhere to class type if given"
  * connmgr: Fix crash when in_band_create() fails.
  * db-ctl-base: Fix reference-following feature in get_row_by_id().
  * netdev: Fix crash when ifa_netmask is null.
  * ovn-controller: fix use-after-free in physical_run()
  * ovn-controller: avoid crash when vswitchd connection is lost
  * ovsdb-types: Fix memory leak on error path.
  * vswitchd: Fix IFACE_STAT name error in iface_refresh_stats
  * netdev: Fix crash when interface option is changed to invalid value.
  * ofp-util: fix memory leak in ofputil_pull_ofp11_buckets
  * configure: Fix check for rte_config.h to handle cross-compilation.
  * ofp-util: Check length of buckets in ofputil_pull_ofp15_group_mod() (cve-2017-9265) (bsc#1041447)
  * ofp-print: Don't abort on unknown reason in role status message (cve-2017-9263) (bsc#1041470)

OBS-URL: https://build.opensuse.org/request/show/511377
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=119
2017-07-19 12:07:26 +00:00
9998ddd0de Accepting request 509657 from home:markoschandras:network
Addressing comment from https://build.opensuse.org/request/show/509036

No need for a new changes entry

OBS-URL: https://build.opensuse.org/request/show/509657
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=118
2017-07-12 09:19:27 +00:00
OBS User mrdocs
dd4d5b470e Accepting request 508974 from home:jengelh:branches:network
- Implement shared library packaging guideline.

OBS-URL: https://build.opensuse.org/request/show/508974
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=117
2017-07-09 18:23:59 +00:00
OBS User mrdocs
aae33caebc Accepting request 508719 from home:markoschandras:network
- Version bump to 2.7.1. Some of the changes are:
  * Add --cleanup option to command 'ovs-appctl exit' (see ovs-vswitchd(8)).
  * libopenvswitch-2 was renamed to libopenvswitch-2.7. Applications built
    against libopenvswitch must be recompiled against the newer library.
  * ovs-ctl: allow passing user:group to daemons
  * ofproto/bond: Fix bond reconfiguration race condition
  * ofproto/bond: Fix bond post recirc rule leak.
  * ofproto/bond: fix interal flow leak of tcp-balance bond
  * mcast-snooping: Avoid segfault for vswitchd.
  * tun-metadata: Fix memory leak in tun_metadata_table_mod().
  * netdev-dpdk: Fix mempool segfault.
  * mirror: Allow concurrent lookups.
  * ofp-util: Fix buffer overread in ofputil_pull_queue_get_config_reply10() (bsc#1040543)
  * ovsdb: Check null before deref in ovsdb_monitor_table_condition_update().
  * For the complete list of changes, please see:
    - https://github.com/openvswitch/ovs/compare/v2.7.0...v2.7.1
- Remove upstreamed patch
  * 0001-ofp-util-Fix-buffer-overread-in-ofputil_pull_queue_g.patch
- OVN services are no longer restarted automatically after upgrade (44dd4cc49c8a)

OBS-URL: https://build.opensuse.org/request/show/508719
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=116
2017-07-07 21:20:09 +00:00
Dominique Leuenberger
023bef9fe3 Accepting request 501158 from network
1

OBS-URL: https://build.opensuse.org/request/show/501158
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=14
2017-06-05 16:51:00 +00:00
Markos Chandras
2a65fe0475 Accepting request 501114 from home:markoschandras:network
- Install firewalld OVN files with chmod 644 instead of 755 (4a54614120ea)
- Use python-six instead of python2-six dependency to cover distributions
  which are not using the python-singlespec packaging specification yet (bsc#1041110)
- Add upstream patch to fix a buffer overread vulnerability (cve-2017-9214) (bsc#1040543)
  * 0001-ofp-util-Fix-buffer-overread-in-ofputil_pull_queue_g.patch

OBS-URL: https://build.opensuse.org/request/show/501114
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=114
2017-06-05 12:31:26 +00:00
Dominique Leuenberger
a66d2d7c86 Accepting request 479156 from network
- Version bump to 2.7.0 (fate#321541). Some of the changes are:
  * Utilities and daemons that support SSL now allow protocols and
    ciphers to be configured with --ssl-protocols and --ssl-ciphers.
  * OVN:
    - QoS is now implemented via egress shaping rather than ingress policing.
    - DSCP marking is now supported, via the new northbound QoS table.
    - IPAM now supports fixed MAC addresses.
    - Support for source IP address based routing.
    - ovn-trace:
      * New --ovs option to also print OpenFlow flows.
      * put_dhcp_opts and put_dhcp_optsv6 actions may now be traced.
    - Support for managing SSL and remote connection configuration in
      northbound and southbound databases.
  * Fixed regression in table stats maintenance introduced in OVS
    2.3.0, wherein the number of OpenFlow table hits and misses was
    not accurate.
  * OpenFlow:
    - OFPT_PACKET_OUT messages are now supported in bundles.
    - A new "selection_method=dp_hash" type for OpenFlow select group
      bucket selection that uses the datapath computed 5-tuple hash
      without making datapath flows match the 5-tuple fields, which
      is useful for more efficient load balancing, for example.  This
      uses the Netronome extension to OpenFlow 1.5+ that allows
      control over the OpenFlow select groups selection method.  See
      "selection_method" and related options in ovs-ofctl(8) for
      details.
    - The "sample" action now supports "ingress" and "egress" options.
    - The "ct" action now supports the TFTP ALG where support is available.
    - New actions "clone" and "ct_clear".
  * ovs-ofctl:

OBS-URL: https://build.opensuse.org/request/show/479156
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=13
2017-03-17 14:06:33 +00:00
Markos Chandras
f374ec9122 This fixes some conflict issues reported in https://build.opensuse.org/request/show/479083
and also removes the openvswitch-any-ovn-* and openvswitch-any-switch symbols which are not
necessary.

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=112
2017-03-13 23:45:12 +00:00
Markos Chandras
e6bd8f037c Accepting request 461859 from home:markoschandras:network
- Version bump to 2.7.0 (fate#321541). Some of the changes are:
  * Utilities and daemons that support SSL now allow protocols and
    ciphers to be configured with --ssl-protocols and --ssl-ciphers.
  * OVN:
    - QoS is now implemented via egress shaping rather than ingress policing.
    - DSCP marking is now supported, via the new northbound QoS table.
    - IPAM now supports fixed MAC addresses.
    - Support for source IP address based routing.
    - ovn-trace:
      * New --ovs option to also print OpenFlow flows.
      * put_dhcp_opts and put_dhcp_optsv6 actions may now be traced.
    - Support for managing SSL and remote connection configuration in
      northbound and southbound databases.
  * Fixed regression in table stats maintenance introduced in OVS
    2.3.0, wherein the number of OpenFlow table hits and misses was
    not accurate.
  * OpenFlow:
    - OFPT_PACKET_OUT messages are now supported in bundles.
    - A new "selection_method=dp_hash" type for OpenFlow select group
      bucket selection that uses the datapath computed 5-tuple hash
      without making datapath flows match the 5-tuple fields, which
      is useful for more efficient load balancing, for example.  This
      uses the Netronome extension to OpenFlow 1.5+ that allows
      control over the OpenFlow select groups selection method.  See
      "selection_method" and related options in ovs-ofctl(8) for
      details.
    - The "sample" action now supports "ingress" and "egress" options.
    - The "ct" action now supports the TFTP ALG where support is available.
    - New actions "clone" and "ct_clear".
  * ovs-ofctl:

OBS-URL: https://build.opensuse.org/request/show/461859
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=111
2017-03-13 15:00:26 +00:00
Dominique Leuenberger
87b216f498 Accepting request 442358 from network
1

OBS-URL: https://build.opensuse.org/request/show/442358
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=12
2016-11-29 11:49:10 +00:00
Markos Chandras
22ee90756e Accepting request 442335 from home:markoschandras:network
- Relax the DPDK dependency a bit so we can support stable and
  possibly new minor releases as well.

OBS-URL: https://build.opensuse.org/request/show/442335
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=109
2016-11-28 11:39:20 +00:00
961621fedc Accepting request 441194 from home:markoschandras:network
- Do not restart the openvswitch service after a package update.
  Restarting the systemd service may break connectivity so let the
  user decide when it is the best time for such an action.

OBS-URL: https://build.opensuse.org/request/show/441194
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=108
2016-11-22 10:46:01 +00:00
Dominique Leuenberger
8a6f5c7c84 Accepting request 438685 from network
1

OBS-URL: https://build.opensuse.org/request/show/438685
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=11
2016-11-05 20:27:54 +00:00
Markos Chandras
49720f8459 Accepting request 438539 from home:markoschandras:network
- Version bump to 2.6.1. Some of the changes are:
  * ovn: Do not reply to ARP or ND NS for a VM's own IP address.
  * ovs-ofctl: Tolerate differences in IPv6 formatting.
  * netdev-linux: double tagged packets should use 0x88a8
  * expr: Fix abort when simplifying "x != 0/0".
  * dpif-netdev: Fix crash in dpif_netdev_execute().
  * ovn-controller: Container can have connection to a hosting VM.
  * stream-ssl: Fix memory leak on error path.
  * Other bug fixes.

OBS-URL: https://build.opensuse.org/request/show/438539
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=106
2016-11-04 10:42:52 +00:00
Dominique Leuenberger
b569bb3f2c Accepting request 433753 from network
1

OBS-URL: https://build.opensuse.org/request/show/433753
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=10
2016-10-13 09:30:12 +00:00
db271ea782 Accepting request 433610 from home:markoschandras:network
- Version bump to 2.6.0. Some of the changes are:
  * First supported release of OVN.  See ovn-architecture(7) for more
     details.
  * ovsdb-server:
     - New "monitor_cond" "monitor_cond_update" and "update2" extensions to
       RFC 7047.
   * OpenFlow:
     - OpenFlow 1.3+ bundles now expire after 10 seconds since the
       last time the bundle was either opened, modified, or closed.
     - OpenFlow 1.3 Extension 230, adding OpenFlow Bundles support, is
       now implemented.
     - OpenFlow 1.3+ bundles are now supported for group mods as well as
       flow mods and port mods.  Both 'atomic' and 'ordered' bundle
       flags are supported for group mods as well as flow mods.
     - Internal OpenFlow rule representation for load and set-field
       actions is now much more memory efficient.  For a complex flow
       table this can reduce rule memory consumption by 40%.
     - Bundles are now much more memory efficient than in OVS 2.5.
       Together with memory efficiency improvements in OpenFlow rule
       representation, the peak OVS resident memory use during a
       bundle commit for large complex set of flow mods can be only
       25% of that in OVS 2.5 (4x lower).
     - OpenFlow 1.1+ OFPT_QUEUE_GET_CONFIG_REQUEST now supports OFPP_ANY.
     - OpenFlow 1.4+ OFPMP_QUEUE_DESC is now supported.
     - OpenFlow 1.4+ OFPT_TABLE_STATUS is now supported.
     - New property-based packet-in message format NXT_PACKET_IN2 with support
       for arbitrary user-provided data and for serializing flow table
       traversal into a continuation for later resumption.
     - New extension message NXT_SET_ASYNC_CONFIG2 to allow OpenFlow 1.4-like
       control over asynchronous messages in earlier versions of OpenFlow.

OBS-URL: https://build.opensuse.org/request/show/433610
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=104
2016-10-07 13:07:43 +00:00
Dominique Leuenberger
5aa538390e Accepting request 427339 from network
1

OBS-URL: https://build.opensuse.org/request/show/427339
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=9
2016-09-16 09:01:02 +00:00
Markos Chandras
dbe41ed4db Accepting request 427251 from home:markoschandras:network
- Add new DPDK_OPTIONS environment variable to hold the dpdk
  vswitchd options so that the systemd unit files can be used to
  launch an ovs-vswitcd DPDK capable instance instead of doing
  it manually. (bsc#987265)
    * 0001-ovs-ctl-Add-new-DPDK_OPTIONS-environment-variable.patch

OBS-URL: https://build.opensuse.org/request/show/427251
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=102
2016-09-13 18:58:41 +00:00
Dominique Leuenberger
cef120ec27 Accepting request 411742 from network
- Add missing licenses (bsc#988513)
- Misc spec file cleanups highlighted by the spec-cleaner tool.
- Allow aarch64 builds for openvswitch-dpdk
- Add old bug references to the changelog.

OBS-URL: https://build.opensuse.org/request/show/411742
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=8
2016-09-10 22:53:36 +00:00
Markos Chandras
a8f02d15ec Accepting request 411740 from home:markoschandras:network
Add old SLE reference to the changelog.

OBS-URL: https://build.opensuse.org/request/show/411740
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=100
2016-07-18 09:47:47 +00:00
2aa52784e3 Accepting request 408658 from home:markoschandras:network
- Add missing licenses (bsc#988513)
- Misc spec file cleanups highlighted by the spec-cleaner tool.
- Allow aarch64 builds for openvswitch-dpdk
- Add missing bug references to 2.5.0 release.
old: network/openvswitch
new: home:markoschandras:network/openvswitch rev None
Index: openvswitch-dpdk.changes
===================================================================
--- openvswitch-dpdk.changes (revision 98)
+++ openvswitch-dpdk.changes (revision 46)
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue Jul 12 10:41:14 UTC 2016 - mchandras@suse.de
+
+- Add missing licenses (bsc#988513)
+- Misc spec file cleanups highlighted by the spec-cleaner tool.
+- Allow aarch64 builds for openvswitch-dpdk
+
+-------------------------------------------------------------------
 Mon Jul  4 12:08:06 UTC 2016 - mchandras@suse.de
 
 - Allow the OvS daemon to run as non-root (bsc#987545)
@@ -197,6 +204,8 @@
 - Added: ovn-northd.service
 - TODO: Explicit DPDK support not yet added to spec.
 - Spec file work and cleanup.
+- Includes fixes (or obsoletes) the following issues:
+  * bsc#948840, bsc#941466, bsc#936780, bnc#935750, bnc#867964
 
 -------------------------------------------------------------------
 Tue Mar  1 08:43:19 UTC 2016 - kmroz@suse.com
Index: openvswitch-dpdk.spec
===================================================================
--- openvswitch-dpdk.spec (revision 98)
+++ openvswitch-dpdk.spec (revision 46)
@@ -14,10 +14,9 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
-
-
 # needssslcertforbuild
 
+
 # Disable building the external kernel datapath by default
 %bcond_with kmp
 # DPDK build disabled by default. It's enabled in the
@@ -26,14 +25,16 @@
 # The testsuite is somewhat fragile for continuous testing in OBS
 # but keep it here as an option
 %bcond_with check
-
 # Do NOT edit this auto generated file! Edit openvswitch.spec instead
 # and run 'pre_checkin.sh' before committing
 Name:           openvswitch-dpdk
 Version:        2.5.0
 Release:        0
 Summary:        An open source, production quality, multilayer virtual switch (DPDK)
-License:        Apache-2.0
+# All code is Apache-2.0 except
+# - lib/sflow* which is SISSL
+# - utilities/bugtool which is LGPL-2.1
+License:        Apache-2.0 and LGPL-2.1 and SISSL
 Group:          Productivity/Networking/System
 Url:            http://openvswitch.org/
 Source0:        http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
@@ -43,35 +44,26 @@
 Source89:       Module.supported.updates
 # PATCH-FIX-UPSTREAM openvswitch-2.5.0-detect-dpdk-installation.patch
 Patch0:         openvswitch-%{version}-detect-dpdk-installation.patch
-Patch1:         0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch 
+Patch1:         0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
-%if %{with dpdk}
-# We need to be a bit strict with the dpdk version since
-# it's very possible for DPDK to change it's API between
-# releases. OVS currently requires 2.2.0. We may have to
-# provide multiple versions of dpdk if OVS and DPDK get
-# out of sync too often.
-BuildRequires:  dpdk-devel = 2.2.0
-ExclusiveArch:  x86_64 %ix86
-%endif
 BuildRequires:  fdupes
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  graphviz
 BuildRequires:  libcap-ng-devel
-BuildRequires:  libopenssl-devel
 BuildRequires:  libtool
 BuildRequires:  make
 BuildRequires:  openssl
 BuildRequires:  perl
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 # Needed by the testsuite
 BuildRequires:  procps
 BuildRequires:  python-devel
 BuildRequires:  python-xml
+BuildRequires:  valgrind-devel
+BuildRequires:  pkgconfig(openssl)
 Requires:       logrotate
-Requires:       openssl
 Requires:       python
 Provides:       openvswitch-common = %{version}
 Obsoletes:      openvswitch-common < %{version}
@@ -79,10 +71,16 @@
 Obsoletes:      openvswitch-controller < %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %py_requires
-BuildRequires:  valgrind-devel
-# We can't have openvswitch and openvswitch-dpdk in parallel
 %if %{with dpdk}
+# We need to be a bit strict with the dpdk version since
+# it's very possible for DPDK to change it's API between
+# releases. OVS currently requires 2.2.0. We may have to
+# provide multiple versions of dpdk if OVS and DPDK get
+# out of sync too often.
+BuildRequires:  dpdk-devel = 2.2.0
+# We can't have openvswitch and openvswitch-dpdk in parallel
 Conflicts:      openvswitch
+ExclusiveArch:  aarch64 x86_64 %{ix86}
 %endif
 
 %description
@@ -131,15 +129,15 @@
 # ovs-ctl / ovs-pki use /usr/bin/uuidgen:
 Requires:       util-linux
 Requires(post): %fillup_prereq
+Suggests:       logrotate
 Provides:       openvswitch-any-switch = %{version}
+%{?systemd_requires}
 %if %{with dpdk}
 Conflicts:      openvswitch-switch
 %endif
-Suggests:       logrotate
 %if %{with kmp}
 Suggests:       openvswitch-kmp
 %endif
-%{?systemd_requires}
 
 %description switch
 openvswitch-switch provides the userspace components and utilities for
@@ -246,7 +244,7 @@
 Open vSwitch is a full-featured software-based Ethernet switch.
 
 %prep
-%setup -n openvswitch-%{version} -q
+%setup -q -n openvswitch-%{version}
 %patch0 -p1
 %patch1 -p1
 
@@ -290,6 +288,7 @@
         --disable-static \
         --enable-libcapng \
         --enable-shared \
+        --enable-ssl \
         ${dpdk_opt} \
         --with-logdir=%{_localstatedir}/log/openvswitch
 make %{?_smp_mflags}
@@ -301,7 +300,7 @@
 # Recheck tests before we declare them broken. If that fails, dump
 # the log and exit. >2.5.0 uses the RECHECK env variable so this
 # needs to be taken into consideration for future releases.
-if make check TESTSUITEFLAGS="%{_smp_mflags}" ||
+if make check TESTSUITEFLAGS="%{?_smp_mflags}" ||
    make check TESTSUITEFLAGS='--recheck'; then :;
 else
     cat tests/testsuite.log
@@ -358,7 +357,7 @@
 mv %{buildroot}%{_datadir}/openvswitch/python/* %{buildroot}%{py_sitedir}
 rmdir %{buildroot}%{_datadir}/openvswitch/python
 
-rm -f %buildroot/%_libdir/*.la
+find %{buildroot} -type f -name "*.la" -delete -print
 
 # Remove unpackaged files for the dpdk case
 %if %{with dpdk}
@@ -438,26 +437,26 @@
 %{_libdir}/libopenvswitch.so.*
 %{_libdir}/libovsdb.so.*
 %{_libdir}/libsflow.so.*
-%{_mandir}/man1/ovs-benchmark.1.gz
-%{_mandir}/man1/ovsdb-client.1.gz
-%{_mandir}/man8/ovs-appctl.8.gz
-%{_mandir}/man8/ovs-bugtool.8.gz
-%{_mandir}/man8/ovs-ofctl.8.gz
-%{_mandir}/man8/ovs-vlan-bug-workaround.8.gz
-%{_mandir}/man8/ovs-parse-backtrace.8.gz
-%{_mandir}/man8/ovs-dpctl-top.8.gz
+%{_mandir}/man1/ovs-benchmark.1%{ext_man}
+%{_mandir}/man1/ovsdb-client.1%{ext_man}
+%{_mandir}/man8/ovs-appctl.8%{ext_man}
+%{_mandir}/man8/ovs-bugtool.8%{ext_man}
+%{_mandir}/man8/ovs-ofctl.8%{ext_man}
+%{_mandir}/man8/ovs-vlan-bug-workaround.8%{ext_man}
+%{_mandir}/man8/ovs-parse-backtrace.8%{ext_man}
+%{_mandir}/man8/ovs-dpctl-top.8%{ext_man}
 %{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
 
 %files pki
 %defattr(-,root,root)
-%{_mandir}/man8/ovs-pki.8.gz
+%{_mandir}/man8/ovs-pki.8%{ext_man}
 %{_bindir}/ovs-pki
 
 %files vtep
 %defattr(-,root,root)
 %{_bindir}/vtep-ctl
-%{_mandir}/man5/vtep.5.gz
-%{_mandir}/man8/vtep-ctl.8.gz
+%{_mandir}/man5/vtep.5%{ext_man}
+%{_mandir}/man8/vtep-ctl.8%{ext_man}
 %{_datadir}/openvswitch/scripts/ovs-vtep
 %{_datadir}/openvswitch/vtep.ovsschema
 %{_libdir}/libvtep.so.*
@@ -489,15 +488,15 @@
 %{_datadir}/openvswitch/vswitch.ovsschema
 %{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
 %config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch-switch
-%{_mandir}/man8/ovs-dpctl.8.gz
-%{_mandir}/man1/ovs-tcpundump.1.gz
-%{_mandir}/man1/ovs-pcap.1.gz
-%{_mandir}/man8/ovs-vsctl.8.gz
-%{_mandir}/man1/ovsdb-tool.1.gz
-%{_mandir}/man8/ovs-vswitchd.8.gz
-%{_mandir}/man1/ovsdb-server.1.gz
-%{_mandir}/man5/ovs-vswitchd.conf.db.5.gz
-%{_mandir}/man8/ovs-ctl.8.gz
+%{_mandir}/man8/ovs-dpctl.8%{ext_man}
+%{_mandir}/man1/ovs-tcpundump.1%{ext_man}
+%{_mandir}/man1/ovs-pcap.1%{ext_man}
+%{_mandir}/man8/ovs-vsctl.8%{ext_man}
+%{_mandir}/man1/ovsdb-tool.1%{ext_man}
+%{_mandir}/man8/ovs-vswitchd.8%{ext_man}
+%{_mandir}/man1/ovsdb-server.1%{ext_man}
+%{_mandir}/man5/ovs-vswitchd.conf.db.5%{ext_man}
+%{_mandir}/man8/ovs-ctl.8%{ext_man}
 %{_sbindir}/rcopenvswitch
 %{_unitdir}/openvswitch.service
 %{_localstatedir}/adm/fillup-templates/sysconfig.openvswitch
@@ -538,10 +537,10 @@
 %{_bindir}/ovs-l3ping
 %{_bindir}/ovs-vlan-test
 %{_bindir}/ovs-testcontroller
-%{_mandir}/man8/ovs-test.8.gz
-%{_mandir}/man8/ovs-l3ping.8.gz
-%{_mandir}/man8/ovs-vlan-test.8.gz
-%{_mandir}/man8/ovs-testcontroller.8.gz
+%{_mandir}/man8/ovs-test.8%{ext_man}
+%{_mandir}/man8/ovs-l3ping.8%{ext_man}
+%{_mandir}/man8/ovs-vlan-test.8%{ext_man}
+%{_mandir}/man8/ovs-testcontroller.8%{ext_man}
 
 %files devel
 %defattr(-,root,root)
Index: openvswitch.changes
===================================================================
--- openvswitch.changes (revision 98)
+++ openvswitch.changes (revision 46)
@@ -1,4 +1,11 @@
 -------------------------------------------------------------------
+Tue Jul 12 10:41:14 UTC 2016 - mchandras@suse.de
+
+- Add missing licenses (bsc#988513)
+- Misc spec file cleanups highlighted by the spec-cleaner tool.
+- Allow aarch64 builds for openvswitch-dpdk
+
+-------------------------------------------------------------------
 Mon Jul  4 12:08:06 UTC 2016 - mchandras@suse.de
 
 - Allow the OvS daemon to run as non-root (bsc#987545)
@@ -197,6 +204,8 @@
 - Added: ovn-northd.service
 - TODO: Explicit DPDK support not yet added to spec.
 - Spec file work and cleanup.
+- Includes fixes (or obsoletes) the following issues:
+  * bsc#948840, bsc#941466, bsc#936780, bnc#935750, bnc#867964
 
 -------------------------------------------------------------------
 Tue Mar  1 08:43:19 UTC 2016 - kmroz@suse.com
Index: openvswitch.spec
===================================================================
--- openvswitch.spec (revision 98)
+++ openvswitch.spec (revision 46)
@@ -14,10 +14,9 @@
 
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
-
-
 # needssslcertforbuild
 
+
 # Disable building the external kernel datapath by default
 %bcond_with kmp
 # DPDK build disabled by default. It's enabled in the
@@ -26,12 +25,14 @@
 # The testsuite is somewhat fragile for continuous testing in OBS
 # but keep it here as an option
 %bcond_with check
-
 Name:           openvswitch
 Version:        2.5.0
 Release:        0
 Summary:        An open source, production quality, multilayer virtual switch
-License:        Apache-2.0
+# All code is Apache-2.0 except
+# - lib/sflow* which is SISSL
+# - utilities/bugtool which is LGPL-2.1
+License:        Apache-2.0 and LGPL-2.1 and SISSL
 Group:          Productivity/Networking/System
 Url:            http://openvswitch.org/
 Source0:        http://openvswitch.org/releases/openvswitch-%{version}.tar.gz
@@ -41,35 +42,26 @@
 Source89:       Module.supported.updates
 # PATCH-FIX-UPSTREAM openvswitch-2.5.0-detect-dpdk-installation.patch
 Patch0:         openvswitch-%{version}-detect-dpdk-installation.patch
-Patch1:         0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch 
+Patch1:         0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
-%if %{with dpdk}
-# We need to be a bit strict with the dpdk version since
-# it's very possible for DPDK to change it's API between
-# releases. OVS currently requires 2.2.0. We may have to
-# provide multiple versions of dpdk if OVS and DPDK get
-# out of sync too often.
-BuildRequires:  dpdk-devel = 2.2.0
-ExclusiveArch:  x86_64 %ix86
-%endif
 BuildRequires:  fdupes
 BuildRequires:  gcc
 BuildRequires:  glibc-devel
 BuildRequires:  graphviz
 BuildRequires:  libcap-ng-devel
-BuildRequires:  libopenssl-devel
 BuildRequires:  libtool
 BuildRequires:  make
 BuildRequires:  openssl
 BuildRequires:  perl
-BuildRequires:  pkg-config
+BuildRequires:  pkgconfig
 # Needed by the testsuite
 BuildRequires:  procps
 BuildRequires:  python-devel
 BuildRequires:  python-xml
+BuildRequires:  valgrind-devel
+BuildRequires:  pkgconfig(openssl)
 Requires:       logrotate
-Requires:       openssl
 Requires:       python
 Provides:       openvswitch-common = %{version}
 Obsoletes:      openvswitch-common < %{version}
@@ -77,10 +69,16 @@
 Obsoletes:      openvswitch-controller < %{version}
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 %py_requires
-BuildRequires:  valgrind-devel
-# We can't have openvswitch and openvswitch-dpdk in parallel
 %if %{with dpdk}
+# We need to be a bit strict with the dpdk version since
+# it's very possible for DPDK to change it's API between
+# releases. OVS currently requires 2.2.0. We may have to
+# provide multiple versions of dpdk if OVS and DPDK get
+# out of sync too often.
+BuildRequires:  dpdk-devel = 2.2.0
+# We can't have openvswitch and openvswitch-dpdk in parallel
 Conflicts:      openvswitch
+ExclusiveArch:  aarch64 x86_64 %{ix86}
 %endif
 
 %description
@@ -129,15 +127,15 @@
 # ovs-ctl / ovs-pki use /usr/bin/uuidgen:
 Requires:       util-linux
 Requires(post): %fillup_prereq
+Suggests:       logrotate
 Provides:       openvswitch-any-switch = %{version}
+%{?systemd_requires}
 %if %{with dpdk}
 Conflicts:      openvswitch-switch
 %endif
-Suggests:       logrotate
 %if %{with kmp}
 Suggests:       openvswitch-kmp
 %endif
-%{?systemd_requires}
 
 %description switch
 openvswitch-switch provides the userspace components and utilities for
@@ -244,7 +242,7 @@
 Open vSwitch is a full-featured software-based Ethernet switch.
 
 %prep
-%setup -n openvswitch-%{version} -q
+%setup -q -n openvswitch-%{version}
 %patch0 -p1
 %patch1 -p1
 
@@ -288,6 +286,7 @@
         --disable-static \
         --enable-libcapng \
         --enable-shared \
+        --enable-ssl \
         ${dpdk_opt} \
         --with-logdir=%{_localstatedir}/log/openvswitch
 make %{?_smp_mflags}
@@ -299,7 +298,7 @@
 # Recheck tests before we declare them broken. If that fails, dump
 # the log and exit. >2.5.0 uses the RECHECK env variable so this
 # needs to be taken into consideration for future releases.
-if make check TESTSUITEFLAGS="%{_smp_mflags}" ||
+if make check TESTSUITEFLAGS="%{?_smp_mflags}" ||
    make check TESTSUITEFLAGS='--recheck'; then :;
 else
     cat tests/testsuite.log
@@ -356,7 +355,7 @@
 mv %{buildroot}%{_datadir}/openvswitch/python/* %{buildroot}%{py_sitedir}
 rmdir %{buildroot}%{_datadir}/openvswitch/python
 
-rm -f %buildroot/%_libdir/*.la
+find %{buildroot} -type f -name "*.la" -delete -print
 
 # Remove unpackaged files for the dpdk case
 %if %{with dpdk}
@@ -436,26 +435,26 @@
 %{_libdir}/libopenvswitch.so.*
 %{_libdir}/libovsdb.so.*
 %{_libdir}/libsflow.so.*
-%{_mandir}/man1/ovs-benchmark.1.gz
-%{_mandir}/man1/ovsdb-client.1.gz
-%{_mandir}/man8/ovs-appctl.8.gz
-%{_mandir}/man8/ovs-bugtool.8.gz
-%{_mandir}/man8/ovs-ofctl.8.gz
-%{_mandir}/man8/ovs-vlan-bug-workaround.8.gz
-%{_mandir}/man8/ovs-parse-backtrace.8.gz
-%{_mandir}/man8/ovs-dpctl-top.8.gz
+%{_mandir}/man1/ovs-benchmark.1%{ext_man}
+%{_mandir}/man1/ovsdb-client.1%{ext_man}
+%{_mandir}/man8/ovs-appctl.8%{ext_man}
+%{_mandir}/man8/ovs-bugtool.8%{ext_man}
+%{_mandir}/man8/ovs-ofctl.8%{ext_man}
+%{_mandir}/man8/ovs-vlan-bug-workaround.8%{ext_man}
+%{_mandir}/man8/ovs-parse-backtrace.8%{ext_man}
+%{_mandir}/man8/ovs-dpctl-top.8%{ext_man}
 %{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
 
 %files pki
 %defattr(-,root,root)
-%{_mandir}/man8/ovs-pki.8.gz
+%{_mandir}/man8/ovs-pki.8%{ext_man}
 %{_bindir}/ovs-pki
 
 %files vtep
 %defattr(-,root,root)
 %{_bindir}/vtep-ctl
-%{_mandir}/man5/vtep.5.gz
-%{_mandir}/man8/vtep-ctl.8.gz
+%{_mandir}/man5/vtep.5%{ext_man}
+%{_mandir}/man8/vtep-ctl.8%{ext_man}
 %{_datadir}/openvswitch/scripts/ovs-vtep
 %{_datadir}/openvswitch/vtep.ovsschema
 %{_libdir}/libvtep.so.*
@@ -487,15 +486,15 @@
 %{_datadir}/openvswitch/vswitch.ovsschema
 %{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
 %config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch-switch
-%{_mandir}/man8/ovs-dpctl.8.gz
-%{_mandir}/man1/ovs-tcpundump.1.gz
-%{_mandir}/man1/ovs-pcap.1.gz
-%{_mandir}/man8/ovs-vsctl.8.gz
-%{_mandir}/man1/ovsdb-tool.1.gz
-%{_mandir}/man8/ovs-vswitchd.8.gz
-%{_mandir}/man1/ovsdb-server.1.gz
-%{_mandir}/man5/ovs-vswitchd.conf.db.5.gz
-%{_mandir}/man8/ovs-ctl.8.gz
+%{_mandir}/man8/ovs-dpctl.8%{ext_man}
+%{_mandir}/man1/ovs-tcpundump.1%{ext_man}
+%{_mandir}/man1/ovs-pcap.1%{ext_man}
+%{_mandir}/man8/ovs-vsctl.8%{ext_man}
+%{_mandir}/man1/ovsdb-tool.1%{ext_man}
+%{_mandir}/man8/ovs-vswitchd.8%{ext_man}
+%{_mandir}/man1/ovsdb-server.1%{ext_man}
+%{_mandir}/man5/ovs-vswitchd.conf.db.5%{ext_man}
+%{_mandir}/man8/ovs-ctl.8%{ext_man}
 %{_sbindir}/rcopenvswitch
 %{_unitdir}/openvswitch.service
 %{_localstatedir}/adm/fillup-templates/sysconfig.openvswitch
@@ -536,10 +535,10 @@
 %{_bindir}/ovs-l3ping
 %{_bindir}/ovs-vlan-test
 %{_bindir}/ovs-testcontroller
-%{_mandir}/man8/ovs-test.8.gz
-%{_mandir}/man8/ovs-l3ping.8.gz
-%{_mandir}/man8/ovs-vlan-test.8.gz
-%{_mandir}/man8/ovs-testcontroller.8.gz
+%{_mandir}/man8/ovs-test.8%{ext_man}
+%{_mandir}/man8/ovs-l3ping.8%{ext_man}
+%{_mandir}/man8/ovs-vlan-test.8%{ext_man}
+%{_mandir}/man8/ovs-testcontroller.8%{ext_man}
 
 %files devel
 %defattr(-,root,root)

OBS-URL: https://build.opensuse.org/request/show/408658
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=99
2016-07-18 08:19:36 +00:00
Dominique Leuenberger
7a31b291d6 Accepting request 406694 from network
- Allow the OvS daemon to run as non-root (bsc#987545)
- Add missing 'Conflicts' statements to all the subpackages as
  required by the Factory review tools.

- Remove the ?_with_dpdk macro usage since this is not being set
  without explicitly passing --with/--without during an OBS build.
  This reverts back to using the %{with dpdk} style which is set
  automatically based on %bcond_with* macros.

- Fix subpackage dependencies to not require the non-existent python
  DPDK subpackages (bsc#986835). We do not provide DPDK versions of
  the python bindings so nothing should depend on these subpackages.

- Update rpm groups, acronym forms.

- Multiple fixes for the openvswitch-dpdk package (bsc#985878)
  * Rename main package name to openvswitch-dpdk
  * Do not build the python and kmp packages since they do not
    depend on the DPDK capabilities
  * Remove the open_virtual_switch capability. The
    openvswitch-common will be used by reverse dependencies to
    require either of the OvS packages.
  * Provide virtual capabilities for all DPDK subpackages.
  * Fix the dependencies in the python package to require either
    of the OvS packages.
  * Suggest the kmp package only if it's actually provided.
  * Small cleanups.

OBS-URL: https://build.opensuse.org/request/show/406694
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=7
2016-07-12 21:51:23 +00:00
Markos Chandras
358bfa9806 Accepting request 406691 from home:markoschandras:network
Fixing my last commit to add conflicts to all subpackages

OBS-URL: https://build.opensuse.org/request/show/406691
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=97
2016-07-05 09:13:42 +00:00
Markos Chandras
9e7428fee8 Accepting request 406385 from home:markoschandras:network
- Allow the OvS daemon to run as non-root (bsc#987545)
- Add missing 'Conflicts' statements in the devel subpackage as
  required by the Factory review tools.

OBS-URL: https://build.opensuse.org/request/show/406385
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=96
2016-07-04 21:42:42 +00:00
Markos Chandras
afb5a1c574 Accepting request 405517 from home:markoschandras:network
- Remove the ?_with_dpdk macro usage since this is not being set
  without explicitly passing --with/--without during an OBS build.
  This reverts back to using the %{with dpdk} style which is set
  automatically based on %bcond_with* macros.

OBS-URL: https://build.opensuse.org/request/show/405517
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=95
2016-06-29 15:59:20 +00:00
f1124fc91b Accepting request 405257 from home:markoschandras:network
- Fix subpackage dependencies to not require the non-existent python
  DPDK subpackages (bsc#986835). We do not provide DPDK versions of
  the python bindings so nothing should depend on these subpackages.

OBS-URL: https://build.opensuse.org/request/show/405257
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=94
2016-06-28 14:58:40 +00:00
e7268eaf86 Accepting request 404072 from home:jengelh:branches:network
- Update rpm groups, acronym forms.

OBS-URL: https://build.opensuse.org/request/show/404072
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=93
2016-06-23 14:44:49 +00:00
ab792e6395 Accepting request 403989 from home:markoschandras:network
- Multiple fixes for the openvswitch-dpdk package (bsc#985878)
  * Rename main package name to openvswitch-dpdk
  * Do not build the python and kmp packages since they do not
    depend on the DPDK capabilities
  * Remove the open_virtual_switch capability. The
    openvswitch-common will be used by reverse dependencies to
    require either of the OvS packages.
  * Provide virtual capabilities for all DPDK subpackages.
  * Fix the dependencies in the python package to require either
    of the OvS packages.
  * Suggest the kmp package only if it's actually provided.
  * Small cleanups.

OBS-URL: https://build.opensuse.org/request/show/403989
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=92
2016-06-22 09:27:41 +00:00
67f6e49df3 Accepting request 402853 from home:markoschandras:network
- Add %check directive to run the openvswitch testsuite on demand.
  The openvswitch contains hundreds of tests covering simple and
  complex openvswitch configuration so it's beneficial to run them
  during package builds. However, running the testsuite is not enabled
  by default. Also add the following upstream patch:
  * 0001-Remove-broken-pipe-warning-logs-from-ovsdb-server.lo.patch

- Build a DPDK-enabled Open vSwitch (fate#319170)
  * Apply the following changes to the openvswitch.spec file
    - Add support for building with DPDK capabilities
    - Add conflicts between the two packages.
    - Add new 'open_virtual_switch-*' capabilities for openvswitch,
      openvswitch-switch, openvswitch-test packages which can be used
      by reverse dependencies to select between the two openvswitch
      implementations.
  * Add pre_checkin.sh to generate the openvswitch_dpdk.spec file
    based on the openvswitch.spec one.
  * Add upstream openvswitch-2.5.0-detect-dpdk-installation.patch
    patch to detect and link against a DPDK installation.

OBS-URL: https://build.opensuse.org/request/show/402853
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=91
2016-06-21 12:24:21 +00:00
Dominique Leuenberger
2a45959c86 Accepting request 397606 from network
1

OBS-URL: https://build.opensuse.org/request/show/397606
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=6
2016-05-25 19:28:20 +00:00
e17f3c7c14 Accepting request 397564 from home:jengelh:branches:network
- Keep %prep small for speedier `quilt setup`. Kill __DATE__ from
  source. Drop all .la files that are in %_libdir.
  Combine systemd calls.

OBS-URL: https://build.opensuse.org/request/show/397564
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=89
2016-05-24 05:00:44 +00:00
5f85681b30 Accepting request 396991 from home:markoschandras:network
- Add missing %dir directive for /var/log/openvswitch

OBS-URL: https://build.opensuse.org/request/show/396991
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=88
2016-05-21 10:04:35 +00:00
98acf272a9 - remove aarch64 conditional, no longer needed
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=87
2016-05-19 10:13:51 +00:00
e4bba6808f Accepting request 396148 from home:markoschandras:network
- Multiple spec file and package fixes.
  * Drop obsolete log-check-module-loop.patch patch.
  * Drop conditional code for older openSUSE releases. This also removes
    all of the sysvinit files which were pulled in when the package was
    originally developed.
  * Drop support for building the GUI. The GUI code has been removed in
    7868fbc6c97c2 ("ovsdbmonitor: Remove.") upstream commit and it does
    not exist since v2.2.0 so drop the code in the spec file.
  * Use the upstream systemd service files for the OVN components instead
    of maintaining our own downstream.
  * Drop the unofficial ipsec support. It hasn't been enabled in years.
  * Drop support for building the upstream kernel module since it's being
    shipped with the kernel package in latest releases. Restore the
    %bcond_with kmp to make it easier to build the external kernel module
    if needed.
  * Fix some suse-missing-rclink rpmlint warnings for the ovn subpackage
  * Base our service unit to the upstream one.
  * Stop silently enabling the GRE protocol in iptables by default.
  * Install the upstream sysconfig file to pass more information to the
    openvswitch service unit.
  * Use make install instead of %makeinstall
  * Drop brcompat leftovers.
  * spec-cleaner fixes

OBS-URL: https://build.opensuse.org/request/show/396148
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=86
2016-05-19 10:13:17 +00:00
Dominique Leuenberger
91e5f256d3 Accepting request 389094 from network
- address dimstars concerns

- Prevent systemd from autogenerating a service file for
  openvswitch-switch which conflicts with the opevswitch
  one. (bsc#966762)

- Add missing %defattr to ovn files section.

- Add additional install requirements for python-openvswitch-test
  package.

- Add support for building both 2.4.0 and 2.5.0 from the same spec
  file. Needed to fix SLE11 builds as OVS-2.5.0 no longer supports
  python < 2.7. SLE11 SP3 and SP4 use python 2.6.
- Added: openvswitch-2.4.0.tar.gz

- New upstream version 2.5.0 (LTS)
  - Dropped support for Python older than version 2.7.  As a consequence,
    using Open vSwitch 2.5 or later on XenServer 6.5 or earlier (which
    have Python 2.4) requires first installing Python 2.7.
  - OpenFlow:
    * Group chaining (where one OpenFlow group triggers another) is
      now supported.
    * OpenFlow 1.4+ "importance" is now considered for flow eviction.
    * OpenFlow 1.4+ OFPTC_EVICTION is now implemented.
    * OpenFlow 1.4+ OFPTC_VACANCY_EVENTS is now implemented.
    * OpenFlow 1.4+ OFPMP_TABLE_DESC is now implemented.
    * Allow modifying the ICMPv4/ICMPv6 type and code fields.
    * OpenFlow 1.4+ OFPT_SET_ASYNC_CONFIG and OFPT_GET_ASYNC_CONFIG are
      now implemented.

OBS-URL: https://build.opensuse.org/request/show/389094
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=5
2016-04-14 11:07:56 +00:00
63ba3156ea OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=84 2016-04-13 08:33:39 +00:00
503e4a8fe8 - address dimstars concerns
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=83
2016-04-01 10:39:37 +00:00
f3ed9feaf7 Accepting request 378276 from home:markoschandras:network
- Prevent systemd from autogenerating a service file for
  openvswitch-switch which conflicts with the opevswitch
  one. (bsc#966762)

OBS-URL: https://build.opensuse.org/request/show/378276
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=82
2016-03-29 19:53:05 +00:00
fa62e90257 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=81 2016-03-29 19:50:45 +00:00
Lars Vogdt
6ad6021b5b Accepting request 375057 from home:k_mroz:branches:network
- Add missing %defattr to ovn files section.

OBS-URL: https://build.opensuse.org/request/show/375057
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=80
2016-03-22 14:18:08 +00:00
38d1b0332c Accepting request 368475 from home:k_mroz:branches:network
- Add additional install requirements for python-openvswitch-test
  package.

- Add support for building both 2.4.0 and 2.5.0 from the same spec
  file. Needed to fix SLE11 builds as OVS-2.5.0 no longer supports
  python < 2.7. SLE11 SP3 and SP4 use python 2.6.
- Added: openvswitch-2.4.0.tar.gz

- New upstream version 2.5.0 (LTS)
  - Dropped support for Python older than version 2.7.  As a consequence,
    using Open vSwitch 2.5 or later on XenServer 6.5 or earlier (which
    have Python 2.4) requires first installing Python 2.7.
  - OpenFlow:
    * Group chaining (where one OpenFlow group triggers another) is
      now supported.
    * OpenFlow 1.4+ "importance" is now considered for flow eviction.
    * OpenFlow 1.4+ OFPTC_EVICTION is now implemented.
    * OpenFlow 1.4+ OFPTC_VACANCY_EVENTS is now implemented.
    * OpenFlow 1.4+ OFPMP_TABLE_DESC is now implemented.
    * Allow modifying the ICMPv4/ICMPv6 type and code fields.
    * OpenFlow 1.4+ OFPT_SET_ASYNC_CONFIG and OFPT_GET_ASYNC_CONFIG are
      now implemented.
  - ovs-ofctl:
    * New "out_group" keyword for OpenFlow 1.1+ matching on output group.
  - Tunnels:
    * Geneve tunnels can now match and set options and the OAM bit.
    * The nonstandard GRE64 tunnel extension has been dropped.
  - Support Multicast Listener Discovery (MLDv1 and MLDv2).
  - Add 'symmetric_l3l4' and 'symmetric_l3l4+udp' hash functions.
  - sFlow agent now reports tunnel and MPLS structures.

OBS-URL: https://build.opensuse.org/request/show/368475
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=79
2016-03-09 17:19:55 +00:00
Dominique Leuenberger
29e072b122 Accepting request 364973 from network
1

OBS-URL: https://build.opensuse.org/request/show/364973
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=4
2016-03-07 12:26:47 +00:00
72f5b750c6 Accepting request 363332 from home:k_mroz:branches:network
- Tighten up openvswitch service ordering (bsc#968205).

OBS-URL: https://build.opensuse.org/request/show/363332
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=77
2016-03-02 20:15:13 +00:00
8e025c5303 Accepting request 361282 from home:k_mroz:branches:network
- Don't install INSTALL.* files.

- Removed: openvswitch-switch.template

- New upstream version 2.4.0
  - Flow table modifications are now atomic, meaning that each packet
    now sees a coherent version of the OpenFlow pipeline.  For
    example, if a controller removes all flows with a single OpenFlow
    "flow_mod", no packet sees an intermediate version of the OpenFlow
    pipeline where only some of the flows have been deleted.
  - Added support for SFQ, FQ_CoDel and CoDel qdiscs.
  - Add bash command-line completion support for ovs-vsctl Please check
    utilities/ovs-command-compgen.INSTALL.md for how to use.
  - The MAC learning feature now includes per-port fairness to mitigate
    MAC flooding attacks.
  - New support for a "conjunctive match" OpenFlow extension, which
    allows constructing OpenFlow matches of the form "field1 in
    {a,b,c...} AND field2 in {d,e,f...}" and generalizations.  For details,
    see documentation for the "conjunction" action in ovs-ofctl(8).
  - Add bash command-line completion support for ovs-appctl/ovs-dpctl/
    ovs-ofctl/ovsdb-tool commands.  Please check
    utilities/ovs-command-compgen.INSTALL.md for how to use.
  - The "learn" action supports a new flag "delete_learned" that causes
    the learned flows to be deleted when the flow with the "learn" action
    is deleted.
  - Basic support for the Geneve tunneling protocol. It is not yet
    possible to generate or match options. This is planned for a future
    release. The protocol is documented at
    http://tools.ietf.org/html/draft-gross-geneve-00
  - The OVS database now reports controller rate limiting statistics.

OBS-URL: https://build.opensuse.org/request/show/361282
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=76
2016-02-26 15:24:36 +00:00
Dominique Leuenberger
217af8ad30 Accepting request 353464 from network
1

OBS-URL: https://build.opensuse.org/request/show/353464
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=3
2016-01-15 09:41:44 +00:00
fcef2cc618 Accepting request 352820 from home:1Antoine1:branches:network
- Add calls to /sbin/ldconfig in %post and %postun
- Fix typo in Url

OBS-URL: https://build.opensuse.org/request/show/352820
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=74
2016-01-13 18:17:58 +00:00
Andrey Karepin
962a6ed9e0 Accepting request 284208 from home:daniel_dpi:branches:network
Just a little debug of the .spec to build the SLES11-SP3 version.

OBS-URL: https://build.opensuse.org/request/show/284208
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=73
2015-02-07 07:12:19 +00:00
Dominique Leuenberger
32c6f8890e Accepting request 267254 from network
1

OBS-URL: https://build.opensuse.org/request/show/267254
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=2
2015-01-06 08:06:59 +00:00
Tomáš Chvátal
a05ecc46fe Accepting request 266589 from home:anubisg1:branches:network
new upstream version 2.3.1

OBS-URL: https://build.opensuse.org/request/show/266589
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=71
2015-01-05 10:26:55 +00:00
Stephan Kulow
4a965d3720 Accepting request 257855 from network
OBS-URL: https://build.opensuse.org/request/show/257855
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openvswitch?expand=0&rev=1
2014-10-31 17:27:28 +00:00
6e036295d3 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=69 2014-10-21 11:25:10 +00:00
6a4e3acbcc - fix rcX link
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=68
2014-10-21 11:24:35 +00:00
b0cf4cbc14 OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=67 2014-10-21 11:22:34 +00:00
174601bd70 - disable shipped kmp module build for newer distros
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=66
2014-09-23 08:40:24 +00:00
edc370eb6c OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=65 2014-09-22 07:24:15 +00:00
0ddb2ebfd2 - update to 2.1.3:
datapath: Drop packets when interdev is not up
  Fix two memory leaks.
  tests: Remove extraneous parenthesis from test name.
  build: Allow building with autoconf 2.63
  ovsdb: Don't add ovsdb-server.c to libovsdb.
  stp: Make stp-disabled port forward stp bpdu packets.
  dpif-linux: Fix bad backport in previous commit.
  dpif-linux: Avoid null dereference if all ports disappear.
  ofp-msgs: Correct code for queue configuration messages in OpenFlow 1.0.
  ofp-util: Fix null pointer dereference in ofputil_pull_buckets().
  tests: Disable glibc memory checking under glibc <= 2.11.
  datapath/flow_netlink: Fix NDP flow mask validation
  datapath: Change u64_stats_* to use _irq instead of _bh().
  datapath: Use exact lookup for flow_get and flow_del.
  json: Fix parsing of strings that end with a backslash.
  dpif: When executing actions needs help, use "set" action to set tunnel.
  datapath: Rehash 16-bit skbuff hashes into 32 bits.
  upcall: Configure datapath max-idle through ovs-vsctl.
  upcall: Add appctl call to set flow_limit.
  stream-ssl: Enable TLSv1.1 and TLSv1.2.
  lib/classifier: Fix use of uninitialized memory.
  lib/classifier: Clarify trie_lookup_value().
  ovs-lib: allow non-root users to check service status
  rhel: Add Patch Port support to initscripts
  rhel: support persistent mac addresses on OVS bridges
  netflow: Fold netflow_expire() into netflow_flow_clear().
  ofproto: Fix memory leak in ofproto_destroy().
  ofproto: Send monitor updates if a flow mod changes a rules actions
  lib/match: Add mask bits for nd_target for ICMPv6

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=64
2014-09-22 07:19:43 +00:00
eea0bd7b75 remove link
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=63
2014-05-20 16:03:31 +00:00
6ba24240a0 Accepting request 163216 from home:onielsen:Virtualization:Testing
- Various RPMLINT fixes
- Removed runlevel 4 from init scripts
- Changed init script for openvswitch-switch to Required-Start $local_fs; it provides layer 2 services  and should therefore start before $network

OBS-URL: https://build.opensuse.org/request/show/163216
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=23
2013-04-09 14:39:09 +00:00
3b23480853 Accepting request 162381 from home:tpaszkowski:fixopenv
- %make_install macro no longer works on SLE11. Spec file now uses %makeinstall.

OBS-URL: https://build.opensuse.org/request/show/162381
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=22
2013-04-03 13:11:37 +00:00
Sascha Peilicke
4b0966a15e - Use build conditionals instead of %define and disable GUI by default
everywhere

OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=21
2013-03-27 12:25:19 +00:00
ef809c2ca7 Accepting request 160488 from home:tpaszkowski:fixovsctrl
- Fix openvswitch-controller init script
- Add openflow-controller sysconfig file with default binding to ptcp:

OBS-URL: https://build.opensuse.org/request/show/160488
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=20
2013-03-23 08:19:57 +00:00
Tomasz Paszkowski
5f721e7fe9 - ipsec build temporary disabled
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=19
2013-03-12 13:37:52 +00:00
f3c10f5004 Accepting request 158010 from home:tpaszkowski:ovsv4
- Provides and Obsolete for former openvswitch-common package

OBS-URL: https://build.opensuse.org/request/show/158010
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=18
2013-03-09 06:51:43 +00:00
Sascha Peilicke
3eca784518 Accepting request 158008 from home:tpaszkowski:ovsv3
- always build in openvswitch kernel module (gre tunelling not present
  within the standard kernel module)
- removed unnedded build rquirements (move to appropriate subpackage)
- moved common stuff to main pkg
- added group filed to packages and sub packages
- switch pkg suggest kernel module pkg
- moved python test stuff to python-openvswitch-test sub pkg
- moved ui interface requirements to ovsdbmonitor sub pkg
- ovsdbmonitor will not be build on sles (for now)
- sub pkg test require python-twisted (ovs-test)
- don't call boot.sh on sles11 (old autoconf). Shipped configuration stuff
  is ok (we don't patch plenty of stuff)
- ovs-parse-backtrace now part of main pkg
- addes ovs-l3ping,ovs-vlan-test to test sub pkg

OBS-URL: https://build.opensuse.org/request/show/158008
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=17
2013-03-08 14:12:33 +00:00
0cf858bdaa Accepting request 156896 from home:edssvirt:branches:network
- New upstream version 1.9.0
  http://openvswitch.org/releases/NEWS-1.9.0

OBS-URL: https://build.opensuse.org/request/show/156896
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=16
2013-03-02 12:51:25 +00:00
c275e1b90e Accepting request 141379 from home:rhafer:branches:network
bnc#774332, CVE-2012-3449

OBS-URL: https://build.opensuse.org/request/show/141379
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=15
2012-11-15 09:20:47 +00:00
8e36dbc125 Accepting request 134731 from home:onielsen:Virtualization
New upstream version 1.7.0

OBS-URL: https://build.opensuse.org/request/show/134731
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=14
2012-09-22 08:37:15 +00:00
4e8d8ef605 Accepting request 129473 from home:onielsen:Virtualization
- New upstream version 1.7.0
  * Added support to mask nd_target for ICMPv6 neighbor discovery flows.
  * Added the granular link health statistics, 'cfm_health', to an
    interface.
  * Added ability to configure DSCP setting for manager and controller
    connections.
  * Tripled flow setup performance.
- Adjusted openvswitch-1.1.0-stp-fwd-delay.patch (new filename)

OBS-URL: https://build.opensuse.org/request/show/129473
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=13
2012-07-31 19:31:44 +00:00
a166054fc3 Accepting request 128990 from home:rhafer:branches:network
12.2 and newer use different names for the kernel modules

OBS-URL: https://build.opensuse.org/request/show/128990
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=12
2012-07-27 16:38:53 +00:00
99b46aeed4 Accepting request 127211 from home:onielsen:Virtualization
Fixed as instructed in OBS request 127153

New upstream version 1.6.1
 * Added support for bitwise matching on TCP and UDP ports.
 * Support for limiting the number of flows in an OpenFlow flow
   table, with configurable policy for evicting flows upon
   overflow.
 * Added an OpenFlow extension that allows controllers more precise
   control over which messages they receive asynchronously.
 * CFM module CCM broadcasts can now be tagged with an 802.1p priority.
 * Load balancing for bonds can be disabled.

New in upstream version 1.5.0
 * OpenFlow:
     - Added support for querying, modifying, and deleting flows
       based on flow cookie when using NXM.
     - Added new NXM_PACKET_IN format.
 * ovs-ofctl:
     - Added daemonization support to the monitor and snoop commands.
 * ovs-vsctl:
     - The "find" command supports new set relational operators
       {=}, {!=}, {<}, {>}, {<=}, and {>=}.
 * ovsdb-tool now uses the typical database and schema installation
   directories as defaults

OBS-URL: https://build.opensuse.org/request/show/127211
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=11
2012-07-05 21:34:08 +00:00
6290fc16ad Accepting request 120665 from home:onielsen:branches:network
New upstream version 1.4.1
 * The default MAC learning timeout has
   been increased from 60 seconds to 300
   seconds. The MAC learning timeout is now
   configurable.
 * Bug fixes

OBS-URL: https://build.opensuse.org/request/show/120665
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=10
2012-05-23 07:52:21 +00:00
6bf11c02e8 Accepting request 113572 from home:onielsen:branches:network
Adjusted build fix for factory; build KMP packages from kernel-source on openSuSE > 12.1.

OBS-URL: https://build.opensuse.org/request/show/113572
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=9
2012-05-03 07:51:43 +00:00
f6db658d30 Accepting request 109731 from home:mvidner:branches:network
fix 11.4 build

OBS-URL: https://build.opensuse.org/request/show/109731
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=8
2012-04-05 16:51:01 +00:00
1c3f3a7814 Accepting request 107677 from home:dmacvicar:branches:network
- Rewrite the package based on the debian version instead
  * current package was tied to xenserver config without
    even requiring it
  * instead of one big package depending even on qt4, there
    are -switch, -controller, -test subpackages now

OBS-URL: https://build.opensuse.org/request/show/107677
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=7
2012-03-14 10:03:21 +00:00
Petr Uzel
24ccc2b149 Accepting request 106537 from home:onielsen:branches:network
Updated to 1.4.0 (supports up to kernel 3.3) - builds on 11.4, 12.1 and Factory

OBS-URL: https://build.opensuse.org/request/show/106537
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=6
2012-02-25 12:59:37 +00:00
Stephan Kulow
f209284f10 Accepting request 81364 from home:anubisg1:networking
new upstream version

OBS-URL: https://build.opensuse.org/request/show/81364
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=5
2011-09-12 13:38:48 +00:00
Minh Ngo
8b944bd91c Accepting request 78337 from home:anubisg1:networking
new upstream version 1.2.0 : added support to linux 3.0

OBS-URL: https://build.opensuse.org/request/show/78337
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=4
2011-08-08 19:19:28 +00:00
Lars Vogdt
dbc1de3515 Accepting request 70540 from home:anubisg1:branches:network
spec file clean up, added the proper dependencies adding python functions and upstream version 1.1.0 (previous was 1.1.0 pre15), python-pyside is optional, re-enabled kmp packages

OBS-URL: https://build.opensuse.org/request/show/70540
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=3
2011-05-20 19:19:18 +00:00
1b0709ec1d Accepting request 57888 from home:pmullaney:openvswitch
reviewed

OBS-URL: https://build.opensuse.org/request/show/57888
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=2
2011-01-11 15:04:59 +00:00
Lars Vogdt
58f2e118c9 Accepting request 55634 from home:pmullaney:openvswitch
OBS-URL: https://build.opensuse.org/request/show/55634
OBS-URL: https://build.opensuse.org/package/show/network/openvswitch?expand=0&rev=1
2010-12-11 16:10:38 +00:00
13 changed files with 28 additions and 1030 deletions

View File

@ -1,517 +0,0 @@
commit 9d840923d32124fe427de76e8234c49d64e4bb77
Author: Aaron Conole <aconole@redhat.com>
Date: Fri Mar 31 17:17:27 2023 -0400
ofproto-dpif-xlate: Always mask ip proto field.
The ofproto layer currently treats nw_proto field as overloaded to mean
both that a proper nw layer exists, as well as the value contained in
the header for the nw proto. However, this is incorrect behavior as
relevant standards permit that any value, including '0' should be treated
as a valid value.
Because of this overload, when the ofproto layer builds action list for
a packet with nw_proto of 0, it won't build the complete action list that
we expect to be built for the packet. That will cause a bad behavior
where all packets passing the datapath will fall into an incomplete
action set.
The fix here is to unwildcard nw_proto, allowing us to preserve setting
actions for protocols which we know have support for the actions we
program. This means that a traffic which contains nw_proto == 0 cannot
cause connectivity breakage with other traffic on the link.
Reported-by: David Marchand <dmarchand@redhat.com>
Reported-at: https://bugzilla.redhat.com/show_bug.cgi?id=2134873
Acked-by: Ilya Maximets <i.maximets@ovn.org>
Signed-off-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
diff --git a/include/openvswitch/meta-flow.h b/include/openvswitch/meta-flow.h
index 045dce8f5..3b0220aaa 100644
--- a/include/openvswitch/meta-flow.h
+++ b/include/openvswitch/meta-flow.h
@@ -2366,6 +2366,10 @@ void mf_format_subvalue(const union mf_subvalue *subvalue, struct ds *s);
void field_array_set(enum mf_field_id id, const union mf_value *,
struct field_array *);
+/* Mask the required l3 prerequisites if a 'set' action occurs. */
+void mf_set_mask_l3_prereqs(const struct mf_field *, const struct flow *,
+ struct flow_wildcards *);
+
#ifdef __cplusplus
}
#endif
diff --git a/lib/meta-flow.c b/lib/meta-flow.c
index c576ae620..474344194 100644
--- a/lib/meta-flow.c
+++ b/lib/meta-flow.c
@@ -3676,3 +3676,28 @@ mf_bitmap_not(struct mf_bitmap x)
bitmap_not(x.bm, MFF_N_IDS);
return x;
}
+
+void
+mf_set_mask_l3_prereqs(const struct mf_field *mf, const struct flow *fl,
+ struct flow_wildcards *wc)
+{
+ if (is_ip_any(fl) &&
+ ((mf->id == MFF_IPV4_SRC) ||
+ (mf->id == MFF_IPV4_DST) ||
+ (mf->id == MFF_IPV6_SRC) ||
+ (mf->id == MFF_IPV6_DST) ||
+ (mf->id == MFF_IPV6_LABEL) ||
+ (mf->id == MFF_IP_DSCP) ||
+ (mf->id == MFF_IP_ECN) ||
+ (mf->id == MFF_IP_TTL))) {
+ WC_MASK_FIELD(wc, nw_proto);
+ } else if ((fl->dl_type == htons(ETH_TYPE_ARP)) &&
+ ((mf->id == MFF_ARP_OP) ||
+ (mf->id == MFF_ARP_SHA) ||
+ (mf->id == MFF_ARP_THA) ||
+ (mf->id == MFF_ARP_SPA) ||
+ (mf->id == MFF_ARP_TPA))) {
+ /* mask only the lower 8 bits. */
+ wc->masks.nw_proto = 0xff;
+ }
+}
diff --git a/ofproto/ofproto-dpif-xlate.c b/ofproto/ofproto-dpif-xlate.c
index a9cf3cbee..cffd733c5 100644
--- a/ofproto/ofproto-dpif-xlate.c
+++ b/ofproto/ofproto-dpif-xlate.c
@@ -5211,6 +5211,7 @@ compose_dec_ttl(struct xlate_ctx *ctx, struct ofpact_cnt_ids *ids)
}
ctx->wc->masks.nw_ttl = 0xff;
+ WC_MASK_FIELD(ctx->wc, nw_proto);
if (flow->nw_ttl > 1) {
flow->nw_ttl--;
return false;
@@ -7128,6 +7129,7 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len,
case OFPACT_SET_IPV4_SRC:
if (flow->dl_type == htons(ETH_TYPE_IP)) {
memset(&wc->masks.nw_src, 0xff, sizeof wc->masks.nw_src);
+ WC_MASK_FIELD(wc, nw_proto);
flow->nw_src = ofpact_get_SET_IPV4_SRC(a)->ipv4;
}
break;
@@ -7135,12 +7137,14 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len,
case OFPACT_SET_IPV4_DST:
if (flow->dl_type == htons(ETH_TYPE_IP)) {
memset(&wc->masks.nw_dst, 0xff, sizeof wc->masks.nw_dst);
+ WC_MASK_FIELD(wc, nw_proto);
flow->nw_dst = ofpact_get_SET_IPV4_DST(a)->ipv4;
}
break;
case OFPACT_SET_IP_DSCP:
if (is_ip_any(flow)) {
+ WC_MASK_FIELD(wc, nw_proto);
wc->masks.nw_tos |= IP_DSCP_MASK;
flow->nw_tos &= ~IP_DSCP_MASK;
flow->nw_tos |= ofpact_get_SET_IP_DSCP(a)->dscp;
@@ -7149,6 +7153,7 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len,
case OFPACT_SET_IP_ECN:
if (is_ip_any(flow)) {
+ WC_MASK_FIELD(wc, nw_proto);
wc->masks.nw_tos |= IP_ECN_MASK;
flow->nw_tos &= ~IP_ECN_MASK;
flow->nw_tos |= ofpact_get_SET_IP_ECN(a)->ecn;
@@ -7157,6 +7162,7 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len,
case OFPACT_SET_IP_TTL:
if (is_ip_any(flow)) {
+ WC_MASK_FIELD(wc, nw_proto);
wc->masks.nw_ttl = 0xff;
flow->nw_ttl = ofpact_get_SET_IP_TTL(a)->ttl;
}
@@ -7224,6 +7230,7 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len,
/* Set the field only if the packet actually has it. */
if (mf_are_prereqs_ok(mf, flow, wc)) {
+ mf_set_mask_l3_prereqs(mf, flow, wc);
mf_mask_field_masked(mf, ofpact_set_field_mask(set_field), wc);
mf_set_flow_value_masked(mf, set_field->value,
ofpact_set_field_mask(set_field),
@@ -7280,6 +7287,7 @@ do_xlate_actions(const struct ofpact *ofpacts, size_t ofpacts_len,
case OFPACT_DEC_TTL:
wc->masks.nw_ttl = 0xff;
+ WC_MASK_FIELD(wc, nw_proto);
if (compose_dec_ttl(ctx, ofpact_get_DEC_TTL(a))) {
return;
}
diff --git a/tests/ofproto-dpif.at b/tests/ofproto-dpif.at
index fa6111c1e..62291de4a 100644
--- a/tests/ofproto-dpif.at
+++ b/tests/ofproto-dpif.at
@@ -849,7 +849,7 @@ table=2 ip actions=set_field:192.168.3.91->ip_src,output(11)
AT_CHECK([ovs-ofctl -O OpenFlow12 add-flows br0 flows.txt])
AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=1,nw_tos=0,nw_ttl=128,nw_frag=no,icmp_type=8,icmp_code=0'], [0], [stdout])
AT_CHECK([tail -2 stdout], [0],
- [Megaflow: recirc_id=0,eth,ip,in_port=1,nw_src=192.168.0.1,nw_frag=no
+ [Megaflow: recirc_id=0,eth,icmp,in_port=1,nw_src=192.168.0.1,nw_frag=no
Datapath actions: 10,set(ipv4(src=192.168.3.91)),11,set(ipv4(src=192.168.3.90)),13
])
OVS_VSWITCHD_STOP
@@ -912,7 +912,7 @@ AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_ds
# Must match on the source address to be able to restore it's value for
# the second bucket
AT_CHECK([tail -2 stdout], [0],
- [Megaflow: recirc_id=0,eth,ip,in_port=1,nw_src=192.168.0.1,nw_frag=no
+ [Megaflow: recirc_id=0,eth,icmp,in_port=1,nw_src=192.168.0.1,nw_frag=no
Datapath actions: set(ipv4(src=192.168.3.90)),10,set(ipv4(src=192.168.0.1)),11
])
OVS_VSWITCHD_STOP
@@ -944,7 +944,7 @@ done
AT_CHECK([ovs-appctl dpctl/dump-flows | sed 's/dp_hash(.*\/0xf)/dp_hash(0xXXXX\/0xf)/' | sed 's/packets.*actions:/actions:/' | strip_ufid | strip_used | sort], [0], [dnl
flow-dump from the main thread:
recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:hash(sym_l4(0)),recirc(0x1)
-recirc_id(0x1),dp_hash(0xXXXX/0xf),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(src=192.168.0.1,frag=no), actions:set(ipv4(src=192.168.3.90)),10,set(ipv4(src=192.168.0.1)),10
+recirc_id(0x1),dp_hash(0xXXXX/0xf),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(src=192.168.0.1,proto=1,frag=no), actions:set(ipv4(src=192.168.3.90)),10,set(ipv4(src=192.168.0.1)),10
])
OVS_VSWITCHD_STOP
@@ -959,7 +959,7 @@ AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_ds
# Must match on the source address to be able to restore it's value for
# the third bucket
AT_CHECK([tail -2 stdout], [0],
- [Megaflow: recirc_id=0,eth,ip,in_port=1,nw_src=192.168.0.1,nw_frag=no
+ [Megaflow: recirc_id=0,eth,icmp,in_port=1,nw_src=192.168.0.1,nw_frag=no
Datapath actions: set(ipv4(src=192.168.3.90)),10,set(ipv4(src=192.168.0.1)),11
])
OVS_VSWITCHD_STOP
@@ -1536,17 +1536,17 @@ AT_CHECK([ovs-ofctl add-flows br0 flows.txt])
AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=111,tos=0,ttl=2,frag=no)' -generate], [0], [stdout])
AT_CHECK([tail -4 stdout], [0], [
Final flow: ip,in_port=1,vlan_tci=0x0000,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=111,nw_tos=0,nw_ecn=0,nw_ttl=1,nw_frag=no
-Megaflow: recirc_id=0,eth,ip,in_port=1,nw_ttl=2,nw_frag=no
+Megaflow: recirc_id=0,eth,ip,in_port=1,nw_proto=111,nw_ttl=2,nw_frag=no
Datapath actions: set(ipv4(ttl=1)),2,userspace(pid=0,controller(reason=2,dont_send=0,continuation=0,recirc_id=1,rule_cookie=0,controller_id=0,max_len=65535)),4
])
AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=192.168.0.1,dst=192.168.0.2,proto=111,tos=0,ttl=3,frag=no)'], [0], [stdout])
AT_CHECK([tail -2 stdout], [0],
- [Megaflow: recirc_id=0,eth,ip,in_port=1,nw_ttl=3,nw_frag=no
+ [Megaflow: recirc_id=0,eth,ip,in_port=1,nw_proto=111,nw_ttl=3,nw_frag=no
Datapath actions: set(ipv4(ttl=2)),2,set(ipv4(ttl=1)),3,4
])
AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(1),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x86dd),ipv6(src=::1,dst=::2,label=0,proto=10,tclass=0x70,hlimit=128,frag=no)'], [0], [stdout])
AT_CHECK([tail -2 stdout], [0],
- [Megaflow: recirc_id=0,eth,ipv6,in_port=1,nw_ttl=128,nw_frag=no
+ [Megaflow: recirc_id=0,eth,ipv6,in_port=1,nw_proto=10,nw_ttl=128,nw_frag=no
Datapath actions: set(ipv6(hlimit=127)),2,set(ipv6(hlimit=126)),3,4
])
@@ -1656,7 +1656,7 @@ AT_CHECK([ovs-vsctl -- \
--id=@q2 create Queue dscp=2], [0], [ignore])
AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(9),eth(src=50:54:00:00:00:05,dst=50:54:00:00:00:07),eth_type(0x0800),ipv4(src=1.1.1.1,dst=2.2.2.2,proto=1,tos=0xff,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout])
AT_CHECK([tail -2 stdout], [0],
- [Megaflow: recirc_id=0,skb_priority=0,eth,ip,in_port=9,nw_tos=252,nw_frag=no
+ [Megaflow: recirc_id=0,skb_priority=0,eth,icmp,in_port=9,nw_tos=252,nw_frag=no
Datapath actions: dnl
100,dnl
set(ipv4(tos=0x4/0xfc)),set(skb_priority(0x1)),1,dnl
@@ -8777,12 +8777,12 @@ recirc_id(0),in_port(3),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), p
])
AT_CHECK([ovs-appctl dpif/dump-flows -m br0 | strip_ufid | strip_used | sort], [0], [dnl
-skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(p1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:05/00:00:00:00:00:00,dst=50:54:00:00:00:07/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.0.1/0.0.0.0,dst=192.168.0.2/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:0, bytes:0, used:never, actions:drop
-skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(p2),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:07/00:00:00:00:00:00,dst=50:54:00:00:00:05/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.0.2/0.0.0.0,dst=192.168.0.1/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=0/0,code=0/0), packets:0, bytes:0, used:never, actions:drop
+recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(p1),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:05/00:00:00:00:00:00,dst=50:54:00:00:00:07/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.0.1/0.0.0.0,dst=192.168.0.2/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:0, bytes:0, used:never, actions:drop
+recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(p2),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:07/00:00:00:00:00:00,dst=50:54:00:00:00:05/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.0.2/0.0.0.0,dst=192.168.0.1/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=0/0,code=0/0), packets:0, bytes:0, used:never, actions:drop
])
AT_CHECK([ovs-appctl dpif/dump-flows -m br1 | strip_ufid | strip_used | sort], [0], [dnl
-skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(p3),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09/00:00:00:00:00:00,dst=50:54:00:00:00:0a/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=10.0.0.2/0.0.0.0,dst=10.0.0.1/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:0, bytes:0, used:never, actions:drop
+recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(p3),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09/00:00:00:00:00:00,dst=50:54:00:00:00:0a/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=10.0.0.2/0.0.0.0,dst=10.0.0.1/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:0, bytes:0, used:never, actions:drop
])
OVS_VSWITCHD_STOP
@@ -8942,10 +8942,10 @@ recirc_id(0),in_port(101),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no),
])
AT_CHECK([grep -e 'in_port(100).*packets:9' ovs-vswitchd.log | strip_ufid | filter_flow_dump], [0], [dnl
-skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(100),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:05/00:00:00:00:00:00,dst=50:54:00:00:00:07/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.0.1/0.0.0.0,dst=192.168.0.2/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:9, bytes:954, used:0.0s, actions:101,3,2
+recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(100),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:05/00:00:00:00:00:00,dst=50:54:00:00:00:07/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.0.1/0.0.0.0,dst=192.168.0.2/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:9, bytes:954, used:0.0s, actions:101,3,2
])
AT_CHECK([grep -e 'in_port(101).*packets:4' ovs-vswitchd.log | strip_ufid | filter_flow_dump], [0], [dnl
-skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(101),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:07/00:00:00:00:00:00,dst=50:54:00:00:00:05/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.0.2/0.0.0.0,dst=192.168.0.1/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:4, bytes:424, used:0.0s, actions:100,2,3
+recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(101),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:07/00:00:00:00:00:00,dst=50:54:00:00:00:05/00:00:00:00:00:00),eth_type(0x0800),ipv4(src=192.168.0.2/0.0.0.0,dst=192.168.0.1/0.0.0.0,proto=1/0,tos=0/0,ttl=64/0,frag=no),icmp(type=8/0,code=0/0), packets:4, bytes:424, used:0.0s, actions:100,2,3
])
AT_CHECK([ovs-ofctl dump-ports br0 pbr0], [0], [dnl
@@ -9637,12 +9637,12 @@ table=0 in_port=1,ip,nw_dst=10.0.0.3 actions=drop
done
sleep 1
AT_CHECK([strip_ufid < ovs-vswitchd.log | filter_flow_install | strip_used], [0], [dnl
-skb_priority(0),skb_mark(0),ct_state(-new-est-rel-rpl-inv-trk-snat-dnat),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), actions:2
-skb_priority(0),skb_mark(0),ct_state(-new-est-rel-rpl-inv-trk-snat-dnat),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.4,dst=10.0.0.3,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), actions:drop
+recirc_id(0),dp_hash(0),skb_priority(0),in_port(1),skb_mark(0),ct_state(-new-est-rel-rpl-inv-trk-snat-dnat),ct_zone(0),ct_mark(0),ct_label(0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), actions:2
+recirc_id(0),dp_hash(0),skb_priority(0),in_port(1),skb_mark(0),ct_state(-new-est-rel-rpl-inv-trk-snat-dnat),ct_zone(0),ct_mark(0),ct_label(0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.4,dst=10.0.0.3,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), actions:drop
])
AT_CHECK([strip_ufid < ovs-vswitchd.log | filter_flow_dump | grep 'packets:3'], [0], [dnl
-skb_priority(0),skb_mark(0),ct_state(0/0xff),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), packets:3, bytes:318, used:0.0s, actions:2
-skb_priority(0),skb_mark(0),ct_state(0/0xff),ct_zone(0),ct_mark(0),ct_label(0),recirc_id(0),dp_hash(0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.4,dst=10.0.0.3,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), packets:3, bytes:318, used:0.0s, actions:drop
+recirc_id(0),dp_hash(0),skb_priority(0),in_port(1),skb_mark(0),ct_state(0/0xff),ct_zone(0),ct_mark(0),ct_label(0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.0.0.2,dst=10.0.0.1,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), packets:3, bytes:318, used:0.0s, actions:2
+recirc_id(0),dp_hash(0),skb_priority(0),in_port(1),skb_mark(0),ct_state(0/0xff),ct_zone(0),ct_mark(0),ct_label(0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=10.0.0.4,dst=10.0.0.3,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0), packets:3, bytes:318, used:0.0s, actions:drop
])
OVS_VSWITCHD_STOP
AT_CLEANUP])
@@ -10344,7 +10344,7 @@ recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x1234), packets:5, byte
])
AT_CHECK([grep 'modify' ovs-vswitchd.log | strip_ufid ], [0], [dnl
-dpif|DBG|dummy@ovs-dummy: put[[modify]] skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09/00:00:00:00:00:00,dst=50:54:00:00:00:0a/00:00:00:00:00:00),eth_type(0x1234), actions:push_vlan(vid=4,pcp=0),100
+dpif|DBG|dummy@ovs-dummy: put[[modify]] recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(1),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09/00:00:00:00:00:00,dst=50:54:00:00:00:0a/00:00:00:00:00:00),eth_type(0x1234), actions:push_vlan(vid=4,pcp=0),100
])
OVS_VSWITCHD_STOP
AT_CLEANUP
@@ -10425,8 +10425,8 @@ recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x8100),vlan(vid=99,pcp=
# are wildcarded.
AT_CHECK([grep '\(modify\)\|\(flow_add\)' ovs-vswitchd.log | strip_ufid ], [0], [dnl
dpif_netdev|DBG|flow_add: recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x1234), actions:100
-dpif|DBG|dummy@ovs-dummy: put[[modify]] skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09/00:00:00:00:00:00,dst=50:54:00:00:00:0a/00:00:00:00:00:00),eth_type(0x1234), actions:drop
-dpif|DBG|dummy@ovs-dummy: put[[modify]] skb_priority(0/0),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),recirc_id(0),dp_hash(0/0),in_port(1),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09/00:00:00:00:00:00,dst=50:54:00:00:00:0a/00:00:00:00:00:00),eth_type(0x1234), actions:100
+dpif|DBG|dummy@ovs-dummy: put[[modify]] recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(1),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09/00:00:00:00:00:00,dst=50:54:00:00:00:0a/00:00:00:00:00:00),eth_type(0x1234), actions:drop
+dpif|DBG|dummy@ovs-dummy: put[[modify]] recirc_id(0),dp_hash(0/0),skb_priority(0/0),in_port(1),skb_mark(0/0),ct_state(0/0),ct_zone(0/0),ct_mark(0/0),ct_label(0/0),packet_type(ns=0,id=0),eth(src=50:54:00:00:00:09/00:00:00:00:00:00,dst=50:54:00:00:00:0a/00:00:00:00:00:00),eth_type(0x1234), actions:100
dpif_netdev|DBG|flow_add: recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x8100),vlan(vid=99,pcp=7/0x0),encap(eth_type(0x1234)), actions:drop
])
OVS_VSWITCHD_STOP
@@ -10752,10 +10752,10 @@ AT_CHECK([ovs-appctl netdev-dummy/receive p2 'in_port(2),eth(src=50:54:00:00:00:
AT_CHECK([cat ovs-vswitchd.log | strip_ufid | filter_flow_install], [0], [dnl
-ct_state(+new-est+trk),recirc_id(0x1),in_port(2),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:drop
-ct_state(-new+est+trk),recirc_id(0x1),in_port(2),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(proto=17,frag=no), actions:1
recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(proto=17,frag=no), actions:ct(commit),2
recirc_id(0),in_port(2),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(proto=17,frag=no), actions:ct,recirc(0x1)
+recirc_id(0x1),in_port(2),ct_state(+new-est+trk),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:drop
+recirc_id(0x1),in_port(2),ct_state(-new+est+trk),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(proto=17,frag=no), actions:1
])
OVS_VSWITCHD_STOP
@@ -11161,9 +11161,9 @@ AT_CHECK([ovs-appctl netdev-dummy/receive p2 'in_port(2),eth(src=50:54:00:00:00:
ovs-appctl revalidator/wait
AT_CHECK([cat ovs-vswitchd.log | strip_ufid | filter_flow_install], [0], [dnl
-ct_state(+rpl+trk),ct_label(0x1),recirc_id(0x1),in_port(2),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:1
recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(proto=17,frag=no),udp(src=1), actions:ct(commit,label=0x1),2
recirc_id(0),in_port(2),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:ct,recirc(0x1)
+recirc_id(0x1),in_port(2),ct_state(+rpl+trk),ct_label(0x1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(frag=no), actions:1
])
OVS_VSWITCHD_STOP
@@ -11884,7 +11884,7 @@ ovs-ofctl dump-flows br0
AT_CHECK([ovs-appctl ofproto/trace ovs-dummy 'in_port(1),eth(src=50:54:00:00:00:09,dst=50:54:00:00:00:0a),eth_type(0x0800),ipv4(src=10.10.10.2,dst=10.10.10.1,proto=1,tos=1,ttl=128,frag=no),icmp(type=8,code=0)'], [0], [stdout])
AT_CHECK([tail -3 stdout], [0], [dnl
-Megaflow: recirc_id=0,eth,ip,reg0=0/0x1,in_port=1,nw_src=10.10.10.2,nw_frag=no
+Megaflow: recirc_id=0,eth,icmp,reg0=0/0x1,in_port=1,nw_src=10.10.10.2,nw_frag=no
Datapath actions: drop
Translation failed (Recursion too deep), packet is dropped.
])
diff --git a/tests/ofproto.at b/tests/ofproto.at
index a666bebca..2fa8486a8 100644
--- a/tests/ofproto.at
+++ b/tests/ofproto.at
@@ -6538,3 +6538,185 @@ verify_deleted
OVS_VSWITCHD_STOP(["/<invalid/d"])
AT_CLEANUP
+
+AT_SETUP([ofproto - implicit mask of ipv4 proto with invalid proto field])
+OVS_VSWITCHD_START
+add_of_ports br0 1 2
+
+AT_DATA([flows.txt], [dnl
+table=0 in_port=1 priority=90,ip,nw_dst=192.168.1.20,actions=mod_nw_dst:192.168.20.20,output=2
+table=0 in_port=1 priority=89,ip,nw_dst=192.168.1.21,actions=mod_nw_src:192.168.20.21,output=2
+table=0 in_port=1 priority=88,ip,nw_dst=192.168.1.10,actions=dec_ttl,output=2
+table=0 in_port=1 priority=87,ip,nw_dst=192.168.1.19,actions=mod_nw_ttl:8,output=2
+table=0 in_port=1 priority=86,ip,nw_dst=192.168.1.18,actions=mod_nw_ecn:2,output=2
+table=0 in_port=1 priority=85,ip,nw_dst=192.168.1.17,actions=mod_nw_tos:0x40,output=2
+table=0 in_port=1 priority=84,ip,nw_dst=192.168.1.16,actions=set_field:192.168.20.26->nw_dst,output=2
+table=0 in_port=1 priority=83,ip,nw_dst=192.168.1.15,actions=set_field:192.168.21.26->nw_src,output=2
+table=0 in_port=1 priority=82,ip,nw_dst=192.168.1.14,actions=set_field:0x40->nw_tos,output=2
+table=0 in_port=1 priority=0,actions=drop
+])
+AT_CHECK([ovs-ofctl del-flows br0])
+AT_CHECK([ovs-ofctl add-flows br0 flows.txt])
+
+dnl send a proto 0 packet to try and poison the DP flow path
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 \
+ '5054000000075054000000050800450000548de140004000289fc0a801c4c0a8011408003bf60002001bbf080a640000000032ad010000000000101112131415161718191a1b1c1d1e1f202122232425262728292a2b2c2d2e2f3031323334353637'])
+
+AT_CHECK([ovs-appctl dpctl/dump-flows], [0], [dnl
+flow-dump from the main thread:
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.20,proto=0,frag=no), packets:0, bytes:0, used:never, actions:2
+])
+
+dnl Send ICMP for mod nw_src and mod nw_dst
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.21,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.20,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+
+dnl send ICMP that will dec TTL
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.10,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+
+dnl send ICMP that will mod TTL
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.19,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+
+dnl send ICMP that will mod ECN
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.18,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+
+dnl send ICMP that will mod TOS
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.17,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+
+dnl send ICMP that will set DST
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.16,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+
+dnl send ICMP that will set SRC
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.15,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+
+dnl send ICMP that will set TOS
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.14,proto=1,tos=0,ttl=64,frag=no),icmp(type=8,code=0)'])
+
+AT_CHECK([ovs-appctl dpctl/dump-flows | sort], [0], [dnl
+flow-dump from the main thread:
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.10,proto=1,ttl=64,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(ttl=63)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.14,proto=1,tos=0/0xfc,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(tos=0x40/0xfc)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.16,proto=1,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(dst=192.168.20.26)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.17,proto=1,tos=0/0xfc,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(tos=0x40/0xfc)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.18,proto=1,tos=0/0x3,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(tos=0x2/0x3)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.19,proto=1,ttl=64,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(ttl=8)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.20,proto=0,frag=no), packets:0, bytes:0, used:never, actions:2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(dst=192.168.1.20,proto=1,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(dst=192.168.20.20)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.15,proto=1,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(src=192.168.21.26)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(src=192.168.1.1,dst=192.168.1.21,proto=1,frag=no), packets:0, bytes:0, used:never, actions:set(ipv4(src=192.168.20.21)),2
+])
+
+OVS_VSWITCHD_STOP
+AT_CLEANUP
+
+AT_SETUP([ofproto - implicit mask of ipv6 proto with HOPOPT field])
+OVS_VSWITCHD_START
+add_of_ports br0 1 2
+
+AT_DATA([flows.txt], [dnl
+table=0 in_port=1 priority=77,ip6,ipv6_dst=111:db8::3,actions=dec_ttl,output=2
+table=0 in_port=1 priority=76,ip6,ipv6_dst=111:db8::4,actions=mod_nw_ttl:8,output=2
+table=0 in_port=1 priority=75,ip6,ipv6_dst=111:db8::5,actions=mod_nw_ecn:2,output=2
+table=0 in_port=1 priority=74,ip6,ipv6_dst=111:db8::6,actions=mod_nw_tos:0x40,output=2
+table=0 in_port=1 priority=73,ip6,ipv6_dst=111:db8::7,actions=set_field:2112:db8::2->ipv6_dst,output=2
+table=0 in_port=1 priority=72,ip6,ipv6_dst=111:db8::8,actions=set_field:2112:db8::3->ipv6_src,output=2
+table=0 in_port=1 priority=72,ip6,ipv6_dst=111:db8::9,actions=set_field:44->ipv6_label,output=2
+table=0 in_port=1 priority=0,actions=drop
+])
+AT_CHECK([ovs-ofctl del-flows br0])
+AT_CHECK([ovs-ofctl add-flows br0 flows.txt])
+
+dnl send a proto 0 packet to try and poison the DP flow path
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::3,proto=0,tclass=0,hlimit=64,frag=no)'])
+
+AT_CHECK([ovs-appctl dpctl/dump-flows], [0], [dnl
+flow-dump from the main thread:
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(dst=111:db8::3,proto=0,hlimit=0,frag=no), packets:0, bytes:0, used:never, actions:userspace(pid=0,controller(reason=2,dont_send=0,continuation=0,recirc_id=1,rule_cookie=0,controller_id=0,max_len=65535))
+])
+
+dnl Send ICMP for mod nw_src and mod nw_dst
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::3,proto=1,tclass=0,hlimit=64,frag=no),icmpv6(type=0,code=8)'])
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::4,proto=1,tclass=0,hlimit=64,frag=no),icmpv6(type=0,code=8)'])
+
+dnl send ICMP that will dec TTL
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::5,proto=1,tclass=0,hlimit=64,frag=no),icmpv6(type=0,code=8)'])
+
+dnl send ICMP that will mod TTL
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::6,proto=1,tclass=0,hlimit=64,frag=no),icmpv6(type=0,code=8)'])
+
+dnl send ICMP that will mod ECN
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::7,proto=1,tclass=0,hlimit=64,frag=no),icmpv6(type=0,code=8)'])
+
+dnl send ICMP that will mod TOS
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::8,proto=1,tclass=0,hlimit=64,frag=no),icmpv6(type=0,code=8)'])
+
+dnl send ICMP that will set LABEL
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::9,proto=1,tclass=0,hlimit=64,frag=no),icmpv6(type=0,code=8)'])
+
+AT_CHECK([ovs-appctl dpctl/dump-flows | sort], [0], [dnl
+flow-dump from the main thread:
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(dst=111:db8::3,proto=0,hlimit=0,frag=no), packets:0, bytes:0, used:never, actions:userspace(pid=0,controller(reason=2,dont_send=0,continuation=0,recirc_id=1,rule_cookie=0,controller_id=0,max_len=65535))
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(dst=111:db8::3,proto=1,hlimit=64,frag=no), packets:0, bytes:0, used:never, actions:set(ipv6(hlimit=63)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(dst=111:db8::4,proto=1,hlimit=64,frag=no), packets:0, bytes:0, used:never, actions:set(ipv6(hlimit=8)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(dst=111:db8::5,proto=1,tclass=0/0x3,frag=no), packets:0, bytes:0, used:never, actions:set(ipv6(tclass=0x2/0x3)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(dst=111:db8::6,proto=1,tclass=0/0xfc,frag=no), packets:0, bytes:0, used:never, actions:set(ipv6(tclass=0x40/0xfc)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(dst=111:db8::7,proto=1,frag=no), packets:0, bytes:0, used:never, actions:set(ipv6(dst=2112:db8::2)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(dst=111:db8::9,label=0,proto=1,frag=no), packets:0, bytes:0, used:never, actions:set(ipv6(label=0x2c)),2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x86dd),ipv6(src=2001:db8::1,dst=111:db8::8,proto=1,frag=no), packets:0, bytes:0, used:never, actions:set(ipv6(src=2112:db8::3)),2
+])
+
+OVS_VSWITCHD_STOP
+AT_CLEANUP
+
+AT_SETUP([ofproto - implicit mask of ARP OPer field])
+OVS_VSWITCHD_START
+add_of_ports br0 1 2
+
+AT_DATA([flows.txt], [dnl
+table=0 in_port=1 priority=77,arp,arp_sha=00:01:02:03:04:06,actions=set_field:0x1->arp_op,2
+table=0 in_port=1 priority=76,arp,arp_sha=00:01:02:03:04:07,actions=set_field:00:02:03:04:05:06->arp_sha,2
+table=0 in_port=1 priority=75,arp,arp_sha=00:01:02:03:04:08,actions=set_field:ff:00:00:00:00:ff->arp_tha,2
+table=0 in_port=1 priority=74,arp,arp_sha=00:01:02:03:04:09,actions=set_field:172.31.110.26->arp_spa,2
+table=0 in_port=1 priority=73,arp,arp_sha=00:01:02:03:04:0a,actions=set_field:172.31.110.10->arp_tpa,2
+table=0 in_port=1 priority=1,actions=drop
+])
+
+AT_CHECK([ovs-ofctl del-flows br0])
+AT_CHECK([ovs-ofctl add-flows br0 flows.txt])
+
+dnl Send op == 0 packet
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 \
+ 'ffffffffffffaa55aa550000080600010800060400000001020304070c0a00010000000000000c0a0002'])
+
+AT_CHECK([ovs-appctl dpctl/dump-flows], [0], [dnl
+flow-dump from the main thread:
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0806),arp(op=0,sha=00:01:02:03:04:07), packets:0, bytes:0, used:never, actions:2
+])
+
+dnl Send op 2 -> set op
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0806),arp(sip=172.31.110.1,tip=172.31.110.25,op=2,sha=00:01:02:03:04:06,tha=ff:ff:ff:ff:ff:ff)'])
+
+dnl Send op 1 -> set SHA
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0806),arp(sip=172.31.110.1,tip=172.31.110.25,op=1,sha=00:01:02:03:04:07,tha=ff:ff:ff:ff:ff:ff)'])
+
+dnl Send op 1 -> set THA
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0806),arp(sip=172.31.110.1,tip=172.31.110.25,op=1,sha=00:01:02:03:04:08,tha=ff:ff:ff:ff:ff:ff)'])
+
+dnl Send op 1 -> set SIP
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0806),arp(sip=172.31.110.1,tip=172.31.110.25,op=1,sha=00:01:02:03:04:09,tha=ff:ff:ff:ff:ff:ff)'])
+
+dnl Send op 1 -> set TIP
+AT_CHECK([ovs-appctl netdev-dummy/receive p1 'in_port(1),eth(src=50:54:00:00:00:0b,dst=50:54:00:00:00:0c),eth_type(0x0806),arp(sip=172.31.110.1,tip=172.31.110.25,op=1,sha=00:01:02:03:04:0a,tha=ff:ff:ff:ff:ff:ff)'])
+
+AT_CHECK([ovs-appctl dpctl/dump-flows | sort], [0], [dnl
+flow-dump from the main thread:
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0806),arp(op=0,sha=00:01:02:03:04:07), packets:0, bytes:0, used:never, actions:2
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0806),arp(op=1,sha=00:01:02:03:04:07), packets:0, bytes:0, used:never, actions:userspace(pid=0,slow_path(action))
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0806),arp(op=1,sha=00:01:02:03:04:08,tha=ff:ff:ff:ff:ff:ff), packets:0, bytes:0, used:never, actions:userspace(pid=0,slow_path(action))
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0806),arp(op=2,sha=00:01:02:03:04:06), packets:0, bytes:0, used:never, actions:userspace(pid=0,slow_path(action))
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0806),arp(sip=172.31.110.1,op=1,sha=00:01:02:03:04:09), packets:0, bytes:0, used:never, actions:userspace(pid=0,slow_path(action))
+recirc_id(0),in_port(1),packet_type(ns=0,id=0),eth_type(0x0806),arp(tip=172.31.110.25,op=1,sha=00:01:02:03:04:0a), packets:0, bytes:0, used:never, actions:userspace(pid=0,slow_path(action))
+])
+
+OVS_VSWITCHD_STOP
+AT_CLEANUP
diff --git a/tests/packet-type-aware.at b/tests/packet-type-aware.at
index 3b5c66fe5..d63528e69 100644
--- a/tests/packet-type-aware.at
+++ b/tests/packet-type-aware.at
@@ -1021,7 +1021,7 @@ AT_CHECK([
], [0], [flow-dump from the main thread:
recirc_id(0),in_port(p0),packet_type(ns=0,id=0),eth(src=aa:bb:cc:00:00:02,dst=aa:bb:cc:00:00:01),eth_type(0x0800),ipv4(dst=20.0.0.1,proto=47,frag=no), packets:3, bytes:378, used:0.0s, actions:tnl_pop(gre_sys)
tunnel(src=20.0.0.2,dst=20.0.0.1,flags(-df-csum)),recirc_id(0),in_port(gre_sys),packet_type(ns=1,id=0x8847),eth_type(0x8847),mpls(label=999/0x0,tc=0/0,ttl=64/0x0,bos=1/1), packets:3, bytes:264, used:0.0s, actions:push_eth(src=00:00:00:00:00:00,dst=00:00:00:00:00:00),pop_mpls(eth_type=0x800),recirc(0x1)
-tunnel(src=20.0.0.2,dst=20.0.0.1,flags(-df-csum)),recirc_id(0x1),in_port(gre_sys),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(ttl=64,frag=no), packets:3, bytes:294, used:0.0s, actions:set(ipv4(ttl=63)),int-br
+tunnel(src=20.0.0.2,dst=20.0.0.1,flags(-df-csum)),recirc_id(0x1),in_port(gre_sys),packet_type(ns=0,id=0),eth_type(0x0800),ipv4(proto=1,ttl=64,frag=no), packets:3, bytes:294, used:0.0s, actions:set(ipv4(ttl=63)),int-br
])
ovs-appctl time/warp 1000

View File

@ -1,121 +0,0 @@
commit 9a3f7ed905e525ebdcb14541e775211cbb0203bd
Author: Ales Musil <amusil@redhat.com>
Date: Wed Jul 12 07:12:29 2023 +0200
northd, controller: Add CoPP for SVC monitor
The SVC monitor was exposed without any limitation.
Add CoPP for the SVC monitor flow, which adds a way
for CMSs to limit the traffic that this flow accepts.
Signed-off-by: Ales Musil <amusil@redhat.com>
diff --git a/lib/copp.c b/lib/copp.c
index 603e3f5bf..11dd9029d 100644
--- a/lib/copp.c
+++ b/lib/copp.c
@@ -38,6 +38,7 @@ static char *copp_proto_names[COPP_PROTO_MAX] = {
[COPP_ND_RA_OPTS] = "nd-ra-opts",
[COPP_TCP_RESET] = "tcp-reset",
[COPP_REJECT] = "reject",
+ [COPP_SVC_MONITOR] = "svc-monitor",
[COPP_BFD] = "bfd",
};
diff --git a/lib/copp.h b/lib/copp.h
index f03004aa6..b99737220 100644
--- a/lib/copp.h
+++ b/lib/copp.h
@@ -37,6 +37,7 @@ enum copp_proto {
COPP_TCP_RESET,
COPP_BFD,
COPP_REJECT,
+ COPP_SVC_MONITOR,
COPP_PROTO_MAX,
COPP_PROTO_INVALID = COPP_PROTO_MAX,
};
diff --git a/northd/northd.c b/northd/northd.c
index 7ad4cdfad..1e05b8f22 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -8876,9 +8876,11 @@ build_lswitch_destination_lookup_bmcast(struct ovn_datapath *od,
{
if (od->nbs) {
- ovn_lflow_add(lflows, od, S_SWITCH_IN_L2_LKUP, 110,
- "eth.dst == $svc_monitor_mac",
- "handle_svc_check(inport);");
+ ovn_lflow_metered(lflows, od, S_SWITCH_IN_L2_LKUP, 110, "eth.dst == "
+ "$svc_monitor_mac && (tcp || icmp || icmp6)",
+ "handle_svc_check(inport);",
+ copp_meter_get(COPP_SVC_MONITOR, od->nbs->copp,
+ meter_groups));
struct mcast_switch_info *mcast_sw_info = &od->mcast_info.sw;
diff --git a/ovn-nb.xml b/ovn-nb.xml
index 35acda107..59ac42dbd 100644
--- a/ovn-nb.xml
+++ b/ovn-nb.xml
@@ -466,6 +466,10 @@
<column name="meters" key="reject">
Rate limiting meter for packets that trigger a reject action
</column>
+ <column name="meters" key="svc-monitor">
+ Rate limiting meter for packets that are arriving to service
+ monitor MAC address.
+ </column>
<column name="external_ids">
See <em>External IDs</em> at the beginning of this document.
</column>
diff --git a/tests/ovn-northd.at b/tests/ovn-northd.at
index b8376991b..70350a781 100644
--- a/tests/ovn-northd.at
+++ b/tests/ovn-northd.at
@@ -3544,7 +3544,7 @@ AT_CHECK([ovn-sbctl list logical_flow | grep trigger_event -A 2 | grep -q meter0
# let's try to add an usupported protocol "dhcp"
AT_CHECK([ovn-nbctl --wait=hv copp-add copp5 dhcp meter1],[1],[],[dnl
-ovn-nbctl: Invalid control protocol. Allowed values: arp, arp-resolve, dhcpv4-opts, dhcpv6-opts, dns, event-elb, icmp4-error, icmp6-error, igmp, nd-na, nd-ns, nd-ns-resolve, nd-ra-opts, tcp-reset, bfd, reject.
+ovn-nbctl: Invalid control protocol. Allowed values: arp, arp-resolve, dhcpv4-opts, dhcpv6-opts, dns, event-elb, icmp4-error, icmp6-error, igmp, nd-na, nd-ns, nd-ns-resolve, nd-ra-opts, tcp-reset, bfd, reject, svc-monitor.
])
#Let's try to add a valid protocol to an unknown datapath
diff --git a/tests/system-ovn.at b/tests/system-ovn.at
index f8131b90e..7c009e157 100644
--- a/tests/system-ovn.at
+++ b/tests/system-ovn.at
@@ -7282,6 +7282,23 @@ OVS_WAIT_UNTIL([
])
kill $(pidof tcpdump)
+check ovn-nbctl set nb_global . options:svc_monitor_mac="33:33:33:33:33:33"
+check ovn-nbctl meter-add svc-meter drop 1 pktps 0
+check ovn-nbctl --wait=hv copp-add copp4 svc-monitor svc-meter
+check ovn-nbctl --wait=hv ls-copp-add copp4 sw0
+check ovn-appctl -t ovn-controller vlog/set vconn:dbg
+AT_CHECK([ovn-nbctl copp-list copp4], [0], [dnl
+svc-monitor: svc-meter
+])
+
+ip netns exec sw01 scapy -H <<-EOF
+p = Ether(dst="33:33:33:33:33:33", src="f0:00:00:01:02:03") /\
+ IP(dst="192.168.1.100", src="192.168.1.2") / TCP(dport=1234, sport=1234)
+sendp(p, iface='sw01', loop=0, verbose=0, count=20)
+EOF
+
+OVS_WAIT_UNTIL([test "1" = "$(grep -c "dl_dst=33:33:33:33:33:33" ovn-controller.log)"])
+
kill $(pidof ovn-controller)
as ovn-sb
@@ -7295,7 +7312,8 @@ OVS_APP_EXIT_AND_WAIT([NORTHD_TYPE])
as
OVS_TRAFFIC_VSWITCHD_STOP(["/.*error receiving.*/d
-/.*terminating with signal 15.*/d"])
+/.*terminating with signal 15.*/d
+/.*Service monitor not found/d"])
AT_CLEANUP
])

View File

@ -1,227 +0,0 @@
commit 322c15598a483ba80d2ba3ced9a62f9e7a9a14a9
Author: Ilya Maximets <i.maximets@ovn.org>
Date: Fri Feb 17 21:09:59 2023 +0100
classifier: Fix missing masks on a final stage with ports trie.
Flow lookup doesn't include masks of the final stage in a resulting
flow wildcards in case that stage had L4 ports match. Only the result
of ports trie lookup is added to the mask. It might be sufficient in
many cases, but it's not correct, because ports trie is not how we
decided that the packet didn't match in this subtable. In fact, we
used a full subtable mask in order to determine that, so all the
subtable mask bits has to be added.
Ports trie can still be used to adjust ports' mask, but it is not
sufficient to determine that the packet didn't match.
Assuming we have following 2 OpenFlow rules on the bridge:
table=0, priority=10,tcp,tp_dst=80,tcp_flags=+psh actions=drop
table=0, priority=0 actions=output(1)
The first high priority rule supposed to drop all the TCP data traffic
sent on port 80. The handshake, however, is allowed for forwarding.
Both 'tcp_flags' and 'tp_dst' are on the final stage in the flow.
Since the stage mask from that stage is not incorporated into the flow
wildcards and only ports mask is getting updated, we have the following
megaflow for the SYN packet that has no match on 'tcp_flags':
$ ovs-appctl ofproto/trace br0 "in_port=br0,tcp,tp_dst=80,tcp_flags=syn"
Megaflow: recirc_id=0,eth,tcp,in_port=LOCAL,nw_frag=no,tp_dst=80
Datapath actions: 1
If this flow is getting installed into datapath flow table, all the
packets for port 80, regardless of TCP flags, will be forwarded.
Incorporating all the looked at bits from the final stage into the
stages map in order to get all the necessary wildcards. Ports mask
has to be updated as a last step, because it doesn't cover the full
64-bit slot in the flowmap.
With this change, in the example above, OVS is producing correct
flow wildcards including match on TCP flags:
Megaflow: recirc_id=0,eth,tcp,in_port=LOCAL,nw_frag=no,tp_dst=80,tcp_flags=-psh
Datapath actions: 1
This way only -psh packets will be forwarded, as expected.
This issue affects all other fields on stage 4, not only TCP flags.
Tests included to cover tcp_flags, nd_target and ct_tp_src/dst.
First two are frequently used, ct ones are sharing the same flowmap
slot with L4 ports, so important to test.
Before the pre-computation of stage masks, flow wildcards were updated
during lookup, so there was no issue. The bits of the final stage was
lost with introduction of 'stages_map'.
Recent adjustment of segment boundaries exposed 'tcp_flags' to the issue.
Reported-at: https://github.com/openvswitch/ovs-issues/issues/272
Fixes: ca44218515f0 ("classifier: Adjust segment boundary to execute prerequisite processing.")
Fixes: fa2fdbf8d0c1 ("classifier: Pre-compute stage masks.")
Acked-by: Aaron Conole <aconole@redhat.com>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
diff --git a/lib/classifier.c b/lib/classifier.c
index c4790ee6b..f6a86b662 100644
--- a/lib/classifier.c
+++ b/lib/classifier.c
@@ -1695,6 +1695,8 @@ find_match_wc(const struct cls_subtable *subtable, ovs_version_t version,
const struct cls_match *rule = NULL;
struct flowmap stages_map = FLOWMAP_EMPTY_INITIALIZER;
unsigned int mask_offset = 0;
+ bool adjust_ports_mask = false;
+ ovs_be32 ports_mask;
int i;
/* Try to finish early by checking fields in segments. */
@@ -1722,6 +1724,9 @@ find_match_wc(const struct cls_subtable *subtable, ovs_version_t version,
subtable->index_maps[i], flow, wc)) {
goto no_match;
}
+ /* Accumulate the map used so far. */
+ stages_map = flowmap_or(stages_map, subtable->index_maps[i]);
+
hash = flow_hash_in_minimask_range(flow, &subtable->mask,
subtable->index_maps[i],
&mask_offset, &basis);
@@ -1731,14 +1736,16 @@ find_match_wc(const struct cls_subtable *subtable, ovs_version_t version,
* unwildcarding all the ports bits, use the ports trie to figure out a
* smaller set of bits to unwildcard. */
unsigned int mbits;
- ovs_be32 value, plens, mask;
+ ovs_be32 value, plens;
- mask = miniflow_get_ports(&subtable->mask.masks);
- value = ((OVS_FORCE ovs_be32 *)flow)[TP_PORTS_OFS32] & mask;
+ ports_mask = miniflow_get_ports(&subtable->mask.masks);
+ value = ((OVS_FORCE ovs_be32 *) flow)[TP_PORTS_OFS32] & ports_mask;
mbits = trie_lookup_value(&subtable->ports_trie, &value, &plens, 32);
- ((OVS_FORCE ovs_be32 *)&wc->masks)[TP_PORTS_OFS32] |=
- mask & be32_prefix_mask(mbits);
+ ports_mask &= be32_prefix_mask(mbits);
+ ports_mask |= ((OVS_FORCE ovs_be32 *) &wc->masks)[TP_PORTS_OFS32];
+
+ adjust_ports_mask = true;
goto no_match;
}
@@ -1751,6 +1758,14 @@ no_match:
/* Unwildcard the bits in stages so far, as they were used in determining
* there is no match. */
flow_wildcards_fold_minimask_in_map(wc, &subtable->mask, stages_map);
+ if (adjust_ports_mask) {
+ /* This has to be done after updating flow wildcards to overwrite
+ * the ports mask back. We can't simply disable the corresponding bit
+ * in the stages map, because it has 64-bit resolution, i.e. one
+ * bit covers not only tp_src/dst, but also ct_tp_src/dst, which are
+ * not covered by the trie. */
+ ((OVS_FORCE ovs_be32 *) &wc->masks)[TP_PORTS_OFS32] = ports_mask;
+ }
return NULL;
}
diff --git a/tests/classifier.at b/tests/classifier.at
index f652b5983..de2705653 100644
--- a/tests/classifier.at
+++ b/tests/classifier.at
@@ -65,6 +65,94 @@ Datapath actions: 2
OVS_VSWITCHD_STOP
AT_CLEANUP
+AT_SETUP([flow classifier - lookup segmentation - final stage])
+OVS_VSWITCHD_START
+add_of_ports br0 1 2 3
+AT_DATA([flows.txt], [dnl
+table=0 in_port=1 priority=33,tcp,tp_dst=80,tcp_flags=+psh,action=output(2)
+table=0 in_port=1 priority=0,ip,action=drop
+table=0 in_port=2 priority=16,icmp6,nw_ttl=255,icmp_type=135,icmp_code=0,nd_target=1000::1 ,action=output(1)
+table=0 in_port=2 priority=0,ip,action=drop
+table=0 in_port=3 action=resubmit(,1)
+table=1 in_port=3 priority=45,ct_state=+trk+rpl,ct_nw_proto=6,ct_tp_src=3/0x1,tcp,tp_dst=80,tcp_flags=+psh,action=output(2)
+table=1 in_port=3 priority=10,ip,action=drop
+])
+AT_CHECK([ovs-ofctl add-flows br0 flows.txt])
+
+AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=syn'], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,tcp,in_port=1,nw_frag=no,tp_dst=80,tcp_flags=-psh
+Datapath actions: drop
+])
+AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=syn|ack'], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,tcp,in_port=1,nw_frag=no,tp_dst=80,tcp_flags=-psh
+Datapath actions: drop
+])
+AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=ack|psh'], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,tcp,in_port=1,nw_frag=no,tp_dst=80,tcp_flags=+psh
+Datapath actions: 2
+])
+AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=80'], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,tcp,in_port=1,nw_frag=no,tp_dst=80,tcp_flags=-psh
+Datapath actions: drop
+])
+AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=79'], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,tcp,in_port=1,nw_frag=no,tp_dst=0x40/0xfff0,tcp_flags=-psh
+Datapath actions: drop
+])
+
+dnl Having both the port and the tcp flags in the resulting megaflow below
+dnl is redundant, but that is how ports trie logic is implemented.
+AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=1,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=81'], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,tcp,in_port=1,nw_frag=no,tp_dst=81,tcp_flags=-psh
+Datapath actions: drop
+])
+
+dnl nd_target is redundant in the megaflow below and it is also not relevant
+dnl for an icmp reply. Datapath may discard that match, but it is OK as long
+dnl as we have prerequisites (icmp_type) in the match as well.
+AT_CHECK([ovs-appctl ofproto/trace br0 "in_port=2,eth_src=f6:d2:b0:19:5e:7b,eth_dst=d2:49:19:91:78:fe,dl_type=0x86dd,ipv6_src=1000::3,ipv6_dst=1000::4,nw_proto=58,nw_ttl=255,icmpv6_type=128,icmpv6_code=0"], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,icmp6,in_port=2,nw_ttl=255,nw_frag=no,icmp_type=0x80/0xfc,nd_target=::
+Datapath actions: drop
+])
+
+AT_CHECK([ovs-appctl ofproto/trace br0 "in_port=2,eth_src=f6:d2:b0:19:5e:7b,eth_dst=d2:49:19:91:78:fe,dl_type=0x86dd,ipv6_src=1000::3,ipv6_dst=1000::4,nw_proto=58,nw_ttl=255,icmpv6_type=135,icmpv6_code=0"], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,icmp6,in_port=2,nw_ttl=255,nw_frag=no,icmp_type=0x87/0xff,icmp_code=0x0/0xff,nd_target=::
+Datapath actions: drop
+])
+AT_CHECK([ovs-appctl ofproto/trace br0 "in_port=2,eth_src=f6:d2:b0:19:5e:7b,eth_dst=d2:49:19:91:78:fe,dl_type=0x86dd,ipv6_src=1000::3,ipv6_dst=1000::4,nw_proto=58,nw_ttl=255,icmpv6_type=135,icmpv6_code=0,nd_target=1000::1"], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,icmp6,in_port=2,nw_ttl=255,nw_frag=no,icmp_type=0x87/0xff,icmp_code=0x0/0xff,nd_target=1000::1
+Datapath actions: 1
+])
+AT_CHECK([ovs-appctl ofproto/trace br0 "in_port=2,eth_src=f6:d2:b0:19:5e:7b,eth_dst=d2:49:19:91:78:fe,dl_type=0x86dd,ipv6_src=1000::3,ipv6_dst=1000::4,nw_proto=58,nw_ttl=255,icmpv6_type=135,icmpv6_code=0,nd_target=1000::2"], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,eth,icmp6,in_port=2,nw_ttl=255,nw_frag=no,icmp_type=0x87/0xff,icmp_code=0x0/0xff,nd_target=1000::2
+Datapath actions: drop
+])
+
+dnl Check that ports' mask doesn't affect ct ports.
+AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=3,ct_state=trk|rpl,ct_nw_proto=6,ct_tp_src=3,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=80,tcp_flags=psh'], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,ct_state=+rpl+trk,ct_nw_proto=6,ct_tp_src=0x1/0x1,eth,tcp,in_port=3,nw_frag=no,tp_dst=80,tcp_flags=+psh
+Datapath actions: 2
+])
+AT_CHECK([ovs-appctl ofproto/trace br0 'in_port=3,ct_state=trk|rpl,ct_nw_proto=6,ct_tp_src=3,dl_src=50:54:00:00:00:05,dl_dst=50:54:00:00:00:07,dl_type=0x0800,nw_src=192.168.0.1,nw_dst=192.168.0.2,nw_proto=6,nw_tos=0,nw_ttl=128,tp_src=8,tp_dst=79,tcp_flags=psh'], [0], [stdout])
+AT_CHECK([tail -2 stdout], [0],
+ [Megaflow: recirc_id=0,ct_state=+rpl+trk,ct_nw_proto=6,ct_tp_src=0x1/0x1,eth,tcp,in_port=3,nw_frag=no,tp_dst=0x40/0xfff0,tcp_flags=+psh
+Datapath actions: drop
+])
+
+OVS_VSWITCHD_STOP
+AT_CLEANUP
+
AT_BANNER([flow classifier prefix lookup])
AT_SETUP([flow classifier - prefix lookup])
OVS_VSWITCHD_START

View File

@ -1,38 +0,0 @@
From 335a5deac3ff91448ca14651e92f39dfdd512fcf Mon Sep 17 00:00:00 2001
From: Ilya Maximets <i.maximets@ovn.org>
Date: Thu, 18 Jan 2024 15:59:05 +0100
Subject: [PATCH] ovs-atomic: Fix inclusion of Clang header by GCC 14.
GCC 14 started to advertise c_atomic extension, older versions didn't
do that. Add check for __clang__, so GCC doesn't include headers
designed for Clang.
Another option would be to prefer stdatomic implementation instead,
but some older versions of Clang are not able to use stdatomic.h
supplied by GCC as described in commit:
07ece367fb5f ("ovs-atomic: Prefer Clang intrinsics over <stdatomic.h>.")
This change fixes OVS build with GCC on Fedora Rawhide (40).
Reported-by: Jakob Meng <code@jakobmeng.de>
Acked-by: Jakob Meng <jmeng@redhat.com>
Acked-by: Eelco Chaudron <echaudro@redhat.com>
Acked-by: Simon Horman <horms@ovn.org>
Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
---
lib/ovs-atomic.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/ovs-atomic.h b/lib/ovs-atomic.h
index ab9ce6b2e0f..f140d25feba 100644
--- a/lib/ovs-atomic.h
+++ b/lib/ovs-atomic.h
@@ -328,7 +328,7 @@
#if __CHECKER__
/* sparse doesn't understand some GCC extensions we use. */
#include "ovs-atomic-pthreads.h"
- #elif __has_extension(c_atomic)
+ #elif __clang__ && __has_extension(c_atomic)
#include "ovs-atomic-clang.h"
#elif HAVE_ATOMIC && __cplusplus >= 201103L
#include "ovs-atomic-c++.h"

BIN
openvswitch-3.1.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
openvswitch-3.3.1.tar.gz (Stored with Git LFS)

Binary file not shown.

3
openvswitch-3.3.2.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5a1b1ed0b8922cd0e995c7aec87c1758b4e757207615f3c3bc96684cf49ce6f8
size 9036826

View File

@ -1,111 +0,0 @@
--- openvswitch-3.1.0.orig/lib/netdev-offload-tc.c 2024-02-13 11:52:45.356063229 +0530
+++ openvswitch-3.1.0/lib/netdev-offload-tc.c 2024-02-13 12:09:48.472094452 +0530
@@ -1719,12 +1719,12 @@ test_key_and_mask(struct match *match)
return 0;
}
-static void
+static int
flower_match_to_tun_opt(struct tc_flower *flower, const struct flow_tnl *tnl,
struct flow_tnl *tnl_mask)
{
struct geneve_opt *opt, *opt_mask;
- int len, cnt = 0;
+ int tot_opt_len, len, cnt = 0;
/* 'flower' always has an exact match on tunnel metadata length, so having
* it in a wrong format is not acceptable unless it is empty. */
@@ -1740,7 +1740,7 @@ flower_match_to_tun_opt(struct tc_flower
memset(&tnl_mask->metadata.present.map, 0,
sizeof tnl_mask->metadata.present.map);
}
- return;
+ return 0;
}
tnl_mask->flags &= ~FLOW_TNL_F_UDPIF;
@@ -1754,7 +1754,7 @@ flower_match_to_tun_opt(struct tc_flower
sizeof tnl_mask->metadata.present.len);
if (!tnl->metadata.present.len) {
- return;
+ return 0;
}
memcpy(flower->key.tunnel.metadata.opts.gnv, tnl->metadata.opts.gnv,
@@ -1768,7 +1768,16 @@ flower_match_to_tun_opt(struct tc_flower
* also not masks, but actual lengths in the 'flower' structure. */
len = flower->key.tunnel.metadata.present.len;
while (len) {
+ if (len < sizeof *opt) {
+ return EOPNOTSUPP;
+ }
+
opt = &flower->key.tunnel.metadata.opts.gnv[cnt];
+ tot_opt_len = sizeof *opt + opt->length * 4;
+ if (len < tot_opt_len) {
+ return EOPNOTSUPP;
+ }
+
opt_mask = &flower->mask.tunnel.metadata.opts.gnv[cnt];
opt_mask->length = opt->length;
@@ -1776,6 +1785,7 @@ flower_match_to_tun_opt(struct tc_flower
cnt += sizeof(struct geneve_opt) / 4 + opt->length;
len -= sizeof(struct geneve_opt) + opt->length * 4;
}
+ return 0;
}
static void
@@ -2213,7 +2223,11 @@ netdev_tc_flow_put(struct netdev *netdev
tnl_mask->flags &= ~(FLOW_TNL_F_DONT_FRAGMENT | FLOW_TNL_F_CSUM);
if (!strcmp(netdev_get_type(netdev), "geneve")) {
- flower_match_to_tun_opt(&flower, tnl, tnl_mask);
+ err = flower_match_to_tun_opt(&flower, tnl, tnl_mask);
+ if (err) {
+ VLOG_WARN_RL(&warn_rl, "Unable to parse geneve options");
+ return err;
+ }
}
flower.tunnel = true;
} else {
--- openvswitch-3.1.0.orig/tests/system-offloads-traffic.at 2024-02-13 11:52:45.364063229 +0530
+++ openvswitch-3.1.0/tests/system-offloads-traffic.at 2024-02-13 12:21:58.880116742 +0530
@@ -742,3 +742,35 @@ recirc_id(<recirc>),in_port(3),eth_type(
OVS_TRAFFIC_VSWITCHD_STOP
AT_CLEANUP
+AT_SETUP([offloads - handling of geneve corrupted metadata - offloads enabled])
+OVS_CHECK_GENEVE()
+
+OVS_TRAFFIC_VSWITCHD_START(
+ [_ADD_BR([br-underlay]) -- \
+ set bridge br0 other-config:hwaddr=f2:ff:00:00:00:01 -- \
+ set bridge br-underlay other-config:hwaddr=f2:ff:00:00:00:02],
+ [], [-- set Open_vSwitch . other_config:hw-offload=true])
+
+AT_CHECK([ovs-ofctl add-flow br0 "actions=normal"])
+AT_CHECK([ovs-ofctl add-flow br-underlay "actions=normal"])
+
+ADD_NAMESPACES(at_ns0)
+
+dnl Set up underlay link from host into the namespace using veth pair.
+ADD_VETH(p0, at_ns0, br-underlay, "172.31.1.1/24", f2:ff:00:00:00:03)
+AT_CHECK([ip addr add dev br-underlay "172.31.1.100/24"])
+AT_CHECK([ip link set dev br-underlay up])
+
+dnl Set up tunnel endpoints on OVS outside the namespace and with a native
+dnl linux device inside the namespace.
+ADD_OVS_TUNNEL([geneve], [br0], [at_gnv0], [172.31.1.1], [10.1.1.100/24])
+ADD_NATIVE_TUNNEL([geneve], [ns_gnv0], [at_ns0], [172.31.1.100], [10.1.1.1/24],
+ [vni 0], [address f2:ff:00:00:00:04])
+
+NS_CHECK_EXEC([at_ns0], [$PYTHON3 $srcdir/sendpkt.py p0 f2 ff 00 00 00 02 f2 ff 00 00 00 03 08 00 45 00 00 52 00 01 00 00 40 11 1f f7 ac 1f 01 01 ac 1f 01 64 de c1 17 c1 00 3e 59 e9 01 00 65 58 00 00 00 00 00 03 00 02 f2 ff 00 00 00 01 f2 ff 00 00 00 04 08 00 45 00 00 1c 00 01 00 00 40 01 64 7a 0a 01 01 01 0a 01 01 64 08 00 f7 ff 00 00 00 00 > /dev/null])
+
+OVS_WAIT_UNTIL([grep -q 'Invalid Geneve tunnel metadata' ovs-vswitchd.log])
+
+OVS_TRAFFIC_VSWITCHD_STOP(["/Invalid Geneve tunnel metadata on bridge br0 while processing icmp,in_port=1,vlan_tci=0x0000,dl_src=f2:ff:00:00:00:04,dl_dst=f2:ff:00:00:00:01,nw_src=10.1.1.1,nw_dst=10.1.1.100,nw_tos=0,nw_ecn=0,nw_ttl=64,nw_frag=no,icmp_type=8,icmp_code=0/d
+/Unable to parse geneve options/d"])
+AT_CLEANUP

View File

@ -1,3 +1,20 @@
-------------------------------------------------------------------
Mon Jan 27 12:52:52 UTC 2025 - Clemens Famulla-Conrad <cfamullaconrad@suse.com>
- Update openvswitch to 3.3.2. For a list of changes, check
https://github.com/openvswitch/ovs/blob/v3.3.2/NEWS
- Update OVN to 24.03.5. For a list of changes, check
https://github.com/ovn-org/ovn/blob/v24.03.5/NEWS
- This update fix CVE-2025-0650 ovn: egress ACLs may be bypassed
via specially crafted UDP packet (bsc#1236353)
-------------------------------------------------------------------
Mon Dec 16 15:15:56 UTC 2024 - Dominique Leuenberger <dimstar@opensuse.org>
- Add proper dependency on /usr/sbin/ipsec on openvswitch-ipsec:
without the binary present, the service crashes on startup
(boo#1234617).
-------------------------------------------------------------------
Wed Aug 28 05:18:36 UTC 2024 - Duraisankar P <Duraisankar.pitchumani@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package openvswitch
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -20,8 +20,8 @@
%define skip_python2 1
%define ovs_lname libopenvswitch-3_3-0
%define ovn_lname libovn-24_03-0
%define ovs_version 3.3.1
%define ovn_version 24.03.3
%define ovs_version 3.3.2
%define ovn_version 24.03.5
%define ovs_dir ovs-%{ovs_version}
%define ovn_dir ovn-%{ovn_version}
%define rpmstate %{_rundir}/openvswitch-rpm-state-
@ -80,8 +80,8 @@ Patch4: install-ovsdb-tools.patch
#OVN patches
# PATCH-FIX-OPENSUSE: 0001-Run-ovn-as-openvswitch-openvswitch.patch
Patch20: 0001-Run-ovn-as-openvswitch-openvswitch.patch
BuildRequires: autoconf
BuildRequires: %{python_module setuptools}
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: fdupes
BuildRequires: graphviz
@ -238,6 +238,7 @@ Summary: Open vSwitch IPsec tunneling support
License: Apache-2.0
Group: Productivity/Networking/System
Requires: %{name} = %{version}
Requires: /usr/sbin/ipsec
Requires: python3-ovs = %{version}
Requires: strongswan

BIN
ovn-23.03.0.tar.gz (Stored with Git LFS)

Binary file not shown.

BIN
ovn-24.03.3.tar.gz (Stored with Git LFS)

Binary file not shown.

3
ovn-24.03.5.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f679577e4e33587e3a0ccae8693c56b3531ce7b3dc259d7dee2ec4f21ea732c6
size 2024279