diff mbox series

[ovs-dev,v2,1/4] I-P engine: Provide the option to store client data in engine ctx.

Message ID 20200909100941.649009-1-numans@ovn.org
State Accepted
Headers show
Series Another attempt on lflow expr caching. | expand

Commit Message

Numan Siddique Sept. 9, 2020, 10:09 a.m. UTC
From: Numan Siddique <numans@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@ovn.org>
---
 lib/inc-proc-eng.h | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

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(). */