From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (xvm-189-124.dc0.ghst.net [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 16FADA0524; Thu, 7 Jan 2021 18:38:33 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8443A140DDC; Thu, 7 Jan 2021 18:38:32 +0100 (CET) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mails.dpdk.org (Postfix) with ESMTP id 0F5F7140DD7 for ; Thu, 7 Jan 2021 18:38:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610041111; 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: in-reply-to:in-reply-to:references:references; bh=RwxO8MRzrseY3KoYzIce/V1zJ5L5wIg1tj3AVRfamHE=; b=EIbo/bwb/2vkOOGKoInv+tUcOt6gUaWjpCQr1sH/8lwL83PUSVBeZ9lJGgRRvTnkFahWaB FbfWMQw0cvluCuG2LhY6+cK+Re1qLj8GNeLF2cY5yz1ayPQ959QaelJBXlQ9G8kaLHd8Gb PCX8wYlIQtf9ZymT8q+hzHQfVp3ajzs= 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-197-cVPZHvbEPRevl8U70qKIeQ-1; Thu, 07 Jan 2021 12:38:29 -0500 X-MC-Unique: cVPZHvbEPRevl8U70qKIeQ-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 40D1CC7406; Thu, 7 Jan 2021 17:38:28 +0000 (UTC) Received: from [10.36.110.9] (unknown [10.36.110.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9374E5D9DD; Thu, 7 Jan 2021 17:38:26 +0000 (UTC) To: Xueming Li , Matan Azrad , Viacheslav Ovsiienko Cc: dev@dpdk.org, Asaf Penso References: <1609902390-3453-1-git-send-email-xuemingl@nvidia.com> <1609902390-3453-2-git-send-email-xuemingl@nvidia.com> From: Maxime Coquelin Message-ID: <8bf9f807-c8f2-aa05-881b-75cddf3fb48a@redhat.com> Date: Thu, 7 Jan 2021 18:38:24 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0 MIME-Version: 1.0 In-Reply-To: <1609902390-3453-2-git-send-email-xuemingl@nvidia.com> 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 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Subject: Re: [dpdk-dev] [PATCH 2/2] vdpa/mlx5: hardware queue moderation X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 1/6/21 4:06 AM, Xueming Li wrote: > The next parameters control the HW queue moderation feature. > This feature helps to control the traffic performance and latency > tradeoff. > > Each packet completion report from HW to SW requires CQ processing by SW > and triggers interrupt for the guest driver. Interrupt report and > handling cost CPU cycles and time and the amount of this affects > directly on packet performance and latency. > > hw_latency_mode parameters [int] > 0, HW default. > 1, Latency is counted from the first packet completion report. > 2, Latency is counted from the last packet completion. > hw_max_latency_us parameters [int] > 0 - 4095, The maximum time in microseconds that packet completion > report can be delayed. > hw_max_pending_comp parameter [int] > 0 - 65535, The maximum number of pending packets completions in an HW > queue. > > Signed-off-by: Xueming Li > --- > doc/guides/vdpadevs/mlx5.rst | 24 ++++++++++++++++++++++++ > drivers/vdpa/mlx5/mlx5_vdpa.c | 6 ++++++ > drivers/vdpa/mlx5/mlx5_vdpa.h | 3 +++ > drivers/vdpa/mlx5/mlx5_vdpa_virtq.c | 3 +++ > 4 files changed, 36 insertions(+) Reviewed-by: Maxime Coquelin Thanks, Maxime