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 0165FA0524; Fri, 8 Jan 2021 10:17:11 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E2CE0140EDF; Fri, 8 Jan 2021 10:17:10 +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 E61F3140EBC for ; Fri, 8 Jan 2021 10:17:09 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610097429; 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=YOOXnrsjVJWnGHzYTul+TRYrrtXBigZP0fV11USCROM=; b=AufH3k1hm/glSksfa4MHq76H5gXIW6k1ynIHTNYq7jlwea6LS9ebsnz8RYm+kcCW3lTTAM zZXni0k4CNFg21EkWdH08OVf8FpHQCS0r+0rpO0IpIDhWT3lxClDjBk2BUzmr7+MF/j18t 5rMt9VtKZ2p0Ex92zuVvegDMaRxdjyk= 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-433-3_rZkTSgOrauyqJLn0CjYg-1; Fri, 08 Jan 2021 04:17:07 -0500 X-MC-Unique: 3_rZkTSgOrauyqJLn0CjYg-1 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 90D5C190A7AC; Fri, 8 Jan 2021 09:17:06 +0000 (UTC) Received: from [10.36.110.9] (unknown [10.36.110.9]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3BE371972B; Fri, 8 Jan 2021 09:17:04 +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: <843d9c8c-6c16-0062-bbf1-81431f7cfc4d@redhat.com> Date: Fri, 8 Jan 2021 10:17:03 +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.84 on 10.5.11.23 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(+) Series applied to dpdk-next-virtio/main. Thanks, Maxime