From patchwork Fri Dec 3 15:32:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Finn, Emma" X-Patchwork-Id: 1563307 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=) 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J5H0c75bHz9s0r for ; Sat, 4 Dec 2021 02:33:36 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 28162831E7; Fri, 3 Dec 2021 15:33:31 +0000 (UTC) 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 OtjOmnfAuS-c; Fri, 3 Dec 2021 15:33:29 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id C699E8333E; Fri, 3 Dec 2021 15:33:26 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5C57EC0073; Fri, 3 Dec 2021 15:33:25 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 400FCC006F for ; Fri, 3 Dec 2021 15:33:23 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id D3EB360B94 for ; Fri, 3 Dec 2021 15:33:22 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id U90Uuzqei492 for ; Fri, 3 Dec 2021 15:33:18 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by smtp3.osuosl.org (Postfix) with ESMTPS id 12798605DB for ; Fri, 3 Dec 2021 15:33:17 +0000 (UTC) X-IronPort-AV: E=McAfee;i="6200,9189,10186"; a="323246025" X-IronPort-AV: E=Sophos;i="5.87,284,1631602800"; d="scan'208";a="323246025" Received: from orsmga003.jf.intel.com ([10.7.209.27]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Dec 2021 07:33:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,284,1631602800"; d="scan'208";a="460075833" Received: from silpixa00400899.ir.intel.com ([10.243.23.110]) by orsmga003.jf.intel.com with ESMTP; 03 Dec 2021 07:33:14 -0800 From: Emma Finn To: dev@openvswitch.org, harry.van.haaren@intel.com, kumar.amber@intel.com Date: Fri, 3 Dec 2021 15:32:53 +0000 Message-Id: <20211203153301.37692-1-emma.finn@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211202163944.383010-1-emma.finn@intel.com> References: <20211202163944.383010-1-emma.finn@intel.com> MIME-Version: 1.0 Subject: [ovs-dev] [PATCH v3 0/8] Actions Infrastructure + Optimizations 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" --- v3: - Refactored to fix unit test failures - Removed some sign-off on commits --- v2: - Fix the CI build issues. --- This patchset introduces actions infrastructure changes which allows the user to choose between different action implementations based on CPU ISA by using different commands. The Infrastructure also provides a way to check the correctness of the ISA optimized action version against the scalar version. This patchset also introduces an optimized version of the pop_vlan action. Emma Finn (6): odp-execute: Add function pointers to odp-execute for different action implementations. odp-execute: Add function pointer for pop_vlan action. odp-execute: Add auto validation function for actions. odp-execute: Add command to switch action implementation. odp-execute: Add ISA implementation of actions. odp-execute: Add ISA implementation of pop_vlan action. Kumar Amber (2): pmd.at: Add test-cases for ovs-actions commands. dpif-netdev: Add configure to enable autovalidator at build time. acinclude.m4 | 17 +++ configure.ac | 1 + lib/automake.mk | 6 +- lib/dp-packet.c | 23 ++++ lib/dp-packet.h | 5 + lib/dpdk.c | 1 + lib/dpif-netdev.c | 41 +++++++ lib/odp-execute-avx512.c | 144 ++++++++++++++++++++++++ lib/odp-execute-private.c | 223 ++++++++++++++++++++++++++++++++++++++ lib/odp-execute-private.h | 110 +++++++++++++++++++ lib/odp-execute.c | 84 ++++++++++++-- lib/odp-execute.h | 9 ++ tests/pmd.at | 20 ++++ 13 files changed, 672 insertions(+), 12 deletions(-) create mode 100644 lib/odp-execute-avx512.c create mode 100644 lib/odp-execute-private.c create mode 100644 lib/odp-execute-private.h