| Message ID | 20260826043433.1832409-4-twilson@redhat.com |
|---|---|
| State | New |
| Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=IjbQJVig; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hVBdp5HnLz1xpj for <incoming@patchwork.ozlabs.org>; Wed, 26 Aug 2026 14:35:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 6278F40204; Wed, 26 Aug 2026 04:35:09 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id e80EQfGgUHE9; Wed, 26 Aug 2026 04:35:08 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.9.56; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> Authentication-Results: smtp2.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=IjbQJVig Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id 3C99040201; Wed, 26 Aug 2026 04:35:08 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 18BBCC0BFA; Wed, 26 Aug 2026 04:35:08 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id CD4CCC0BF9 for <dev@openvswitch.org>; Wed, 26 Aug 2026 04:35:07 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id B3C6E40555 for <dev@openvswitch.org>; Wed, 26 Aug 2026 04:35:07 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id BSNiQXolCYkJ for <dev@openvswitch.org>; Wed, 26 Aug 2026 04:35:07 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.133.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=twilson@redhat.com; receiver=<UNKNOWN> Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp4.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=IjbQJVig Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp4.osuosl.org (Postfix) with ESMTP id 11D134054C for <dev@openvswitch.org>; Wed, 26 Aug 2026 04:35:06 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1787718905; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=A3FvTbeQkS9mZNpvK7qrTSTSnv3btXshziah1y+AvpA=; b=IjbQJVigSFge85+3g+RqlexAKsjp+mPdy4woP0WQyas+OtaDEiicZ6/PkNJovVtjo+A+bL B+XqiUleP8krg0SlzJ2BOzZsbOmP3yZlVJcTzjBkLyGmSE8ExLsSvITjZsIHPIpj0F7uJD TscDglwdK2k8xwWCZnoWvHCnJiUVLwY= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-660-3bYi6btyNpKTIKeRhVnBtg-1; Wed, 26 Aug 2026 00:35:03 -0400 X-MC-Unique: 3bYi6btyNpKTIKeRhVnBtg-1 X-Mimecast-MFC-AGG-ID: 3bYi6btyNpKTIKeRhVnBtg_1787718902 Received: from mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.12]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 922281953947; Wed, 26 Aug 2026 04:35:02 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.22.88.60]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id D47791955F06; Wed, 26 Aug 2026 04:35:01 +0000 (UTC) To: dev@openvswitch.org Date: Tue, 25 Aug 2026 23:34:30 -0500 Message-ID: <20260826043433.1832409-4-twilson@redhat.com> In-Reply-To: <20260826043433.1832409-1-twilson@redhat.com> References: <20260826043433.1832409-1-twilson@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: D_EmQZsxF6llrD_ER9iZ5Ac-Rfo6fRyZB-TkdpJTcXg_1787718902 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH 3/6] python: idl: Fix expected cond_seqno when conditions are in flight. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.30 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> From: Terry Wilson via dev <ovs-dev@openvswitch.org> Reply-To: Terry Wilson <twilson@redhat.com> Cc: "Claude Opus 4.8" <noreply@anthropic.com> 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 |
python: Backport C fixes that never made it.
|
expand
|
| Context | Check | Description |
|---|---|---|
| ovsrobot/apply-robot | success | apply and check: success |
diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index 417e8c020..0a7478e9f 100644 --- a/python/ovs/db/idl.py +++ b/python/ovs/db/idl.py @@ -708,7 +708,7 @@ class Idl(object): # New condition will be sent out after all already requested ones # are acked. if table.condition_state.new: - any_reqs = any(t.condition_state.request + any_reqs = any(t.condition_state.requested is not None for t in self.tables.values()) return self.cond_seqno + int(any_reqs) + 1
When set_condition() queues a new condition while other tables already have conditions in flight, it must return a sequence number that accounts for those in-flight requests. The check for "any table has a requested condition" referenced the bound method t.condition_state.request instead of the .requested property, so the expression was always truthy and the returned expected seqno could be one too high. Test against the .requested property (the in-flight condition slot) being populated instead. Assisted-by: Claude Opus 4.8 <noreply@anthropic.com> Signed-off-by: Terry Wilson <twilson@redhat.com> --- python/ovs/db/idl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)