From 22ae217041eee8b7d655cc489797ac88432495d6 Mon Sep 17 00:00:00 2001 From: Numan Siddique Date: Mon, 24 Aug 2020 16:42:48 +0530 Subject: [PATCH 1/2] I-P engine: Provide the option to store client data in engine ctx. 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. Acked-by: Mark Michelson Signed-off-by: Numan Siddique --- 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 e25bcb29c..80de75029 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