[ovs-dev] [PATCH ovn v2 1/4] I-P engine: Provide the option to store client data in engine ctx.
numans at ovn.org
numans at ovn.org
Wed Sep 9 10:09:41 UTC 2020
From: Numan Siddique <numans at ovn.org>
There can be some client specific data which could change from one engine run
to another. Adding a 'void *' data in 'struct engine_ctx' will be useful.
One such usecase is to provide a config option in ovn-controller to turn on or
off logical flow expr caching. And this config knob can be stored in the engine_ctx.
An upcoming patch will make use of this.
Signed-off-by: Numan Siddique <numans at ovn.org>
---
lib/inc-proc-eng.h | 1 +
1 file changed, 1 insertion(+)
diff --git a/lib/inc-proc-eng.h b/lib/inc-proc-eng.h
index e25bcb29c6..80de75029e 100644
--- a/lib/inc-proc-eng.h
+++ b/lib/inc-proc-eng.h
@@ -66,6 +66,7 @@
struct engine_context {
struct ovsdb_idl_txn *ovs_idl_txn;
struct ovsdb_idl_txn *ovnsb_idl_txn;
+ void *client_ctx;
};
/* Arguments to be passed to the engine at engine_init(). */
--
2.26.2
More information about the dev
mailing list