From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id B16F22959 for ; Thu, 25 Feb 2016 22:55:01 +0100 (CET) Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 25 Feb 2016 13:55:01 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,498,1449561600"; d="scan'208";a="924033971" Received: from blesueur-mobl1.ger.corp.intel.com ([10.252.7.68]) by fmsmga002.fm.intel.com with SMTP; 25 Feb 2016 13:54:59 -0800 Received: by (sSMTP sendmail emulation); Thu, 25 Feb 2016 21:54:57 +0025 Date: Thu, 25 Feb 2016 21:54:57 +0000 From: Bruce Richardson To: "Chen, Jing D" Message-ID: <20160225215456.GD14936@bricha3-MOBL3> References: <1454589920-801-1-git-send-email-shaopeng.he@intel.com> <1454640371-21600-1-git-send-email-shaopeng.he@intel.com> <4341B239C0EFF9468EE453F9E9F4604D04441C01@shsmsx102.ccr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4341B239C0EFF9468EE453F9E9F4604D04441C01@shsmsx102.ccr.corp.intel.com> Organization: Intel Shannon Ltd. User-Agent: Mutt/1.5.23 (2014-03-12) Cc: "dev@dpdk.org" Subject: Re: [dpdk-dev] [PATCH v3] fm10k: fix switch manager high CPU usage X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 25 Feb 2016 21:55:02 -0000 On Tue, Feb 16, 2016 at 08:34:21AM +0000, Chen, Jing D wrote: > Hi, > > Best Regards, > Mark > > > > -----Original Message----- > > From: He, Shaopeng > > Sent: Friday, February 05, 2016 10:46 AM > > To: dev@dpdk.org > > Cc: Chen, Jing D; Wang, Xiao W; He, Shaopeng > > Subject: [PATCH v3] fm10k: fix switch manager high CPU usage > > > > fm10k switch core uses source MAC + VID + SGLORT to do > > look up in MAC table. If no match, an exception interrupt > > will be sent to the switch manager. Too much of this kind > > of exception interrupts cause switch manager side high CPU > > usage. > > To reproduce this issue, one DPDK testpmd runs on a server > > with one fm10k NIC, mac forwards test traffic from one of > > fm10k ports to another port. The CPU usage for the switch > > manager will go up to about 20% for test traffic rate at > > 10G bps, comparing to near 0% for no test traffic. > > This patch fixes this issue. A default SGLORT is assigned > > to each TX queue. This default value works for non-VMDq mode > > and current VMDq example. For advanced VMDq usage, e.g. > > different source MAC address for different TX queue, FTAG > > forwarding function could be used to change this default > > SGLORT value. > > > > Fixes: 9ae6068c ("fm10k: add dev start/stop") > > > > Signed-off-by: Shaopeng He > Acked-by : Jing Chen Applied to dpdk-next-net/rel_16_04 Thanks, /Bruce