From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id A8292A04DD; Fri, 23 Oct 2020 22:22:43 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 5333A5AB4; Fri, 23 Oct 2020 22:22:16 +0200 (CEST) Received: from mga01.intel.com (mga01.intel.com [192.55.52.88]) by dpdk.org (Postfix) with ESMTP id 101195AA2 for ; Fri, 23 Oct 2020 22:22:11 +0200 (CEST) IronPort-SDR: Y+Z7FZ0GvqxDcBrKrW+QvllSqez2tEJruhh5OytAfCq/X2U6PBmOZulh78GLLjT79QXOOOyvys RTzxmk9aChYQ== X-IronPort-AV: E=McAfee;i="6000,8403,9783"; a="185434294" X-IronPort-AV: E=Sophos;i="5.77,409,1596524400"; d="scan'208";a="185434294" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2020 13:22:08 -0700 IronPort-SDR: dMjBT2m4y8nGo44O5Adcgd8ftxDqF9jgaJlAV5JC0Y7CiZ6njV1+1WdCAy32ezT7CqvRsYkaTh nveN6yGOc5hA== X-IronPort-AV: E=Sophos;i="5.77,409,1596524400"; d="scan'208";a="423518850" Received: from jbrandeb-desk.jf.intel.com ([10.166.244.152]) by fmsmga001-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Oct 2020 13:22:08 -0700 From: Jesse Brandeburg To: brian.johnson@intel.com, thomas@monjalon.net, david.marchand@redhat.com Cc: Jesse Brandeburg , dev@dpdk.org, qi.z.zhang@intel.com Date: Fri, 23 Oct 2020 13:22:00 -0700 Message-Id: <20201023202200.1909832-3-jesse.brandeburg@intel.com> X-Mailer: git-send-email 2.25.4 In-Reply-To: <20201023202200.1909832-1-jesse.brandeburg@intel.com> References: <20201023202200.1909832-1-jesse.brandeburg@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] [PATCH v2 2/2] ice: update writeback policy to reduce latency X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Just like iavf, setting the value to 2us allows for generally good streaming packet performance while keeping latency down, and generally keeps the performance of the PF and VF interfaces similar. The previous value of 0x10 was making latency on a single packet receive be as much as 16us. Fixes: 65dfc889d86b ("net/ice: support Rx queue interruption") Reported-by: Brian Johnson Signed-off-by: Jesse Brandeburg --- drivers/net/ice/ice_ethdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ice/ice_ethdev.c b/drivers/net/ice/ice_ethdev.c index c65125ff3260..0df491f93126 100644 --- a/drivers/net/ice/ice_ethdev.c +++ b/drivers/net/ice/ice_ethdev.c @@ -3345,7 +3345,7 @@ __vsi_queues_bind_intr(struct ice_vsi *vsi, uint16_t msix_vect, PMD_DRV_LOG(INFO, "queue %d is binding to vect %d", base_queue + i, msix_vect); /* set ITR0 value */ - ICE_WRITE_REG(hw, GLINT_ITR(0, msix_vect), 0x10); + ICE_WRITE_REG(hw, GLINT_ITR(0, msix_vect), 0x2); ICE_WRITE_REG(hw, QINT_RQCTL(base_queue + i), val); ICE_WRITE_REG(hw, QINT_TQCTL(base_queue + i), val_tx); } -- 2.25.4