From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 0AD46F1F for ; Mon, 11 Sep 2017 10:52:53 +0200 (CEST) Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 11 Sep 2017 01:52:52 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.42,376,1500966000"; d="scan'208";a="310236395" Received: from irsmsx151.ger.corp.intel.com ([163.33.192.59]) by fmsmga004.fm.intel.com with ESMTP; 11 Sep 2017 01:52:52 -0700 Received: from irsmsx102.ger.corp.intel.com ([169.254.2.59]) by IRSMSX151.ger.corp.intel.com ([169.254.4.108]) with mapi id 14.03.0319.002; Mon, 11 Sep 2017 09:52:45 +0100 From: "Van Haaren, Harry" To: "Eads, Gage" , "dev@dpdk.org" CC: "jerin.jacon@caviumnetworks.com" Thread-Topic: [PATCH] event/sw: allow fwd and rel when out of credits Thread-Index: AQHTKM1ph9Uk7v1xjkiRbjn0Ecr8fKKvZF6A Date: Mon, 11 Sep 2017 08:52:44 +0000 Message-ID: References: <1504894072-15735-1-git-send-email-gage.eads@intel.com> In-Reply-To: <1504894072-15735-1-git-send-email-gage.eads@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiZDZiM2RiN2QtODhiOS00MGEzLTg1OGItOWY2YTk4ODA4Nzk3IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX0lDIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IlNCUkxqMCtPc3VONUM5cjdoeXFqTTlBVDR2K0pzd2dSS0pXSENDMzhRMTA9In0= x-ctpclassification: CTP_IC dlp-product: dlpe-windows dlp-version: 11.0.0.116 dlp-reaction: no-action x-originating-ip: [163.33.239.182] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] [PATCH] event/sw: allow fwd and rel when out of credits 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: Mon, 11 Sep 2017 08:52:54 -0000 > From: Eads, Gage > Sent: Friday, September 8, 2017 7:08 PM > To: dev@dpdk.org > Cc: Van Haaren, Harry ; > jerin.jacon@caviumnetworks.com > Subject: [PATCH] event/sw: allow fwd and rel when out of credits >=20 > When forwarding or releasing events, the operation would fail if the port > has 0 inflight credits and cannot acquire more, or the inflight count > exceeds the port's new event threshold. >=20 > This patch fixes that by counting the number of new events in the burst, > and applying the credit and new event threshold checks accordingly. >=20 > Signed-off-by: Gage Eads Acked-by: Harry van Haaren