From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tonghao Zhang Subject: Re: [PATCH 2/5] net/ixgbevf: set the inter-interrupt interval for EITR. Date: Thu, 11 Jan 2018 22:46:29 +0800 Message-ID: References: <1515161439-4792-1-git-send-email-xiangxia.m.yue@gmail.com> <1515161439-4792-2-git-send-email-xiangxia.m.yue@gmail.com> <94479800C636CB44BD422CB454846E013208ACB9@SHSMSX101.ccr.corp.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Cc: "dev@dpdk.org" To: "Xing, Beilei" Return-path: Received: from mail-ot0-f195.google.com (mail-ot0-f195.google.com [74.125.82.195]) by dpdk.org (Postfix) with ESMTP id CA506727F for ; Thu, 11 Jan 2018 15:46:30 +0100 (CET) Received: by mail-ot0-f195.google.com with SMTP id d10so2267888oti.7 for ; Thu, 11 Jan 2018 06:46:30 -0800 (PST) In-Reply-To: <94479800C636CB44BD422CB454846E013208ACB9@SHSMSX101.ccr.corp.intel.com> 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 Thu, Jan 11, 2018 at 3:26 PM, Xing, Beilei wrote: > > >> -----Original Message----- >> From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Tonghao Zhang >> Sent: Friday, January 5, 2018 10:11 PM >> To: dev@dpdk.org >> Cc: Tonghao Zhang >> Subject: [dpdk-dev] [PATCH 2/5] net/ixgbevf: set the inter-interrupt interval >> for EITR. >> >> 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) | > > Is it possible to configure interval via DPDK configuration? Just like CONFIG_RTE_LIBRTE_I40E_ITR_INTERVAL for i40e. > Maybe the value is good for you but not suitable for other users. Thanks for you tips. > > Besides, seems the patches in the patchset have no dependency, needn't put them into one patchset, and then the Acked patch can be applied quickly. > >> IXGBE_EITR_CNT_WDIS); >> } >> >> /** >> -- >> 1.8.3.1 >