# changelog

author: Open vSwitch CI <ovs-team@redhat.com> - 2.11.3-84
changelog:
  - Merging upstream branch-2.11 [RH gerrit: a4f1272cee]
      Commit list:
      5a62ed8002 dist-docs: Include manpages generated from rST.


author: Open vSwitch CI <ovs-team@redhat.com> - 2.11.3-85
changelog:
  - Merging upstream branch-2.11 [RH gerrit: 4351a9b512]
      Commit list:
      9b0307cf7d Prepare for 2.11.7.
      5d07b5da2e Set release date for 2.11.6.
      018d35b7d9 cirrus: Use FreeBSD 12.2.
      abd7a45765 flow: Support extra padding length.


author: Open vSwitch CI <ovs-team@redhat.com> - 2.11.3-86
changelog:
  - Merging upstream branch-2.11 [RH gerrit: 67070c0625]
      Commit list:
      e9ad1da4f4 Prepare for 2.11.8.
      bbc2705315 Set release date for 2.11.7.
      0f475a5cd4 ovsdb-client: Fix needs-conversion when SERVER is explicitly specified.
      46299c1c72 dpdk: Use DPDK 18.11.11 release.
      65c61b0c23 ofp-actions: Fix use-after-free while decoding RAW_ENCAP.


author: Open vSwitch CI <ovs-team@redhat.com> - 2.11.3-87
changelog:
  - Merging upstream branch-2.11 [RH gerrit: 560df0228c]
      Commit list:
      8710c3e5ce python: Send notifications after the transaction ends.
      bf3ef6a869 Handle refTable values with setkey()


author: Michael Santana <msantana@redhat.com> - 2.11.3-88
changelog:
  - Make changelog in spec file more informative [RH gerrit: 99ad8d96f6]
      This is done by adding the body of the commit message to the changelong.
      The body is indented and has extra spacing separating each entry in the
      changelog to make each one more discernible since now they could be
      longer
      
      Signed-off-by: Michael Santana <msantana@redhat.com>


author: Open vSwitch CI <ovs-team@redhat.com> - 2.11.3-89
changelog:
  - Merging upstream branch-2.11 [RH gerrit: 1d6f0bd658]
      Commit list:
      75907f8a11 ofp-group: Use big-enough buffer in ofputil_format_group().


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.11.3-90
changelog:
  - Merging upstream branch-2.11 [RH gerrit: aac87adaf1]
      Commit list:
      40682157c9 ovsdb-server: Fix memleak when failing to read storage.


author: Michael Santana <msantana@redhat.com> - 2.11.3-91
changelog:
  - pkgtool: Swap bugzilla id and RH git [RH gerrit: d88b628cb0]
      Having the bugzilla ID not at the end of the line breakes another script
      that parses for said ID. This patch fixes that by putting the ID next to
      the new line
      
      Fixes: 99ad8d96f6b9 ("Make changelog in spec file more informative")
      Signed-off-by: Michael Santana <msantana@redhat.com>


author: Michael Santana <msantana@redhat.com> - 2.11.3-92
changelog:
  - Migrate openvswitch to gitlab [RH gerrit: 1791ec21de]
      Signed-off-by: Michael Santana <msantana@redhat.com>


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.11.3-93
changelog:
  - Merging upstream branch-2.11 [RH gerrit: 7130895ee1]
      Commit list:
      67adc0141f datapath-windows:adjust Offset when processing packet in POP_VLAN action


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-133
changelog:
  - Merging upstream branch-2.13 [RH git: d37b008459]
      Commit list:
      70f6efa41c python: idl: Avoid sending transactions when the DB is not synced up.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-134
changelog:
  - Merging upstream branch-2.13 [RH git: c72ff28f03]
      Commit list:
      4d5470a450 Prepare for 2.13.6.
      6771b9c9d7 Set release date for 2.13.5.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-135
changelog:
  - Merging upstream branch-2.13 [RH git: 1b6734e549]
      Commit list:
      b73ad3bcf7 ci: Make linux-prepare trust system installs.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-136
changelog:
  - Merging upstream branch-2.13 [RH git: 25cc09c60a]
      Commit list:
      2c1369aa6d netdev-offload-tc: Verify the flower rule installed.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-137
changelog:
  - Merging upstream branch-2.13 [RH git: f86ccc67c2]
      Commit list:
      da5b115580 datapath-windows:Reset PseudoChecksum value only for TX direction offload case


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-138
changelog:
  - Merging upstream branch-2.13 [RH git: 424b25f9ca]
      Commit list:
      85358e0a9f datapath-windows: Reset flow key after Ipv4 fragments are reassembled


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-139
changelog:
  - Merging upstream branch-2.13 [RH git: 37c2767bbd]
      Commit list:
      057a5b0708 ofproto-dpif-xlate: Fix check_pkt_larger incomplete translation.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-140
