From patchwork Wed Sep 2 18:46:00 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Numan Siddique X-Patchwork-Id: 1356051 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=ovn.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4BhXvy6f99z9sSP for ; Thu, 3 Sep 2020 04:46:22 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 6DB9486A8F; Wed, 2 Sep 2020 18:46:21 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id sllkNUYhfPPb; Wed, 2 Sep 2020 18:46:20 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by whitealder.osuosl.org (Postfix) with ESMTP id 0507B8698E; Wed, 2 Sep 2020 18:46:20 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id E0415C07FF; Wed, 2 Sep 2020 18:46:19 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 29520C0051 for ; Wed, 2 Sep 2020 18:46:18 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 15F2D203CA for ; Wed, 2 Sep 2020 18:46:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Ff1p1khZkFgT for ; Wed, 2 Sep 2020 18:46:16 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from relay4-d.mail.gandi.net (relay4-d.mail.gandi.net [217.70.183.196]) by silver.osuosl.org (Postfix) with ESMTPS id 0F41A2001D for ; Wed, 2 Sep 2020 18:46:15 +0000 (UTC) X-Originating-IP: 115.99.211.114 Received: from nusiddiq.home.org.com (unknown [115.99.211.114]) (Authenticated sender: numans@ovn.org) by relay4-d.mail.gandi.net (Postfix) with ESMTPSA id 69F00E0003; Wed, 2 Sep 2020 18:46:13 +0000 (UTC) From: numans@ovn.org To: dev@openvswitch.org Date: Thu, 3 Sep 2020 00:16:00 +0530 Message-Id: <20200902184600.937675-1-numans@ovn.org> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200902184517.937519-1-numans@ovn.org> References: <20200902184517.937519-1-numans@ovn.org> MIME-Version: 1.0 Subject: [ovs-dev] [PATCH ovn 1/4] I-P engine: Provide the option to store client data in engine ctx. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" From: Numan Siddique 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 --- 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(). */