From patchwork Tue Jan 14 16:12:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Eelco Chaudron X-Patchwork-Id: 1222905 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.133; helo=hemlock.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: 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=RxFfPYX/; dkim-atps=neutral Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47xwTz3mXpz9sSL for ; Wed, 15 Jan 2020 03:12:54 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id 738A9878A0; Tue, 14 Jan 2020 16:12:52 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Xh9LfgaBkCcO; Tue, 14 Jan 2020 16:12:48 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by hemlock.osuosl.org (Postfix) with ESMTP id 8679887884; Tue, 14 Jan 2020 16:12:48 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6B8F8C1D83; Tue, 14 Jan 2020 16:12:48 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5C951C077D for ; Tue, 14 Jan 2020 16:12:47 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id 58264204FF for ; Tue, 14 Jan 2020 16:12:47 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 5liNb5Y07NLM for ; Tue, 14 Jan 2020 16:12:40 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-delivery-1.mimecast.com (us-smtp-1.mimecast.com [207.211.31.81]) by silver.osuosl.org (Postfix) with ESMTPS id B3E9B20115 for ; Tue, 14 Jan 2020 16:12:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579018359; 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=JdVyxWVmaowpeI5TKXsUetj0sO7DQ2tcUPTvQm6yeV0=; b=RxFfPYX/5FmA7nbWTUFGGmAKO7Kf2yLbx9sbxiO02h7HR0BS2ibz7CF7niRLrKwwldxKcl ehlg0CASBtcba0nM1tBZA23TstsNRh82JjUPaPnBrHOuknZESp9x1UNIJb0/v+tc5Bdx0A uAYh0x4PlV2wjvbfYwK21QGVp/pLeeo= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-153-eQt4P1VLMG2-aawJDM2mRA-1; Tue, 14 Jan 2020 11:12:36 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 329AA8E03E2; Tue, 14 Jan 2020 16:12:35 +0000 (UTC) Received: from netdev64.ntdv.lab.eng.bos.redhat.com (wsfd-netdev64.ntdv.lab.eng.bos.redhat.com [10.19.188.127]) by smtp.corp.redhat.com (Postfix) with ESMTP id C6EB5381; Tue, 14 Jan 2020 16:12:34 +0000 (UTC) From: Eelco Chaudron To: dev@openvswitch.org Date: Tue, 14 Jan 2020 11:12:32 -0500 Message-Id: <20200114161226.19950.35918.stgit@netdev64> User-Agent: StGit/0.17.1-dirty MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-MC-Unique: eQt4P1VLMG2-aawJDM2mRA-1 X-Mimecast-Spam-Score: 0 Subject: [ovs-dev] [PATCH v5 0/2] netdev-dpdk: Add new DPDK RFC 4115 egress policer 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" netdev-dpdk: Add new DPDK RFC 4115 egress policer This patch adds a new policer to the DPDK datapath based on RFC 4115's Two-Rate, Three-Color marker. It's a two-level hierarchical policer which first does a color-blind marking of the traffic at the queue level, followed by a color-aware marking at the port level. At the end traffic marked as Green or Yellow is forwarded, Red is dropped. For details on how traffic is marked, see RFC 4115. Note this patch needs to be applied to dpdk-latest with the latest DPDK version. v4 -> v5: - Changed the way DPDK experimental APIs are allowed v3 -> v4: - Fixed comments from Ian's review v2 -> v3: - Added documentation - Removed RFC tag, as two earlier version did not result in any feedback - Rebase to the latest dpdk-latest branch and DPDK master v1 -> v2: - Rebase so it would apply to the dpdk-latest branch and latest DPDK master Eelco Chaudron (2): netdev-dpdk: Add support for multi-queue QoS to the DPDK datapath netdev-dpdk: Add new DPDK RFC 4115 egress policer Documentation/topics/dpdk/qos.rst | 43 +++ lib/netdev-dpdk.c | 578 ++++++++++++++++++++++++++++++++++++- vswitchd/vswitch.xml | 34 ++ 3 files changed, 634 insertions(+), 21 deletions(-)