[ovs-git] [ovn-org/ovn] 0af76d: ovn-controller: Store the local port bindings in t...

numansiddique noreply at github.com
Tue Jun 9 17:07:05 UTC 2020


  Branch: refs/heads/branch-20.06
  Home:   https://github.com/ovn-org/ovn
  Commit: 0af76dee17edb9f32cd17779b21fcd8b3197ebaf
      https://github.com/ovn-org/ovn/commit/0af76dee17edb9f32cd17779b21fcd8b3197ebaf
  Author: Numan Siddique <numans at ovn.org>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M controller/binding.c
    M controller/binding.h
    M controller/ovn-controller.c
    M tests/ovn.at

  Log Message:
  -----------
  ovn-controller: Store the local port bindings in the runtime data I-P state.

This patch adds a new data structure - 'struct local_binding' which represents
a probable local port binding. A new object of this structure is creared for
each interface present in the integration bridge (br-int) with the
external_ids:iface-id set. This struct has 2 main fields
 - 'struct ovsrec_interface *' and 'struct sbrec_port_binding *'. These fields
are updated during port claim and release.

A shash of the local bindings is maintained with the 'iface-id' as the hash key
in the runtime data of the incremental processing engine.

This patch helps in the upcoming patch to add incremental processing support
for OVS interface and SB port binding changes.

This patch also refactors the port binding code by adding a port binding function
for each port binding type.

Acked-by: Mark Michelson <mmichels at redhat.com>
Acked-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>


  Commit: 7bf21716a643664579e771143793ecbe42773a50
      https://github.com/ovn-org/ovn/commit/7bf21716a643664579e771143793ecbe42773a50
  Author: Numan Siddique <numans at ovn.org>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M controller/binding.c
    M controller/binding.h
    M controller/ovn-controller.c
    M lib/inc-proc-eng.h
    M tests/ovn-performance.at

  Log Message:
  -----------
  ovn-controller: I-P for SB port binding and OVS interface in runtime_data.

This patch handles SB port binding changes and OVS interface changes
incrementally in the runtime_data stage which otherwise would have
resulted in calls to binding_run().

Prior to this patch, port binding changes were handled differently.
The changes were only evaluated to see if they need full recompute
or they can be ignored.

With this patch, the runtime data is updated with the changes (both
SB port binding and OVS interface) and ports are claimed/released in
the handlers itself, avoiding the need to trigger recompute of runtime
data stage.

Acked-by: Mark Michelson <mmichels at redhat.com>
Acked-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>


  Commit: ae8997e7591a0bfde58b57c83262e922f6728292
      https://github.com/ovn-org/ovn/commit/ae8997e7591a0bfde58b57c83262e922f6728292
  Author: Numan Siddique <numans at ovn.org>
  Date:   2020-06-09 (Tue, 09 Jun 2020)

  Changed paths:
    M controller/ovn-controller.c
    M tests/ovn-performance.at

  Log Message:
  -----------
  ovn-controller: I-P for datapath binding

This patch adds partial support of incremental processing of datapath binding.
If a datapath is deleted, then a full recompute is triggered if that
datapath is present in the 'local_datapaths' hmap of runtime data.

Acked-by: Mark Michelson <mmichels at redhat.com>
Acked-by: Han Zhou <hzhou at ovn.org>
Acked-by: Dumitru Ceara <dceara at redhat.com>
Signed-off-by: Numan Siddique <numans at ovn.org>


Compare: https://github.com/ovn-org/ovn/compare/f3bf7588850d...ae8997e7591a


More information about the git mailing list