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

numansiddique noreply at github.com
Tue Jun 9 17:01:14 UTC 2020


  Branch: refs/heads/master
  Home:   https://github.com/ovn-org/ovn
  Commit: 6c8b9a13253248318c666159e486aab0e6c477ff
      https://github.com/ovn-org/ovn/commit/6c8b9a13253248318c666159e486aab0e6c477ff
  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: 354bdba51abfe75593f24a194437b43b226a2fab
      https://github.com/ovn-org/ovn/commit/354bdba51abfe75593f24a194437b43b226a2fab
  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: cd09b3645f083ef08ae4e7327b8ed68997459a47
      https://github.com/ovn-org/ovn/commit/cd09b3645f083ef08ae4e7327b8ed68997459a47
  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/d6b56b1629d5...cd09b3645f08


More information about the git mailing list