From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-SN1-obe.outbound.protection.outlook.com (mail-sn1nam02on0052.outbound.protection.outlook.com [104.47.36.52]) by dpdk.org (Postfix) with ESMTP id DBC001B695 for ; Mon, 16 Oct 2017 13:33:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=Qbr9kxNM2prqwW6twoO5TsblbaF9KL9BIQn/2EwCmg8=; b=Siq+7bzyTHLaEZbLGFJW22TEzCNFMGytx6QgRDRthZlPntsQKGydhJCy9U+YijLU7wzeqDtf/PiVz8cpS83Um5xVJUnrisBjbSsOIOQ8ObvjU6Ssy4MBzjXoqjiFTdy93bSdiy483kteGslFEekIJFv+5i5x5fkoOULt/mUIKuE= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (14.140.2.178) by SN2PR07MB2526.namprd07.prod.outlook.com (10.167.14.154) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Mon, 16 Oct 2017 11:33:46 +0000 Date: Mon, 16 Oct 2017 17:03:26 +0530 From: Jerin Jacob To: "Van Haaren, Harry" Cc: "Eads, Gage" , "dev@dpdk.org" , "jerin.jacon@caviumnetworks.com" Message-ID: <20171016113325.GA17937@jerin> References: <1504894072-15735-1-git-send-email-gage.eads@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.1 (2017-09-22) X-Originating-IP: [14.140.2.178] X-ClientProxiedBy: BM1PR01CA0110.INDPRD01.PROD.OUTLOOK.COM (10.174.208.26) To SN2PR07MB2526.namprd07.prod.outlook.com (10.167.14.154) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 403a5a9f-ca94-4b8e-5f80-08d51489c4f1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:SN2PR07MB2526; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 3:XWfjjflLGDMLLyVUgcB36Q9CgFsZOQ9UYP4gMrkaocN2PQ8LVr7sLrvEEHz0v2glXd2URPjoyqKW8hy0gz1Wi8GhYAGgvI2abCAf1ktR6Tyw1xisVlezCKPBl1mFdW14jXgEKN4sXBWzESrTmdoMuuNV7luvw3eNH1p07yl2u5m4RvHwIXZkGlTSKpp79y7RzKM6rFF0k5H81RDW3FQCmv+5vEiaGZ9o64BbSi8O8ovob+AeGYgrIkSTSIQDh2Mc; 25:I0dyBqA5lgBThQ1iEBnwSGdJ3++SeSuU5a/A8NFNoxqlslwyYiYA85+A6chu7h1db6idyIED0CbOZxdoQ08Tc34vNjSL3AXttOWaM0n33w79wmZnSKqKhjTs1Ylb34ILqEjG57z2lYtlgU/CzuLkYHqEc+2OzPHatEUJIJBUyVNVslK4GSHYJyubciJKe4d952VMJOvWBNvyyyajQOnw63RFwYrtBylHARIjJVieLakKftxJgpaEz0UWAQsn2DTlii49NYjuHmUDrqDzmDXBayMatyp5/JwwkpAee1X/C3u+71QG4i8VUT+G10R7WEDa4yE8MBiqppFvb457iEtGjA==; 31:bHkZ5bV4ONq66h3anmI4OXoKZaF7Ro5/UVtawYR3gLRvywIKcFaX7NrkbBc9JmckpojgBZ+CZYt/kZbJRB+7Nk5VaWh/1nB1GzQyefc61idORIljXpO/m8ilE3SO4OoGSYs8UinrlcIxM2Ss/YaJc17IISt7Zz/mf//Jrvgcesgr/7kYq43hncmAkJ/vVt5ahvsApom6bFGBHb2E4I2iBYenoIyOJtAO+3epPQVdudg= X-MS-TrafficTypeDiagnostic: SN2PR07MB2526: X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2526; 20:wNZqcIzxPb3JnqjNd4SdK4e4nXEcEeVbSakSDm2yGOx6WrfXUKzLYN5Inn8mLeZJ0lTuRS0g4mfGjiMv/56vzGFt/6fBTZWqvjlKD61DTUGcbTWiUnIrqALCvwtvjbTssfxPa5WbidGn9e/uaxFSrTpgAMs7D7t3enxe+XDx/7sJNAnkrfJI8i8mkFPaDynSNnZgVdmsAwwUuwDTqyIDYjcq6VDgDZB7pfAxBxpmyVmhPZQaYgB6P5e4YRqXDena70H5txIQbnXZQq5unIYn1C/GSSW73qDdvq53KJAcQ5SjmiC6jIXxAKLlSQUmfaF4kJ6dcNIJB9QwoLMS610ToaKdt5EOEMmSsAhVkvf0quz8hxX6hMiWbZKsz8kNEu090pDHdTWuS4pA0ECoTaK1SLghjUAJF0/ktKU+sD8QaVBcp01B+yeEQEHYl2ALg4ClYCy7Yntwb6uxUtjI9whbc/c/dJVW5HJNaAyItB85zDO23FVnOFIjuaqIdxrmnxBBctzw/KAlnyiUSHZ2EttJaizWq1zBPOZU+hPlvKb9duRpiSTXvPy4Pj+hiHaCBCBoxlAwD59CxlSKcK4/JFwyEgw/xLkG6RapDJ80vtORfQ0=; 4:IWr+L1eVCYUO+ubCtyWBCX1/6dvXk8Hw40REic76a5e10EMXUFd/u0+7rNk5vxuzhya//sgtLQIGKsvYzozznzhC+llpG0ofpEjaulARY7u3kr18je0P0ypW1F/w42HK6JIpn4Ab0yXVK7GT6y+U3dErADRZB0x8AiDhcqHguc+f5Sk6tCSvmvohDIeCSycl5sbJAIdodh9r7rAURmK1d3q+nUBMB2MJfN/Mglmos/OMJPCP73CyzjW+APmdDyxZUsEo9nkxpWcyBQ40Zl/+9vIHGFt88FGG90XSpRGkYpo= X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(93006095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123560025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123564025)(20161123558100)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:SN2PR07MB2526; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:SN2PR07MB2526; X-Forefront-PRVS: 0462918D61 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(189002)(199003)(377454003)(13464003)(6916009)(42882006)(33656002)(316002)(16586007)(58126008)(53546010)(6666003)(97736004)(2906002)(66066001)(6246003)(189998001)(8676002)(25786009)(305945005)(50466002)(54906003)(83506001)(4326008)(5660300001)(107886003)(101416001)(8936002)(33716001)(6496005)(16526018)(1076002)(105586002)(53936002)(76176999)(106356001)(2950100002)(5009440100003)(54356999)(81156014)(9686003)(229853002)(81166006)(55016002)(50986999)(72206003)(7736002)(47776003)(68736007)(478600001)(23726003)(6116002)(3846002)(110426004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2526; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2526; 23:JXvOv3AxUo6i0Qe3sYYR41LXo1UxZVV07sAySJjBA?= =?us-ascii?Q?9RW9VDNp7Xz571sZwNkz4WFaV4IAhunoH6t9IrAeqLS3EtdyyMfYyKFQsf1u?= =?us-ascii?Q?FoRF/PI0ut+k+SToD3BwmGWEkB3g8r9nKYZ3616cSKDbAPq8hdH0OV3SocEe?= =?us-ascii?Q?lHcxBsQ7ZqctPLNbQA30/5h/kF2mF+Ta3qZs3trk2mw8OQuL27JXYF4WhcmU?= =?us-ascii?Q?xHG9YjPwHXvkbba6TCFUe0l3TBk91ciO5+r6UYFULJiBVJUEK8u4siHfAECU?= =?us-ascii?Q?j5NiNWSecB+/BklX+uJqEaQpIvPGIRZx9Zu9VAdub8SfH6OZVrMKCn6ll1cY?= =?us-ascii?Q?K1r68FDCECCePsm/ZTQHWosefsrxrvd1VJ86E6biyEv/ilT0m94Fdkh84tM9?= =?us-ascii?Q?tXFzVkp0xR/AAGjz/M414ao23S7aWlN04Ph+BwVHDqSpgkcxa6f8VNUONZdf?= =?us-ascii?Q?fopZPT+2CC2SgeStXrUpsWFixEXXp7x7r4gDQybnd6frXVrvI4ig7/fofZJR?= =?us-ascii?Q?wS0nnqwLT9IeWoTXooiQb1MPbZBsDTCzEamPZS6HZETV0EJrcHen8QWAQCYu?= =?us-ascii?Q?4NGqd7nqk44+DeHOXWI8lyf6mmyfBIuki7LZCnnlfNBTYy+shw1D/MhGIP+T?= =?us-ascii?Q?lUWMGxAwmVy1KD5j4TqyM5dVabgRtM6A7x+QtlDhWIFb+v6pwIDIkS04iExl?= =?us-ascii?Q?Ukt6+2RkWefr3UGR+7LXcRLIA6qNbgFT1Tg4lRXjOfzddW68k82DvOGiRJsy?= =?us-ascii?Q?HPuMfQXuxZx2QODiUkiIhWebHTSwHvtwZm6pEI/0HOyw383TV466ML7mUM9m?= =?us-ascii?Q?JKY25InT2ZxXsEdA8U3/pDR8291LXDDWTkXYm7lJciCS4WatFQxH0qQ7m3Dq?= =?us-ascii?Q?Nj/V44svb2kS37ROFUkwcJJeTC71OruWhW21dLmIVxvKLTsPN6b5txD4Kulp?= =?us-ascii?Q?ZhWleNZqEApzhXLFj+RzuKRa7REtYHmpoTZj02Sx+OjJGRaGq9tOQGeql97s?= =?us-ascii?Q?0DxLPH+/AnT0yrANcIJExWGCjeQEVf+pH1FsttFIe3ZNO+ejVS/FaZsMxE4h?= =?us-ascii?Q?LJnrPFOHziQQ0Nomt5VUDDSDP62fszgdWypo/0cCflVkl1Fdr9Hg/jseSdbk?= =?us-ascii?Q?lSj7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0rJLXLPUXZTXsVlj0ztel8Jh+ZYRLH4dND/9N9LgEHcPmIhnd15ewBhz7ZGgpYjlHzo9CjOERybdlONLWWe5EJKcd7GiI8Q+bGV2EAF9ejhjI+QtAziTjYgYNpMxQ4Kvu47Rm0oNa8FQg21Gdc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2017 11:33:46.4396 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2526 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, 16 Oct 2017 11:33:52 -0000 -----Original Message----- > Date: Mon, 11 Sep 2017 08:52:44 +0000 > From: "Van Haaren, Harry" > To: "Eads, Gage" , "dev@dpdk.org" > CC: "jerin.jacon@caviumnetworks.com" > Subject: Re: [dpdk-dev] [PATCH] event/sw: allow fwd and rel when out of > credits > > > 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 > > > > 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. > > > > This patch fixes that by counting the number of new events in the burst, > > and applying the credit and new event threshold checks accordingly. > > > > Signed-off-by: Gage Eads > > Acked-by: Harry van Haaren Applied to dpdk-next-eventdev/master. Thanks.