| Message ID | 20260922203106.2147404-4-twilson@redhat.com |
|---|---|
| State | New |
| Delegated to: | Ilya Maximets |
| 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=YUZBiBfw; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4hqBZn4xccz1y1m for <incoming@patchwork.ozlabs.org>; Wed, 23 Sep 2026 06:31:29 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 9620840867; Tue, 22 Sep 2026 20:31:25 +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 TtYRmTKJdOVM; Tue, 22 Sep 2026 20:31:24 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp4.osuosl.org 6428F40707 Authentication-Results: smtp4.osuosl.org; arc=fail smtp.remote-ip=140.211.9.56 ARC-Seal: i=2; d=osuosl.org; s=arc; a=rsa-sha256; cv=fail; t=1790109083; b=e3BHjfFjkmeWNK6NDXJrIqddJTMpwRTdWLIQWj0VsKg9SoKEYtsm4wMgAlk+nB0AEDF1 YsrtjDiAidvaXd9tHNOt/Xa6td9e+LL9eQesBqMSpl5pMgy/l03xS7zpCURKLEFd/ECow z0sFt73dzunIGYNSzJ8CfJyNe73aIKYSdZihVFtis79Ea16WLUAKIbi2D45PInkPUwpMd z2cM+0EDcBt+yOSQ3GES37iPA8yhEPMJk15KqEJygXSa0oB5Ho9p0MoXs8dglJEjVPS1Z lPdqcVik5r+vkfptOgVORPMlj39XPkryvgWiSX7RdCfBmFAe6AWJtrua0kL76IxdAEA== ARC-Message-Signature: i=2; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1790109083; h=X-Comment:Received:X-Original-To:Delivered-To:Received:Received: X-Virus-Scanned:X-Spam-Flag:X-Spam-Score:X-Spam-Level:X-Spam-Status: Received:ARC-Filter:Received-SPF:Received:DKIM-Signature:Received: X-MC-Unique:X-Mimecast-MFC-AGG-ID:Received:Received:To:Date: Message-ID:In-Reply-To:References:MIME-Version:X-Scanned-By: X-Mimecast-Spam-Score:X-Mimecast-MFC-PROC-ID:X-Mimecast-Originator: Subject:X-BeenThere:X-Mailman-Version:Precedence:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:From: Reply-To:Content-Type:Content-Transfer-Encoding:Errors-To:Sender; bh=aEN70Qe2kdDNWmkhZxWOP6NucuyuHxgAg8XagCQT9aI=; b=dwmTnMobc+xD8MDYN9G1MJdNwPABogFCfyKRXnCUCwYJgCtGYnfk/e/hEdL8RpS1sDod SXJG2TcZjpAJevoiPIlHvbtdEGkjtbjM9lKiqXqvGSZCdphwmRkaRI63hRJ0nqb1L9AQ3 tsYH1agKtarWcqWR7kJmEYsKcB5o7Vj9wnWFGJ444azHHUxgA/TWGC2wYsxhHp1hbfiB0 4bGnAr41psX+iYXbym39wLt21mEFYYKxtCwKJVSuLS3oHiY5W9BewqnZDWYtUrRuD7/ng EyG713UdPkjibq+UuJMtL03xlfr1UiSqIymwZy+QrlmKZ1jYhHeqLMerGYUWVzdLnPg== ARC-Authentication-Results: i=2; smtp4.osuosl.org; dkim=fail reason="signature verification failed" header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=YUZBiBfw; arc=fail smtp.remote-ip=140.211.9.56 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: smtp4.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=YUZBiBfw Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 6428F40707; Tue, 22 Sep 2026 20:31:23 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id F234AC0908; Tue, 22 Sep 2026 20:31:22 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id B78C4C0907 for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:20 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A9E82402D6 for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:20 +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 lTtvVQwhEGeD for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:20 +0000 (UTC) ARC-Filter: OpenARC Filter v1.3.0 smtp2.osuosl.org ECE1040116 Authentication-Results: smtp2.osuosl.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; d=osuosl.org; s=arc; a=rsa-sha256; cv=none; t=1790109080; b=lXLGibCM1EQqIm9i0NYii7a8Ss4QCYVJje+BLuuzpmDyMoL93l9+AUp/Fa0+PONMUeZO KdJ9+NHvEZS9P5JqJLgapUJexnyEAbcDci6vHB51lqpk4kKSdaEgIyUn7QdwcIxfLOcRQ o82DReVKqW93kTEDsoCmztT87GegFGv5D061X4zP8cygOBMSm8VRPhaht8QDRKw5E9l0v PuLya5rs4fOdT9ov8xIp8ABfPBtIRnT09YQDejzMTcw+2mKOK95hXxADxk9ZG+dUQ1CSE RLxUUXydes5i5mwbY5T5sVQa7Kn8S8PzFhS9TyV7stpeDzY39g+ClQACuv0BMNWHmAw== ARC-Message-Signature: i=1; d=osuosl.org; s=arc; a=rsa-sha256; c=relaxed/relaxed; t=1790109080; h=Received-SPF:DKIM-Signature:Received:X-MC-Unique: X-Mimecast-MFC-AGG-ID:Received:Received:From:To:Cc:Subject:Date: Message-ID:In-Reply-To:References:MIME-Version:X-Scanned-By: X-Mimecast-Spam-Score:X-Mimecast-MFC-PROC-ID:X-Mimecast-Originator: Content-Transfer-Encoding:content-type; bh=FqPtm6lnjccypWORzacQhHqZ6LPIwuu2zfiXa6xK1Q4=; b=RBPhj+QirSLPlZ0qbP3mHHKginjPMjgf04q1v1wXW+wOWO3PwPwn4h/WN3U8p4SNGG/8 jfg0WMwVkq20ClPgkVf4BTeYT1VEjZGj4rmLHG4d6+WFZO0UFQcPiyzyOkFbq9+IUC8r2 lYeqSwaD2ph0YrX/5dSWK50y/GkE8DEEDunxFAF62hGm5XJ01c1hQH11XmtK1lPLzY0L8 xDw8mTYgfs7a2I3S/994xQIHCiblALbYcBKtVlhgQusLQilM0D/s06IoyTGsT+tlsP9Fg V5Ox5bINn205e3zy1Kq2CzBcs976TjwYgvUPlckW+G3r62eC9LkbYd5wgQul0H4Nezw== ARC-Authentication-Results: i=1; smtp2.osuosl.org; dmarc=pass header.from=redhat.com; dkim=pass header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=YUZBiBfw; arc=none smtp.remote-ip=170.10.129.124 Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=twilson@redhat.com; receiver=<UNKNOWN> Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=YUZBiBfw Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp2.osuosl.org (Postfix) with ESMTP id ECE1040116 for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790109078; 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=FqPtm6lnjccypWORzacQhHqZ6LPIwuu2zfiXa6xK1Q4=; b=YUZBiBfwbNoSkoyZuP5NEiC/lyWmQQgOTatBACLPANem8/LsNt/fzYDxMOJ2G1OqhZef02 FC/Z1K5ECTNjFYVD57QQZ6IjYb4JlEdgXGiC/Un64MnEExrmOf9tBeC/tGAZ2bvp8jg0U2 izSksSIPlY9lLAej8QzuVLwKt/Emp4g= Received: from mx-prod-mc-03.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-377-Xrkmejw9Mpyfm_b0bQlB1w-1; Tue, 22 Sep 2026 16:31:15 -0400 X-MC-Unique: Xrkmejw9Mpyfm_b0bQlB1w-1 X-Mimecast-MFC-AGG-ID: Xrkmejw9Mpyfm_b0bQlB1w_1790109075 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id DCCBB1977026 for <ovs-dev@openvswitch.org>; Tue, 22 Sep 2026 20:31:14 +0000 (UTC) Received: from twilson-thinkpadp1gen3.rmtusmo.csb (headnet05.pony-001.prod.iad2.dc.redhat.com [10.2.32.117]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 45C5D1953941; Tue, 22 Sep 2026 20:31:14 +0000 (UTC) To: ovs-dev@openvswitch.org Date: Tue, 22 Sep 2026 15:31:02 -0500 Message-ID: <20260922203106.2147404-4-twilson@redhat.com> In-Reply-To: <20260922203106.2147404-1-twilson@redhat.com> References: <20260922203106.2147404-1-twilson@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: L6qXOjWA7QrBBlS4kJJKV3vMxFhOYjeD7NRohp4kYX8_1790109075 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH v2 3/7] 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> 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 |
| ovsrobot/github-robot-_Build_and_Test | success | github build: passed |
| ovsrobot/github-robot-_FreeBSD_Build_and_Test | success | github build: passed |
diff --git a/python/ovs/db/idl.py b/python/ovs/db/idl.py index ce2cbc5eb..342fa487c 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 Signed-off-by: Terry Wilson <twilson@redhat.com> --- python/ovs/db/idl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)