changelog:
  - Merging upstream branch-2.13 [RH git: 6a59db52e8]
      Commit list:
      9fa66631c2 flow: Consider dataofs when parsing TCP packets.
      cabeb5d056 tests/flowgen: Fix packet data endianness.
      0b8586fbeb ofproto: Fix resource usage explosion due to removal of large number of flows.
      34801d50e2 ofproto: Fix resource usage explosion while processing bundled FLOW_MOD.
      1910814e5e tests/flowgen: Fix length field of 802.2 data link header.
      6aac7758c0 ovs-lib: Backup and remove existing DB when joining cluster.
      a5e1af7b99 docs/dpdk: Fix install doc.
      6fb9d7ab08 ovs-save: Save igmp flows in ofp_parse syntax.
      0c93c71f8c dpdk: Use DPDK 19.11.10 release.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-141
changelog:
  - Merging upstream branch-2.13 [RH git: 035911bcc8]
      Commit list:
      0263845fde compat: handle NF_REPEAT error on nf_conntrack_in.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.13.0-142
changelog:
  - Merging upstream branch-2.13 [RH git: e2ae994435]
      Commit list:
      025ec93bc5 Prepare for 2.13.7.
      723e0727f3 Set release date for 2.13.6.
      d6d2dead72 ofproto-dpif-xlate: Snoop ingress packets and update neigh cache if needed.
      dc8b79ccf1 tnl-neigh-cache: Do not refresh the entry while revalidating.
      7e1c6034b5 tnl-neigh-cache: Include expected array sizes in prototypes.
      9c98116ac7 tnl-neigh-cache: Read/write expires atomically.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-47
changelog:
  - Merging upstream branch-2.15 [RH git: 01110b9088]
      Commit list:
      b7d9c491ec datapath-windows: add layers when adding the deferred actions


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-48
changelog:
  - Merging upstream branch-2.15 [RH git: 7cf784736e]
      Commit list:
      2cf63851a5 Prepare for 2.15.3.
      63f9a7c5d8 Set release date for 2.15.2.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-49
changelog:
  - Merging upstream branch-2.15 [RH git: 2502ca29b0]
      Commit list:
      952e851506 ci: Make linux-prepare trust system installs.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-50
changelog:
  - Merging upstream branch-2.15 [RH git: 16dad85706]
      Commit list:
      031cf67e09 netdev-offload-tc: Verify the flower rule installed.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-51
changelog:
  - Merging upstream branch-2.15 [RH git: a134a530c9]
      Commit list:
      eca2d50d40 datapath-windows:Reset PseudoChecksum value only for TX direction offload case


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-52
changelog:
  - Merging upstream branch-2.15 [RH git: 001ae577c6]
      Commit list:
      08a270dda1 datapath-windows: Reset flow key after Ipv4 fragments are reassembled


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-53
changelog:
  - Merging upstream branch-2.15 [RH git: 9221a2233d]
      Commit list:
      01bc910e57 ofproto-dpif-xlate: Fix check_pkt_larger incomplete translation.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-54
changelog:
  - Merging upstream branch-2.15 [RH git: d4f13fd840]
      Commit list:
      0590e88387 flow: Consider dataofs when parsing TCP packets.
      7266042d84 tests/flowgen: Fix packet data endianness.
      d2e0632dbe ofproto: Fix resource usage explosion due to removal of large number of flows.
      0a7e66e37f ofproto: Fix resource usage explosion while processing bundled FLOW_MOD.
      68466efed9 tests/flowgen: Fix length field of 802.2 data link header.
      2a2185f9e6 ovs-lib: Backup and remove existing DB when joining cluster.
      fcbc29c6f0 docs/dpdk: Fix install doc.
      a5d97d4202 ovs-save: Save igmp flows in ofp_parse syntax.
      1cbd1f0f56 faq: Update OVS/DPDK version table for OVS 2.13/2.14.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-55
changelog:
  - Merging upstream branch-2.15 [RH git: a1abf356d3]
      Commit list:
      d477f60008 compat: handle NF_REPEAT error on nf_conntrack_in.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.15.0-56
changelog:
  - Merging upstream branch-2.15 [RH git: 9504acc03d]
      Commit list:
      31288dc725 Prepare for 2.15.4.
      e4d2df62e6 Set release date for 2.15.3.
      b8baa11416 python: Add cooperative_yield() API method to Idl.
      7834abc669 ofproto-dpif-xlate: Snoop ingress packets and update neigh cache if needed.
      833c02daab tnl-neigh-cache: Do not refresh the entry while revalidating.
      e2182eca88 tnl-neigh-cache: Include expected array sizes in prototypes.
      566fe43721 tnl-neigh-cache: Read/write expires atomically.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.16.0-24
