From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pf0-f194.google.com (mail-pf0-f194.google.com [209.85.192.194]) by dpdk.org (Postfix) with ESMTP id C62751B168 for ; Fri, 5 Jan 2018 15:11:57 +0100 (CET) Received: by mail-pf0-f194.google.com with SMTP id j28so2222467pfk.8 for ; Fri, 05 Jan 2018 06:11:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=JKa89gypT6KNhNTi4CZftf6YeILmXjx9mfRuQLLU3OE=; b=Z6o8ot1bduGlpkmnLf7TSUws/T8/7IE8ldWroXv5vkHGKGk2TUUsXce+iVPYtjQ5kw DfsAzyGGCLy1nTiAB37OPZSik6sVtdlFqVaIXRJMWGx2XJBJd7cEv4PPhFLDEgSXs9Wj VQRx3LMZAz/xCffWg7uRq5R08RZ6AR4oMJA2MV19RBuueBkIgOZr9oLddClhat3Ah9EF EvW/WbfWBSLBcYaV9CQdJzbcqPTFLWFxZ+GvcmWyqj5lqDxemc8rsAOWMxVbrYgI4fQo wFTkrTIuRcpYnfx7ndgapWmfcECQnghR+5Vugo8zjFLckfTTlSdjSUxZ4kNsHM/Vx3WQ 6oew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=JKa89gypT6KNhNTi4CZftf6YeILmXjx9mfRuQLLU3OE=; b=MjtCfiGGmGtjZMdlnoimxnXcz9+CSE1xdcpNXlBehsi6DHWcGEY957AG7MKj36jWWn 62NYtEOm/+ANWhe/m5j8hbgCwE1teeaGOq7CDmfAPkfNhI+RsMEIy9b3stprmht5aZ1P tIj+cxdxi4JTbe10ozq3sQYYqg/mj7jQEFvjYj/SCOV+sU/H3rskkU+e1WBP4xhJw/pd N8raj6K7S39Lhzce8U/8Z3i5ZzU9XY39BtwZqXIYHKglXW/0tx+OeKLzeQTlXfBemPWX c8bi+DN74U8lRoxZvgNkOkAK6FtNyZSsxExvQZxRyiN9+/XHW2Pzp4o/Tgzi2OGZXU4w nU3Q== X-Gm-Message-State: AKGB3mLLkEyImO9J66UMnork6BIujhQTbHfcSjKPSx9RGU5sc2T63eV0 FbBZe0emoZHJrL087jpyfqRKdBTldfk= X-Google-Smtp-Source: ACJfBos82FVhXsvWQvY8msWAfgX84KwyfOW2zOfuXMOCiSgQlaRkeqR6Qc4bAZ4hUfcFciMwJP6rXQ== X-Received: by 10.99.170.13 with SMTP id e13mr2699022pgf.59.1515161516947; Fri, 05 Jan 2018 06:11:56 -0800 (PST) Received: from local.opencloud.tech.localdomain ([219.147.95.160]) by smtp.gmail.com with ESMTPSA id w19sm12990407pfa.127.2018.01.05.06.11.55 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 05 Jan 2018 06:11:56 -0800 (PST) From: Tonghao Zhang To: dev@dpdk.org Cc: Tonghao Zhang Date: Fri, 5 Jan 2018 06:10:36 -0800 Message-Id: <1515161439-4792-2-git-send-email-xiangxia.m.yue@gmail.com> X-Mailer: git-send-email 1.8.3.1 In-Reply-To: <1515161439-4792-1-git-send-email-xiangxia.m.yue@gmail.com> References: <1515161439-4792-1-git-send-email-xiangxia.m.yue@gmail.com> Subject: [dpdk-dev] [PATCH 2/5] net/ixgbevf: set the inter-interrupt interval for EITR. 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: , X-List-Received-Date: Fri, 05 Jan 2018 14:11:58 -0000 Set EITR interval as default. This patch can improve the performance when we enable the rx-intrrupt to process the packets because we hope rx-intrrupt reduce CPU. The 200us value of EITR makes the performance better with the low CPU. Signed-off-by: Tonghao Zhang --- drivers/net/ixgbe/ixgbe_ethdev.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/ixgbe/ixgbe_ethdev.c b/drivers/net/ixgbe/ixgbe_ethdev.c index e67389f..b20cab9 100644 --- a/drivers/net/ixgbe/ixgbe_ethdev.c +++ b/drivers/net/ixgbe/ixgbe_ethdev.c @@ -5780,6 +5780,9 @@ static void ixgbevf_set_vfta_all(struct rte_eth_dev *dev, bool on) if (vector_idx < base + intr_handle->nb_efd - 1) vector_idx++; } + + IXGBE_WRITE_REG(hw, IXGBE_VTEITR(IXGBE_MISC_VEC_ID), + IXGBE_EITR_INTERVAL_US(200) | IXGBE_EITR_CNT_WDIS); } /** -- 1.8.3.1