From patchwork Fri May 16 21:25:14 2025 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ilya Maximets X-Patchwork-Id: 2086941 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (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 4Zzg8s0vnCz1yPv for ; Sat, 17 May 2025 07:25:17 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 37D5A82EAD; Fri, 16 May 2025 21:25:31 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id kw72c_qzSMYw; Fri, 16 May 2025 21:25:30 +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= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 64EE381F72 Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 64EE381F72; Fri, 16 May 2025 21:25:30 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 3B242C007B; Fri, 16 May 2025 21:25:30 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 11B27C0009 for ; Fri, 16 May 2025 21:25:29 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id E65104057A for ; Fri, 16 May 2025 21:25:28 +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 Hen6E2P6fkYj for ; Fri, 16 May 2025 21:25:28 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.218.66; helo=mail-ej1-f66.google.com; envelope-from=i.maximets.ovn@gmail.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org E1F33400C5 Authentication-Results: smtp2.osuosl.org; dmarc=none (p=none dis=none) header.from=ovn.org DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E1F33400C5 Received: from mail-ej1-f66.google.com (mail-ej1-f66.google.com [209.85.218.66]) by smtp2.osuosl.org (Postfix) with ESMTPS id E1F33400C5 for ; Fri, 16 May 2025 21:25:27 +0000 (UTC) Received: by mail-ej1-f66.google.com with SMTP id a640c23a62f3a-acae7e7587dso390914666b.2 for ; Fri, 16 May 2025 14:25:27 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1747430726; x=1748035526; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=w9ry/B/d2Xk+jNfvuu4HpJ0bLjl8xqRAdqGN7HZbkEc=; b=H0EFXWmyoe700tQPDaixJxmrIM8kXjqI8iIIVXbekqoseiLPmWoDbMXfXYcp3+d6lS yNCCKJx2I77vupSNXP/2bZHyHspFzfuErbC27zqJZwC3Jjd1yN19wlcfkMh1Ug9EH1Ox g/FaMQrcLYQRCOBjZazmPIoJRNxfj2o030fRfwCPD2A32oLjcmwH6pGKhl+wFhkeg/D5 2hcYQzPv+uGJ/2A8IQPd1LTSU90ZaTQCzdnv26YI7wtFUFrB78ghqjJQZyPStHeKkIu8 aET3HpQsmOA8ZSQYtdf+Vs/OWTpI8jrRnH+OkcNMlOXoX5fy8X3L7bal4s98pGUrroAY 1ClA== X-Gm-Message-State: AOJu0YwiJyoCdL2gvld3a25umRaPrMlJnfPgKcKZySrGOJOAh0F5MZxG 76eQQMz9TUKrItrurSvvuLT3vgiRp0vIpSw+TMBda0zwZBfKitVMrDvCMIPXztzF X-Gm-Gg: ASbGncsVOD8jIsQZOK7AbbugiOEMgncn2YBN7lBkLULMvLeTLqhJ1pIjyd7pCaL4+Gc nVv2f9+Zs1eMGcK4KndHjTJVxrt/TmXfct5KVJEz7MRdlmQEoadVxKffLZ/Z6LZTkqC1DAOrVoA joi/DHG7e5eoTsP7OKiF29UHKtInNFoeMFco9HkQ/EsaPFxAG6q+BI2VIOP7mCL/cbDM1FiZdv/ Gy+IgxWJaMJce9X5GlJ3hLozJjF9YklTp/FnBOrdogt68sg11irE/qu9RYP34srntfRW2DMwr8e DOSboy9TRI+RWJTDQkZbns8Pfpxj6c5ZHWtsW1SuJL2dsTjaSDA3msfouw1zC8w4fEHTpAHCc6e wA7PZGDvM85E4Hf4R X-Google-Smtp-Source: AGHT+IFLt3ktVZ/KuPC8g/X929R1Cmg3B1LkN8xqhIZOKhXflENn6GTLxNIdZMH53f/syM9leGOV4Q== X-Received: by 2002:a17:906:f049:b0:ad2:4e96:ee11 with SMTP id a640c23a62f3a-ad52d4420afmr467978566b.8.1747430725616; Fri, 16 May 2025 14:25:25 -0700 (PDT) Received: from im-t490s.redhat.com (78-80-121-182.customers.tmcz.cz. [78.80.121.182]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-ad52d490789sm212047266b.130.2025.05.16.14.25.24 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 16 May 2025 14:25:25 -0700 (PDT) From: Ilya Maximets To: ovs-dev@openvswitch.org Date: Fri, 16 May 2025 23:25:14 +0200 Message-ID: <20250516212521.733714-1-i.maximets@ovn.org> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Subject: [ovs-dev] [PATCH 0/3] classifier: Fix crash while setting flow table prefixes. X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Ilya Maximets Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" The second patch is the main fix, the last patch is a test for it. Split this way for easier reviewing and testing. The first patch is a small fix for the existing test function. Ilya Maximets (3): tests: classifier: Fix the rule number check during trie verification. classifier: Fix race for prefix tree configuration. tests: classifier: Add a stress test for prefixes reconfiguration. lib/classifier.c | 196 ++++++++++++++++++++-------------------- lib/classifier.h | 10 +- tests/classifier.at | 5 + tests/test-classifier.c | 118 +++++++++++++++++++++--- 4 files changed, 212 insertions(+), 117 deletions(-)