changelog:
  - Merging upstream branch-2.16 [RH git: 4682b76694]
      Commit list:
      b79f0369f2 ci: Make linux-prepare trust system installs.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.16.0-25
changelog:
  - Merging upstream branch-2.16 [RH git: f5366890c5]
      Commit list:
      c221c8e613 datapath-windows:Reset PseudoChecksum value only for TX direction offload case


author: Ilya Maximets <i.maximets@redhat.com> - 2.16.0-26
changelog:
  - ovsdb: transaction: Incremental reassessment of weak refs. [RH git: e8a363db49] (#2005958)
      commit 4dbff9f0a68579241ac1a040726be3906afb8fe9
      Author: Ilya Maximets <i.maximets@ovn.org>
      Date:   Sat Oct 16 03:20:23 2021 +0200
      
          ovsdb: transaction: Incremental reassessment of weak refs.
      
          The main idea is to not store list of weak references in the source
          row, so they all don't need to be re-checked/updated on every
          modification of that source row.  The point is that source row already
          knows UUIDs of all destination rows stored in the data, so there is no
          much profit in storing this information somewhere else.  If needed,
          destination row can be looked up and reference can be looked up in the
          destination row.  For the fast lookup, destination row now stores
          references in a hash map.
      
          Weak reference structure now contains the table and uuid of a source
          row instead of a direct pointer.  This allows to replace/update the
          source row without breaking any weak references stored in destination
          rows.
      
          Structure also now contains the key-value pair of atoms that triggered
          creation of this reference.  These atoms can be used to quickly
          subtract removed references from a source row.  During reassessment,
          ovsdb now only needs to care about new added or removed atoms, and
          atoms that got removed due to removal of the destination rows, but
          these are marked for reassessment by the destination row.
      
          ovsdb_datum_subtract() is used to remove atoms that points to removed
          or incorrect rows, so there is no need to re-sort datum in the end.
      
          Results of an OVN load-balancer benchmark that adds 3K load-balancers
          to each of 120 logical switches and 120 logical routers in the OVN
          sandbox with clustered Northbound database and then removes them:
      
          Before:
      
            %CPU  CPU Time  CMD
            86.8  00:16:05  ovsdb-server nb1.db
            44.1  00:08:11  ovsdb-server nb2.db
            43.2  00:08:00  ovsdb-server nb3.db
      
          After:
      
            %CPU  CPU Time  CMD
            54.9  00:02:58  ovsdb-server nb1.db
            33.3  00:01:48  ovsdb-server nb2.db
            32.2  00:01:44  ovsdb-server nb3.db
      
          So, on a cluster leader the processing time dropped by 5.4x, on
          followers - by 4.5x.  More load-balancers - larger the performance
          difference.  There is a slight increase of memory usage, because new
          reference structure is larger, but the difference is not significant.
      
          Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
          Acked-by: Dumitru Ceara <dceara@redhat.com>
      
      Reported-at: https://bugzilla.redhat.com/2005958
      Signed-off-by: Ilya Maximets <i.maximets@redhat.com>


author: Ilya Maximets <i.maximets@redhat.com> - 2.16.0-27
changelog:
  - ovsdb: Don't let transaction history grow larger than the database. [RH git: 93d1fa0bdf] (#2012949)
      commit 317b1bfd7dd315e241c158e6d4095002ff391ee3
      Author: Ilya Maximets <i.maximets@ovn.org>
      Date:   Tue Sep 28 13:17:21 2021 +0200
      
          ovsdb: Don't let transaction history grow larger than the database.
      
          If user frequently changes a lot of rows in a database, transaction
          history could grow way larger than the database itself.  This wastes
          a lot of memory and also makes monitor_cond_since slower than
          usual monotor_cond if the transaction id is old enough, because
          re-construction of the changes from a history is slower than just
          creation of initial database snapshot.  This is also the case if
          user deleted a lot of data, so transaction history still holds all of
          it while the database itself doesn't.
      
          In case of current lb-per-service model in ovn-kubernetes, each
          load-balancer is added to every logical switch/router.  Such a
          transaction touches more than a half of a OVN_Northbound database.
          And each of these transactions is added to the transaction history.
          Since transaction history depth is 100, in worst case scenario,
          it will hold 100 copies of a database increasing memory consumption
          dramatically.  In tests with 3000 LBs and 120 LSs, memory goes up
          to 3 GB, while holding at 30 MB if transaction history disabled in
          the code.
      
          Fixing that by keeping count of the number of ovsdb_atom's in the
          database and not allowing the total number of atoms in transaction
          history to grow larger than this value.  Counting atoms is fairly
          cheap because we don't need to iterate over them, so it doesn't have
          significant performance impact.  It would be ideal to measure the
          size of individual atoms, but that will hit the performance.
          Counting cells instead of atoms is not sufficient, because OVN
          users are adding hundreds or thousands of atoms to a single cell,
          so they are largely different in size.
      
          Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
          Acked-by: Han Zhou <hzhou@ovn.org>
          Acked-by: Dumitru Ceara <dceara@redhat.com>
      
      Reported-at: https://bugzilla.redhat.com/2012949
      Signed-off-by: Ilya Maximets <i.maximets@redhat.com>


author: Timothy Redaelli <tredaelli@redhat.com> - 2.16.0-29
changelog:
  - python: socket-util: Split inet_open_active function and use connect_ex. [RH git: 2e704b371c]
      In an upcoming patch, PyOpenSSL will be replaced with Python ssl module,
      but in order to do an async connection with Python ssl module the ssl
      socket must be created when the socket is created, but before the
      socket is connected.
      
      So, inet_open_active function is splitted in 3 parts:
      - inet_create_socket_active: creates the socket and returns the family and
        the socket, or (error, None) if some error needs to be returned.
      - inet_connect_active: connect the socket and returns the errno (it
        returns 0 if errno is EINPROGRESS or EWOULDBLOCK).
      
      connect is replaced by connect_ex, since Python suggest to use it for
      asynchronous connects and it's also cleaner since inet_connect_active
      returns errno that connect_ex already returns, moreover due to a Python
      limitation connect cannot not be used with ssl module.
      
      inet_open_active function is changed in order to use the new functions
      inet_create_socket_active and inet_connect_active.
      
      Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
      Acked-by: Terry Wilson <twilson@redhat.com>
      Tested-by: Terry Wilson <twilson@redhat.com>
      Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
      Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>


author: Timothy Redaelli <tredaelli@redhat.com> - 2.16.0-30
changelog:
  - python: Replace pyOpenSSL with ssl. [RH git: 0cd5867531] (#1988429)
      Currently, pyOpenSSL is half-deprecated upstream and so it's removed on
      some distributions (for example on CentOS Stream 9,
      https://issues.redhat.com/browse/CS-336), but since OVS only
      supports Python 3 it's possible to replace pyOpenSSL with "import ssl"
      included in base Python 3.
      
      Stream recv and send had to be splitted as _recv and _send, since SSLError
      is a subclass of socket.error and so it was not possible to except for
      SSLWantReadError and SSLWantWriteError in recv and send of SSLStream.
      
      TCPstream._open cannot be used in SSLStream, since Python ssl module
      requires the SSL socket to be created before connecting it, so
      SSLStream._open needs to create the socket, create SSL socket and then
      connect the SSL socket.
      
      Reported-by: Timothy Redaelli <tredaelli@redhat.com>
      Reported-at: https://bugzilla.redhat.com/1988429
      Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
      Acked-by: Terry Wilson <twilson@redhat.com>
      Tested-by: Terry Wilson <twilson@redhat.com>
      Signed-off-by: Ilya Maximets <i.maximets@ovn.org>
      Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.16.0-31
changelog:
  - Merging upstream branch-2.16 [RH git: 77a249d38b]
      Commit list:
      f8f2f7c9cb datapath-windows: Reset flow key after Ipv4 fragments are reassembled


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.16.0-32
changelog:
  - Merging upstream branch-2.16 [RH git: e90e06a818]
      Commit list:
      1d8e0f861f ofproto-dpif-xlate: Fix check_pkt_larger incomplete translation.


author: Open vSwitch CI <ovs-ci@redhat.com> - 2.16.0-33
changelog:
  - Merging upstream branch-2.16 [RH git: 8708b55152]
      Commit list:
      3e527f21cf flow: Consider dataofs when parsing TCP packets.
      b537e049ad tests/flowgen: Fix packet data endianness.
      35244b4980 ofproto: Fix resource usage explosion due to removal of large number of flows.
      a201297639 ofproto: Fix resource usage explosion while processing bundled FLOW_MOD.
      cd0133402c tests/flowgen: Fix length field of 802.2 data link header.
      2d65b8ffd2 ovs-lib: Backup and remove existing DB when joining cluster.
      ab01177637 docs/dpdk: Fix install doc.
      38a2129524 ovs-save: Save igmp flows in ofp_parse syntax.
      dc77857ce2 faq: Update OVS/DPDK version table for OVS 2.13/2.14.


