Message ID | 20210825031234.3163243-1-numans@ovn.org |
---|---|
Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> 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.137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN>) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GvWJN3sHDz9sWl for <incoming@patchwork.ozlabs.org>; Wed, 25 Aug 2021 13:13:06 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id F3E1B4061B; Wed, 25 Aug 2021 03:13:02 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YdL-jCLwdOMH; Wed, 25 Aug 2021 03:12:59 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id 401E640613; Wed, 25 Aug 2021 03:12:58 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 166F1C001A; Wed, 25 Aug 2021 03:12:58 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) by lists.linuxfoundation.org (Postfix) with ESMTP id E1247C000E for <dev@openvswitch.org>; Wed, 25 Aug 2021 03:12:56 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id D743781CFE for <dev@openvswitch.org>; Wed, 25 Aug 2021 03:12:56 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ylXO96LWnkyF for <dev@openvswitch.org>; Wed, 25 Aug 2021 03:12:52 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from relay11.mail.gandi.net (relay11.mail.gandi.net [217.70.178.231]) by smtp1.osuosl.org (Postfix) with ESMTPS id 4FEBF81836 for <dev@openvswitch.org>; Wed, 25 Aug 2021 03:12:52 +0000 (UTC) Received: (Authenticated sender: numans@ovn.org) by relay11.mail.gandi.net (Postfix) with ESMTPSA id 8632F100003; Wed, 25 Aug 2021 03:12:48 +0000 (UTC) From: numans@ovn.org To: dev@openvswitch.org Date: Tue, 24 Aug 2021 23:12:34 -0400 Message-Id: <20210825031234.3163243-1-numans@ovn.org> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH v4 0/2] ovsdb-idl: Address missing table and column issues. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
Series |
ovsdb-idl: Address missing table and column issues.
|
expand
|
From: Numan Siddique <nusiddiq@redhat.com> This patch series addresses the transaction issues seen when the C IDL client is running compiled with newer schema and ovsdb-server is still running with older schema. Patch 1: Adds the API to query for table and column names. Patch 2: Addresses the transaction issues. v3 -> v4 ------ * Addressed the review comment from Ilya for patch 2. ovsdb_idl_txn_insert() will not return NULL for missing tables. v2 -> v3 ------ * Patch 2 is added in v3. * Patch 1 implementation in v2 was wrong. This patch fixes it and enhances the test cases. v1 -> v2 ------ * Added the test cases. Numan Siddique (2): ovsdb-idl : Add APIs to query if a table and a column is present or not. ovsdb-idl: Exclude missing tables and columns in the transaction. lib/ovsdb-idl-provider.h | 4 ++ lib/ovsdb-idl.c | 52 ++++++++++++++++ lib/ovsdb-idl.h | 3 + tests/idltest.ovsschema | 9 +++ tests/idltest2.ovsschema | 7 +++ tests/ovsdb-idl.at | 75 +++++++++++++++++++++++ tests/test-ovsdb.c | 126 +++++++++++++++++++++++++++++++++++++++ 7 files changed, 276 insertions(+)