From patchwork Wed Dec 6 07:53:15 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ales Musil X-Patchwork-Id: 1872478 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=VL7dC9rY; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.133; helo=smtp2.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.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 4SlV5W5hdDz23nQ for ; Wed, 6 Dec 2023 18:53:35 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 1803C4360D; Wed, 6 Dec 2023 07:53:33 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 1803C4360D 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=VL7dC9rY 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 US_V2UaMR29j; Wed, 6 Dec 2023 07:53:32 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp2.osuosl.org (Postfix) with ESMTPS id 91CA541A6C; Wed, 6 Dec 2023 07:53:30 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 91CA541A6C Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id B9FC9C0DDA; Wed, 6 Dec 2023 07:53:27 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6AF03C0037 for ; Wed, 6 Dec 2023 07:53:25 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D268D41920 for ; Wed, 6 Dec 2023 07:53:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org D268D41920 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=VL7dC9rY 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 ve2_YEXleQMN for ; Wed, 6 Dec 2023 07:53:24 +0000 (UTC) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2A11340879 for ; Wed, 6 Dec 2023 07:53:24 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 2A11340879 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1701849203; 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=8Ttj5TWGn3gLYcFWuENpez160IWT77ImnR5mzhmCS2I=; b=VL7dC9rYTMxYK7P/sLqyunBTsPwQvNQH6fP8k9hUyduZW3FGVfyExGunDdmlvBOB1Mqgv8 Q1jp8ZJK7MyuhSSbRYYKe6NrJe4zFjXFzcqvMF4m7Dt9o1yagaPDUCrXMZYgdpFC8+51GT n3Dz2xT8P8EqAAbSS+ptmcPgwT2qD4g= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-295-H2XX7p-sOD24EGOzpOw_DA-1; Wed, 06 Dec 2023 02:53:19 -0500 X-MC-Unique: H2XX7p-sOD24EGOzpOw_DA-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.rdu2.redhat.com [10.11.54.8]) (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 755C8832D61; Wed, 6 Dec 2023 07:53:19 +0000 (UTC) Received: from amusil.. (unknown [10.34.130.152]) by smtp.corp.redhat.com (Postfix) with ESMTP id BE98AC15A0C; Wed, 6 Dec 2023 07:53:18 +0000 (UTC) From: Ales Musil To: dev@openvswitch.org Date: Wed, 6 Dec 2023 08:53:15 +0100 Message-ID: <20231206075318.13854-1-amusil@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.11.54.8 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: i.maximets@ovn.org Subject: [ovs-dev] [PATCH v5 0/3] Extend the CT flush with mark and labels fields 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" The CT flush is not capable of partial flush based on the touples and zone combinations. Extend it so it also accepts mark and labels. As part of this series unify parsing of arguments in dpctl and ovs-ofctl for the ct flush command. Ales Musil (3): ofp-prop: Add helper for parsing and storing of ovs_u128. dpctl, ovs-ofctl: Unify parsing of ct-flush arguments. openflow: Allow CT flush to match on mark and labels. NEWS | 3 + include/openflow/nicira-ext.h | 4 + include/openvswitch/ofp-ct.h | 14 ++- include/openvswitch/ofp-prop.h | 5 + lib/ct-dpif.c | 12 ++- lib/dpctl.c | 46 ++------- lib/ofp-ct.c | 182 ++++++++++++++++++++++++++++++++- lib/ofp-prop.c | 42 ++++++++ tests/ofp-print.at | 84 +++++++++++++++ tests/ovs-ofctl.at | 36 +++++++ tests/system-traffic.at | 112 +++++++++++++------- utilities/ovs-ofctl.8.in | 13 ++- utilities/ovs-ofctl.c | 49 +++------ 13 files changed, 475 insertions(+), 127 deletions(-)