9219d1
From 22ae217041eee8b7d655cc489797ac88432495d6 Mon Sep 17 00:00:00 2001
9219d1
From: Numan Siddique <numans@ovn.org>
9219d1
Date: Mon, 24 Aug 2020 16:42:48 +0530
9219d1
Subject: [PATCH 1/2] I-P engine: Provide the option to store client data in
9219d1
 engine ctx.
9219d1
9219d1
There can be some client specific data which could change from one engine run
9219d1
to another. Adding a 'void *' data in 'struct engine_ctx' will be useful.
9219d1
One such usecase is to provide a config option in ovn-controller to turn on or
9219d1
off logical flow expr caching. And this config knob can be stored in the engine_ctx.
9219d1
An upcoming patch will make use of this.
9219d1
9219d1
Acked-by: Mark Michelson <mmichels@redhat.com>
9219d1
Signed-off-by: Numan Siddique <numans@ovn.org>
9219d1
---
9219d1
 lib/inc-proc-eng.h | 1 +
9219d1
 1 file changed, 1 insertion(+)
9219d1
9219d1
diff --git a/lib/inc-proc-eng.h b/lib/inc-proc-eng.h
9219d1
index e25bcb29c..80de75029 100644
9219d1
--- a/lib/inc-proc-eng.h
9219d1
+++ b/lib/inc-proc-eng.h
9219d1
@@ -66,6 +66,7 @@
9219d1
 struct engine_context {
9219d1
     struct ovsdb_idl_txn *ovs_idl_txn;
9219d1
     struct ovsdb_idl_txn *ovnsb_idl_txn;
9219d1
+    void *client_ctx;
9219d1
 };
9219d1
 
9219d1
 /* Arguments to be passed to the engine at engine_init(). */
9219d1
-- 
9219d1
2.26.2
9219d1