From patchwork Mon Mar 21 06:14:31 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kumar Amber X-Patchwork-Id: 1607576 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=l/IWugHU; 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 4KMPwn6X3vz9s1l for ; Mon, 21 Mar 2022 17:34:33 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 6A57860D8E; Mon, 21 Mar 2022 06:34:31 +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 1o7r3PaZmoAS; Mon, 21 Mar 2022 06:34:29 +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 DCD996059A; Mon, 21 Mar 2022 06:34:28 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 82035C001A; Mon, 21 Mar 2022 06:34:28 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 755A9C000B for ; Mon, 21 Mar 2022 06:34:26 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6DE0D405CE for ; Mon, 21 Mar 2022 06:34:26 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=intel.com 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 BnfJMA93TJl7 for ; Mon, 21 Mar 2022 06:34:25 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from mga02.intel.com (mga02.intel.com [134.134.136.20]) by smtp4.osuosl.org (Postfix) with ESMTPS id 5ECBB402DD for ; Mon, 21 Mar 2022 06:34:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1647844465; x=1679380465; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=P41U/1IuZECtimtnDFolVrOKxrfGZf/uyLiwIa9pH7Y=; b=l/IWugHUonMRb1uD/WTLccztYAzn20dLrWAc3lQ478kU+ttDTA/5GkUh f6qU9cjiITu/+s0JRPvwzw7yBicZX9Ed2frYc7TcLepwRqvI6fKsrU9Gg I2mgJ6EHS7XtVsPuunTxzLXloyC+lZcgDdlDO2bzvFyzWBr0jd2LaqTJq ftGLiDw6I7wCZAgjl9sWOC6JaD44n9dbyYGUtShcoyyCxyv9OoH2Qjmuu MpAX+suTUgrsLR5xRN2mihMsph4prrpjP0u75JsU8sC9Nonzl6M6HBfxJ rICc2ijKSxHTjG0/thDR6vj2QqPHGBGnrj/QdnSrAFv83gPDcWvTkz2qv w==; X-IronPort-AV: E=McAfee;i="6200,9189,10292"; a="244953076" X-IronPort-AV: E=Sophos;i="5.90,197,1643702400"; d="scan'208";a="244953076" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Mar 2022 23:34:23 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.90,197,1643702400"; d="scan'208";a="518308615" Received: from unknown (HELO localhost.localdomain) ([10.190.213.111]) by orsmga006.jf.intel.com with ESMTP; 20 Mar 2022 23:34:20 -0700 From: Kumar Amber To: ovs-dev@openvswitch.org Date: Mon, 21 Mar 2022 11:44:31 +0530 Message-Id: <20220321061441.1833575-1-kumar.amber@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Cc: i.maximets@ovn.org, fbl@sysclose.org, Kumar Amber Subject: [ovs-dev] [PATCH v1 00/10] DPIF + MFEX Inner Vxlan AVX512 Opts 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 of Patchsets introduce the Optimizations for supporting Vxlan tunneled packets in DPIF and MFEX. Along with the optimization various tests and scalar refactoring of scalar path is done to be used accross without duplication. Over the Tests we have observed a gain of approximate 20~25% gain in performance over the scalar path. Kumar Amber (10): dpif-netdev: Refactor recirc data allocation and hash fn. dpif-netdev-avx512: Refactor avx512 dpif and create new APIs. dpif-netdev: Add function pointer for dpif re-circulate. dpif-netdev-avx512: Add inner packet handling to dpif. dpif-mfex: Modify set/get mfex commands to include inner. dpif-mfex: Change mfex fn pointer prototype to include md_is_valid. mfex-study: Modify study func to select outer and inner mfex funcs. mfex-avx512: Add support for tunnel packets in avx512 mfex. dpif-avx512: Add mfex inner support to avx512 dpif. system-dpdk.at: Add DPIF test for ipv4 vxlan packet types. Documentation/topics/dpdk/bridge.rst | 19 ++-- lib/dpif-netdev-avx512.c | 62 ++++++++++--- lib/dpif-netdev-extract-avx512.c | 54 ++++++++--- lib/dpif-netdev-extract-study.c | 132 ++++++++++++++++++--------- lib/dpif-netdev-private-dpcls.h | 23 +++++ lib/dpif-netdev-private-dpif.c | 59 ++++++++++-- lib/dpif-netdev-private-dpif.h | 35 ++++++- lib/dpif-netdev-private-extract.c | 35 ++++++- lib/dpif-netdev-private-extract.h | 21 +++-- lib/dpif-netdev-private-thread.h | 6 ++ lib/dpif-netdev.c | 72 ++++++++------- tests/automake.mk | 1 + tests/pcap/dpif_vxlan.pcap | Bin 0 -> 488 bytes tests/system-dpdk.at | 76 +++++++++++++++ 14 files changed, 465 insertions(+), 130 deletions(-) create mode 100644 tests/pcap/dpif_vxlan.pcap