From patchwork Wed Jan 12 16:11:05 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Van Haaren, Harry" X-Patchwork-Id: 1579211 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=HhiZbxG1; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 4JYszC3PKtz9sRR for ; Thu, 13 Jan 2022 03:12:39 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id C205E6FBD8; Wed, 12 Jan 2022 16:12:37 +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 Tdw4Ggw8fJ97; Wed, 12 Jan 2022 16:12:37 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp3.osuosl.org (Postfix) with ESMTPS id 179E76FBD1; Wed, 12 Jan 2022 16:12:36 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id F03A2C002F; Wed, 12 Jan 2022 16:12:35 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id A65A3C001E for ; Wed, 12 Jan 2022 16:12:34 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 945D76FBD3 for ; Wed, 12 Jan 2022 16:12:34 +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 Wc_Z9hgfbpRN for ; Wed, 12 Jan 2022 16:12:33 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by smtp3.osuosl.org (Postfix) with ESMTPS id 9A3BF6FBD1 for ; Wed, 12 Jan 2022 16:12:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642003953; x=1673539953; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=Vim6bZnLWTPMkjhApJoOzpROkp1sv9uGiQOqeGsENJA=; b=HhiZbxG1oFKrNsqnOv1RfqWedqJA0YIajnpLTPVYBekE1fCFRwrsRhR/ tXNZG/adT4pQUcjeoJ6xloW0zbxT5Zwv5H31t0mo2Nr6qWQBWjhpdUJF5 7shf3xiEhP+K3QA49WvRe8kK0S4rLbFYDZDp/yNch/a+mTNAuJqLqVEVS RPxDVxv1sfLVUmkBle96JnZ4od3ZNp65UwJUknsTZzlGwAWef1zoIaQ+8 OGW5lnWITaWHFk0AnWZ6pVj1kYZIPrk3HsHjaQphV8DoQuOwPh7JeJVEV Dxkt3RomLrP07bgXeIXHe8oSXoJb28HpAVYI2Q6liZ2ckNPhhIx3zsB85 A==; X-IronPort-AV: E=McAfee;i="6200,9189,10224"; a="304506674" X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="304506674" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2022 08:11:16 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,282,1635231600"; d="scan'208";a="620239032" Received: from silpixa00401120.ir.intel.com ([10.55.128.255]) by fmsmga002.fm.intel.com with ESMTP; 12 Jan 2022 08:11:15 -0800 From: Harry van Haaren To: ovs-dev@openvswitch.org Date: Wed, 12 Jan 2022 16:11:05 +0000 Message-Id: <20220112161107.1463714-1-harry.van.haaren@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211207110425.3873101-1-kumar.amber@intel.com> References: <20211207110425.3873101-1-kumar.amber@intel.com> MIME-Version: 1.0 Cc: kumar.amber@intel.com, i.maximets@ovn.org Subject: [ovs-dev] [PATCH v5 0/2] MFEX Hashing 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" Following from the MFEX Optimizations IPv6 + Hashing patchset, https://patchwork.ozlabs.org/project/openvswitch/list/?series=275590 This patchset introduces the optimization as described at OVS Conference; https://www.openvswitch.org/support/ovscon2021/#T32 https://youtu.be/X_uPybauF3g?list=PLaJlRa-xItwARDGAUp7lXviOgOhcRxSU-&t=976 The optimizations allow for simpler compute to hash the packet data, and the mfex autovalidator is updated to compare resulting hash values. This ensures that the hash values from optimized and scalar hashing functions are always identical. v5: - Force autovalidator to always calculate and validate hash value. - Rename "len" variable in mfex profile describe its use better. See here for previous versions of this patchset; https://patchwork.ozlabs.org/project/openvswitch/cover/20211207110425.3873101-1-kumar.amber@intel.com/ Kumar Amber (2): dpif-netdev/mfex: Add ipv4 profile based hashing dpif-netdev/mfex: Optimize packet hash and enable autovalidator NEWS | 2 +- lib/dpif-netdev-avx512.c | 6 +-- lib/dpif-netdev-extract-avx512.c | 65 +++++++++++++++++++++++++++++++ lib/dpif-netdev-private-extract.c | 19 +++++++++ 4 files changed, 88 insertions(+), 4 deletions(-) Tested-by: Emma Finn