[ovs-git] [ovn-org/ovn] cd1a0c: inc-proc-eng: Allow definition of engine_node with...

Mark Gray noreply at github.com
Thu Nov 4 00:06:24 UTC 2021


  Branch: refs/heads/main
  Home:   https://github.com/ovn-org/ovn
  Commit: cd1a0c7c2ed4494a953d4809e09cee09990f87b6
      https://github.com/ovn-org/ovn/commit/cd1a0c7c2ed4494a953d4809e09cee09990f87b6
  Author: Mark Gray <mark.d.gray at redhat.com>
  Date:   2021-11-03 (Wed, 03 Nov 2021)

  Changed paths:
    M controller/ovn-controller.c
    M lib/inc-proc-eng.h

  Log Message:
  -----------
  inc-proc-eng: Allow definition of engine_node with global scope

Refactor ENGINE_NODE() macro to not assign function pointers. This
allows ENGINE_NODE() to be used outside functions, creating an
engine_node with global scope (but can be statically defined within a file).
This allows more flexibility in how the I-P engine can be used.
Although this is not explicitly required for I-P it does allow for a cleaner
code base as the node definitions can be kept together outside any functions.

Additional function pointers (e.g. is_valid(), clear_tracked_data()),
may be assigned later, if required.

Signed-off-by: Mark Gray <mark.d.gray at redhat.com>
Signed-off-by: Han Zhou <hzhou at ovn.org>




More information about the git mailing list