Received: by 2002:a89:413:0:b0:1fd:dba5:e537 with SMTP id m19csp331754lqs; Thu, 13 Jun 2024 11:13:56 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVhELGkFsAUMT+Mfv6RzemUiLjwK4qlTY9p1tpSdiWjIL9mo6Ov5Td9Co+j/rBoOIMXP7FEOr4Ko1AdThal2VEVkXDzGOb8djX/Ct/lNw== X-Google-Smtp-Source: AGHT+IHEJUGUQ2dPBvp7X3PAb7uPUmYHgnR9xz1bdlkO4xsU5hLqPJ2Wwzm3S5sz24/p26tMazJH X-Received: by 2002:a05:6a20:918f:b0:1b8:4107:ce4d with SMTP id adf61e73a8af0-1bae7e0a009mr740674637.19.1718302435873; Thu, 13 Jun 2024 11:13:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718302435; cv=pass; d=google.com; s=arc-20160816; b=holKDpBhdPVqGqRoKkFp7XdrOyh/EuHsm3uiElG1pYC6rNZ/qfMbqsZcEJSP7qhstt 4+VvK1XRDPpnw9wZI8WbBUnaj+eJNLpJdFdFHpDxyTMOsoYBDOmwtpwp5zdpa0aGuW3X kKkOyXZnw3HP0Otu9Tucg58R4myqZS4U2rd3e/28BP9ULSsMvmjisGgvd1j2IiJ/frLL +hsjooWV01cHcivqT07P2SF7bYo3qUkU2llFQBRTMJcUGxa167iBfULrfAfwLY0fD+/y N3fL3Wm7U0fp3G7lo5PFfG7AsEklRRnGaqRWUfXPxwiFnVlXCUo4x48ZovJZ+4McMl04 b1yw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=Z8TqPTUTw/4Zs7sR0nY6BGVi0puLg7Tsv8WeeuKNgVQ=; fh=HLI0XJ/48QKNENdGc+eTHiBFCXj3cne18WbXVwR06EE=; b=oG+JsvHHcfGG2HDKug137qqqxGmioTbH4ZQdPFjaupBsBCsCCZgjI7BkdAVZsg4tEG 8Qa13PL4offcqbS0opG6HAbB9TnNqCXPr7rvTOJU4cfQwAThAVc8IAhik1+BKCYMrnR8 +YmX0l81n3ZBM+nMSer284JmvD4VQBxzOIU+24GBWPe9pjVjjxtCHj4C3HrnXDzlc4+0 AfIYQhxcODHF9OrhHStVPr2/IbAZudwSzYZh0B9+7Fsyf6dA0np1NDRFTH4kGIBfM1kh RIRIh23lPjsaxQwNoNrPXum2CDtCYYWdkPn3Y3jopIqdEylSLmvACRRxcFjwmf/zXb5G QqJQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ZrO/zRBj"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-213796-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id 41be03b00d2f7-6fede823734si1743552a12.196.2024.06.13.11.13.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jun 2024 11:13:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-213796-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="ZrO/zRBj"; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-213796-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-213796-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 78C27283FBD for ; Thu, 13 Jun 2024 18:13:55 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 07ECD14AD1E; Thu, 13 Jun 2024 18:13:50 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="ZrO/zRBj" Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 02F2014A632 for ; Thu, 13 Jun 2024 18:13:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718302429; cv=none; b=bUIT911ugluDdCXFVJZEdjH3rEYlCWRAdy9NKjzMmc0px6t6xNcnwIeuOyp7hullta8F3IgQz1iKn0bp+gjKt3PYYsofOYpNuD8xgpsbIwFV/NbV6uxWR55iHNZ59f763GnHk8mBhh0gRO3y3j9jX4ZZG/OyKNJuyp17A9BYv5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718302429; c=relaxed/simple; bh=hoIXYPbZ6aocu1qJ+2/TrKkuZM2SVzmqHzSo7LfY/eU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OlHEWO61/k0QG8VHPQmyqr3pxkJFvZF2FprbBSWh8RMIkO9vesmRCQe0ciYwoMkZhLPVuGnb5lHbseIOwD4IMzv5/KR00/X2HMUkETbHZQejMl+Gq9ZvU+Ix8mxiBhnRmFzEo7nRNEgHw60EW0qAGS9bKvfljH675+6Mh8jzjx0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=ZrO/zRBj; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1718302423; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Z8TqPTUTw/4Zs7sR0nY6BGVi0puLg7Tsv8WeeuKNgVQ=; b=ZrO/zRBjEd6tu3/tjBA5NHG8reQX7YOZaZRTIOkr8hwc1HyZtM1s3uyQKOtJQwikMphtEI lDp9CNt1HjFf2vPUZCj1jAZKB61W0vm+hcxJaey3uKV3LZT9AdcLjOXAfdhHNCVZ0l5JXs AUwX9ZcAo+neZbC0jhJcFJPOy1qzHqc= 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-570-cloVpsloNMCGhS9OlICJuw-1; Thu, 13 Jun 2024 14:13:39 -0400 X-MC-Unique: cloVpsloNMCGhS9OlICJuw-1 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-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id E076219560AB; Thu, 13 Jun 2024 18:13:37 +0000 (UTC) Received: from RHTRH0061144.redhat.com (unknown [10.22.16.41]) by mx-prod-int-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 74F8419560BF; Thu, 13 Jun 2024 18:13:34 +0000 (UTC) From: Aaron Conole To: netdev@vger.kernel.org Cc: dev@openvswitch.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Pravin B Shelar , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Shuah Khan , Adrian Moreno , Stefano Brivio , Ilya Maximets Subject: [RFC net-next 0/7] selftests: net: Switch pmtu.sh to use the internal ovs script. Date: Thu, 13 Jun 2024 14:13:26 -0400 Message-ID: <20240613181333.984810-1-aconole@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 3.0 on 10.30.177.12 Currently, if a user wants to run pmtu.sh and cover all the provided test cases, they need to install the Open vSwitch userspace utilities. This dependency is difficult for users as well as CI environments, because the userspace build and setup may require lots of support and devel packages to be installed, system setup to be correct, and things like permissions and selinux policies to be properly configured. The kernel selftest suite includes an ovs-dpctl.py utility which can interact with the openvswitch module directly. This lets developers and CI environments run without needing too many extra dependencies - just the pyroute2 python package. This series enhances the ovs-dpctl utility to provide support for set() and tunnel() flow specifiers, better ipv6 handling support, and the ability to add tunnel vports, and LWT interfaces. Finally, it modifies the pmtu.sh script to call the ovs-dpctl.py utility rather than the typical OVS userspace utilities. NOTE: This could also be applied as-is. I'm trying to get the vng test working in my environment, so I submitted as RFC because I didn't get to test with the config change in 7/7. Aaron Conole (6): selftests: openvswitch: Support explicit tunnel port creation. selftests: openvswitch: Refactor actions parsing. selftests: openvswitch: Add set() and set_masked() support. selftests: openvswitch: Add support for tunnel() key. selftests: openvswitch: Support implicit ipv6 arguments. selftests: net: Use the provided dpctl rather than the vswitchd for tests. selftests: net: add config for openvswitch .../selftests/net/openvswitch/ovs-dpctl.py | 370 +++++++++++++++--- tools/testing/selftests/net/config | 5 ++++ tools/testing/selftests/net/pmtu.sh | 87 +++- 3 files changed, 394 insertions(+), 68 deletions(-) -- 2.45.1