From patchwork Wed Nov 24 21:23:56 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Maxime Coquelin X-Patchwork-Id: 1559370 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" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=efuL+5pF; dkim-atps=neutral Authentication-Results: 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=) 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HzvCj1HC2z9sRN for ; Thu, 25 Nov 2021 08:24:32 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 8BA8D400D4; Wed, 24 Nov 2021 21:24:28 +0000 (UTC) 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 l8E48C-6x3Q2; Wed, 24 Nov 2021 21:24:27 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp2.osuosl.org (Postfix) with ESMTPS id 6E9C840362; Wed, 24 Nov 2021 21:24:26 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 23EECC002F; Wed, 24 Nov 2021 21:24:26 +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 02A3DC000A for ; Wed, 24 Nov 2021 21:24:24 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id E0AD7408FD for ; Wed, 24 Nov 2021 21:24:24 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.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 H92iYOhDGNMu for ; Wed, 24 Nov 2021 21:24:23 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 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 B4D28408C9 for ; Wed, 24 Nov 2021 21:24:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1637789062; 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=+hIN3YYj2OkG8yOoWPpbfXntRW4TYcGWzquMBEZfBuw=; b=efuL+5pFRaOD11LzlxWEXBJ1xKpOd4uQXGmB3qTelf1/Yi7ie2863+hJIjEhmr9iA3lIMT UK8N2h+aYUg0aSV1kTjWDtHustUrb1RdNyyhYFyvEG65hKtm0FLwQqJWMTt00kQjxDIYir 0FI7hi1Zq3vAT/h1e8+yK/1Q91FjuEk= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-561-1kOO8eKkMSiO3M7dVq46LQ-1; Wed, 24 Nov 2021 16:24:19 -0500 X-MC-Unique: 1kOO8eKkMSiO3M7dVq46LQ-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5BDC78042E2; Wed, 24 Nov 2021 21:24:18 +0000 (UTC) Received: from max-t490s.redhat.com (unknown [10.39.208.43]) by smtp.corp.redhat.com (Postfix) with ESMTP id AA3EC5D9CA; Wed, 24 Nov 2021 21:24:10 +0000 (UTC) From: Maxime Coquelin To: dev@openvswitch.org Date: Wed, 24 Nov 2021 22:23:56 +0100 Message-Id: <20211124212400.70613-1-maxime.coquelin@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=maxime.coquelin@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: fbl@sysclose.org, Maxime Coquelin , i.maximets@ovn.org, david.marchand@redhat.com Subject: [ovs-dev] [PATCH 0/4] dpif-netdev: Hash-based Tx packet steering 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 introduces a new HXPS Tx mode alognside existing XPS and static modes. The goal is to provide a mode where all the transmit queues are used, whatever the number of PMD threads. This may be used with Vhost-user ports, where the guest application driving the Virtio device expects packets to be distributed on all the queues. As a preliminary step, in order to be able to validate the feature at OVS level, the first patch introduces per-queue basic statistics for Vhost-user ports. This patch is complementary to David's patch [0] adding per-queue statistics to DPDK ports using xstats. The series also introduces two DPDK tests for Vhost-user multiqueue, with and without HXPS enabled. Maxime Coquelin (4): netdev-dpdk: Introduce per rxq/txq Vhost-user statistics dpif-netdev: Introduce Tx queue mode dpif-netdev: Add HXPS Tx queue mode system-dpdk: Add tests for HXPS Documentation/automake.mk | 1 + Documentation/topics/dpdk/hxps.rst | 51 ++++++++++ Documentation/topics/dpdk/index.rst | 1 + lib/dpif-netdev.c | 95 ++++++++++++++---- lib/netdev-dpdk.c | 143 ++++++++++++++++++++++++++-- tests/system-dpdk.at | 135 ++++++++++++++++++++++++++ 6 files changed, 399 insertions(+), 27 deletions(-) create mode 100644 Documentation/topics/dpdk/hxps.rst