From patchwork Wed Jan 17 11:18:49 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Adri=C3=A1n_Moreno?= X-Patchwork-Id: 1887377 Return-Path: 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=g6TC0zES; dkim-atps=neutral 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 4TFNgT2TP5z1ygb for ; Wed, 17 Jan 2024 22:19:17 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 26E3783BD8; Wed, 17 Jan 2024 11:19:15 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 26E3783BD8 Authentication-Results: smtp1.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=g6TC0zES 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 0VPMaVCe2nBv; Wed, 17 Jan 2024 11:19:14 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 6539483BC5; Wed, 17 Jan 2024 11:19:13 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 6539483BC5 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 361AAC0077; Wed, 17 Jan 2024 11:19:13 +0000 (UTC) X-Original-To: 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 E8E22C0037 for ; Wed, 17 Jan 2024 11:19:11 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id B6846435DB for ; Wed, 17 Jan 2024 11:19:11 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org B6846435DB 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=g6TC0zES X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ydUiJitO6i7W for ; Wed, 17 Jan 2024 11:19:11 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id C857B435D4 for ; Wed, 17 Jan 2024 11:19:10 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org C857B435D4 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1705490349; 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; bh=or19eA1oLesUrBt8u3IdOIG/+fha7FLESzquLtlxowo=; b=g6TC0zEShkr2ZGsvhEWJLu0AzM3v5ShWD+qbie0wEH2X5whBrSNPjkkadWG9Dkn6FrG1V6 hLDqPGLQp7bdzsaWdBkDuRJx3Qr4AFkAbLJW3HPwPrXBhmNj/7j6Wvcr1Sb/ZmxUd0qSl7 Jc6tGgf4+TAiQL08Jc1S2gEYViBo4fs= Received: from mimecast-mx02.redhat.com (mx-ext.redhat.com [66.187.233.73]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-546-R4pX-CjlPT6dQkIOxSIrWg-1; Wed, 17 Jan 2024 06:19:06 -0500 X-MC-Unique: R4pX-CjlPT6dQkIOxSIrWg-1 Received: from smtp.corp.redhat.com (int-mx10.intmail.prod.int.rdu2.redhat.com [10.11.54.10]) (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 mimecast-mx02.redhat.com (Postfix) with ESMTPS id 44A883C0F1A9; Wed, 17 Jan 2024 11:19:06 +0000 (UTC) Received: from antares.redhat.com (unknown [10.39.192.55]) by smtp.corp.redhat.com (Postfix) with ESMTP id 8E6BF492BE6; Wed, 17 Jan 2024 11:19:05 +0000 (UTC) From: Adrian Moreno To: dev@openvswitch.org Date: Wed, 17 Jan 2024 12:18:49 +0100 Message-ID: <20240117111902.1607239-1-amorenoz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.10 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [PATCH v4 0/8] python: Miscelaneous flow parsing fixes. 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" This series contains some miscelaneous fixes in the flow parsing library. V4: - Rebased and added a test to verify the length of the kv_lists V3: - Fixed pytests and added more tests for each fix. V2: - Rebased and dropped first patch. Adrian Moreno (8): python: ovs: flow: Fix typo in n_packets. python: tests: Add info and key tests for OFPFlows. python: ovs: flow: Add sample to nested actions. python: ovs: flow: Add dp hash and meter actions. python: tests: Refactor test_odp section testing. python: ovs: flow: Add idle_age to openflow flows. python: ovs: flow: Make check_pkt_len action a list. python: ovs: flow: Add meter_id to controller. python/ovs/flow/odp.py | 44 +++++++++------ python/ovs/flow/ofp.py | 3 +- python/ovs/flow/ofp_act.py | 1 + python/ovs/tests/test_odp.py | 92 +++++++++++++++--------------- python/ovs/tests/test_ofp.py | 105 +++++++++++++++++++++++++++++------ 5 files changed, 164 insertions(+), 81 deletions(-)