From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by dpdk.org (Postfix) with ESMTP id 7627CADA2 for ; Fri, 5 Feb 2016 10:26:29 +0100 (CET) Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga103.fm.intel.com with ESMTP; 05 Feb 2016 01:26:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,399,1449561600"; d="scan'208";a="877630637" Received: from fmsmsx105.amr.corp.intel.com ([10.18.124.203]) by orsmga001.jf.intel.com with ESMTP; 05 Feb 2016 01:26:29 -0800 Received: from fmsmsx111.amr.corp.intel.com (10.18.116.5) by FMSMSX105.amr.corp.intel.com (10.18.124.203) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 5 Feb 2016 01:26:28 -0800 Received: from shsmsx103.ccr.corp.intel.com (10.239.4.69) by fmsmsx111.amr.corp.intel.com (10.18.116.5) with Microsoft SMTP Server (TLS) id 14.3.248.2; Fri, 5 Feb 2016 01:26:28 -0800 Received: from shsmsx102.ccr.corp.intel.com ([169.254.2.172]) by SHSMSX103.ccr.corp.intel.com ([169.254.4.218]) with mapi id 14.03.0248.002; Fri, 5 Feb 2016 17:26:26 +0800 From: "Chen, Jing D" To: "He, Shaopeng" , "dev@dpdk.org" Thread-Topic: [PATCH v2] fm10k: fix switch manager high CPU usage Thread-Index: AQHRX0n36ZZNZr8wK0ysqN7MNdjnaJ8dL9uw Date: Fri, 5 Feb 2016 09:26:25 +0000 Message-ID: <4341B239C0EFF9468EE453F9E9F4604D0443D038@shsmsx102.ccr.corp.intel.com> References: <1453960023-31402-1-git-send-email-shaopeng.he@intel.com> <1454589920-801-1-git-send-email-shaopeng.he@intel.com> In-Reply-To: <1454589920-801-1-git-send-email-shaopeng.he@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.239.127.40] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH v2] 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: Fri, 05 Feb 2016 09:26:29 -0000 Hi, Best Regards, Mark > -----Original Message----- > From: He, Shaopeng > Sent: Thursday, February 04, 2016 8:45 PM > To: dev@dpdk.org > Cc: Chen, Jing D; Wang, Xiao W; He, Shaopeng > Subject: [PATCH v2] fm10k: fix switch manager high CPU usage >=20 > 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. >=20 > Signed-off-by: Shaopeng He Acked-by: Jing Chen