From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0063.outbound.protection.outlook.com [104.47.38.63]) by dpdk.org (Postfix) with ESMTP id A7D977CB8 for ; Tue, 6 Jun 2017 05:21:10 +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=AUYxm5F5K8motoW+th9Sy/QEvvPQhx3HD5z5a6Yhwcc=; b=l8pvm9Hb+MZMhjEotCK2yqRwtRsDHSavEu3A62kbZWslT0CI4yz5DRnutC4ux2ksuf8pkuywdBgxt1wR2zsTIyfCfNrVYt92MPKb9UoZdzHKVfw3l76KHKPH2prx4My+yEqZoa1v653x165oMsYpIqJGO+CoEG7mOGQXTpOa4Wc= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin (171.76.74.1) by BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1143.10; Tue, 6 Jun 2017 03:21:06 +0000 Date: Tue, 6 Jun 2017 08:50:48 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org, gage.eads@intel.com Message-ID: <20170606032046.GA29322@jerin> References: <9184057F7FC11744A2107296B6B8EB1E01EC4180@FMSMSX108.amr.corp.intel.com> <1496331954-93915-1-git-send-email-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1496331954-93915-1-git-send-email-harry.van.haaren@intel.com> User-Agent: Mutt/1.8.3 (2017-05-23) X-Originating-IP: [171.76.74.1] X-ClientProxiedBy: MA1PR01CA0085.INDPRD01.PROD.OUTLOOK.COM (10.174.56.25) To BN3PR0701MB1719.namprd07.prod.outlook.com (10.163.39.18) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0701MB1719: X-MS-Office365-Filtering-Correlation-Id: 7e4ac41c-f55a-4b33-e7e6-08d4ac8b12f9 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 3:c4rQler4vcPsNX0ia2jTdzFZD7eCeUBt3HvZKQ0IVyP2quNL09beacH1torEWHYLwvHwT2Gr34pvFDWJdNd5Ph8tNXJ0Uu6YFhF3hiq7eT4frY0aOCdAbJxYOwjXEZnjPHC31tyE477UacXPBrdyDmltVtm92k5pjjjRd+d8zoVl2uRzltDdVe8OFPVWxWEiRzO3E12Er3eIYlNFb7OpRoxXTpS7jo66sC1dAfQvrI9J2Jb9fux5ULa9xRh7hsusjMITeQpn3XE/f78QhKbTDdFF/qKGNkEU3XEvVX0JCn+luw/0H4swbE8shuEvdFlvZ8dIH52kX6etqZeXkzn5gg==; 25:la5ZkrVfWIClXrZAbAEgTO3Q8UtXxYRSodSGnQjf0oJmSUbzYag9vNcVjQD0AdjahnkzXeqh40gcDIWgPA8/KbGMSeYF3VI6EjXMjknlWbjFTuWtwXUiCEsA9tDNcEOZSZD3H9H3A8662QmyHW6Z3+3WYn4Yj4QXHERn2L8GZKRPjyw2fBvcDhiSKCVaJK+zZd6udygysA8X6Tz/+ksfxDyKci84svYFs06N041ShzcrS9jJBzaAbJphjNOKLDDMolJeq8XcXZV+MFPEDpedBTjiPn9DHV5rCEJE0l6ST/z7epdMWUyfsVc5tr8AMKFIS45FUTS3kX1JkUA4drVnoKpzNlDsVY2o8k1TB4dKxFEsDzYeBh0QBjw9LkEVDsDb0g8NPz34krBOZk3fSYNhgI43f5a+7E0pmKbgp5EYQHibfxNxyqV+DlvL1PY6FNRPbrjstIV7H107Xmqn23MerWq7KBMz1j1oHDBRllaUXaQ= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 31:28yRBEAoLc5XCn1byqmC1m5BghS0zN30qnOQA/2tuOJgMqbe6/6aNEY9P5/H9vIX13wrU9Kxi/9GUh/+LT2xZ97gpLujGTn6anmDCHJ9OEFG9+K9zyBiiTg18o47enDP9leCzi40x2gzG1heZUnbzGOAFlQMaYm0wWaDpoWbPm8kGnHb++ec5GzqoLQKfq+lZlA3jexhhUXo1U4FK3zlLRmNj/b5Wfet2BKTswSKeMjknoGD0jNDooh23TVPaa9AZ44TxED1zWqfnxIyPpCzEg==; 20:7eMiixAHpI8IYercb5/mBDwFtidX6NQc44UMWOYifnAjlSnvAWgDEEdKeUn8knBNd6BZCmG95NXKTTonkdkvWAPPkoVJzls76UQ+cOsM7Z0d0xM27jlo20s+Q3rxK8pJ4nMdy6JWone3DMt0Lx2eYvuwGyW++Ms1PMLTXRV7faS/vKJiWTigdzFGj7B20JkBSC64Ai5qT6IEUCu2LvRfJK1U187EY8bBRhzIz/WOVVEfPABniJkPksacJvV4AIhCrwIYqs+H9U77aca6ea1DBWvZvZa3i8+qIrV16H1xZ8EJP6BfeddBlLeOWvyirptu5ZnMC52i114RbbyNWlQ/DQbyupVzWxOozNV/bhY2r7C3jyd68wlBukg+rVj9VTwh9qdG7izB0TyOAZ3uAw824MVQi1d35IMtbxXOXNMq2Zk1Jhv1BCq715TcEkRocHOXB9OGAENjWWIS4d9yOb73z22530K1ekN2W5xb2cxVFgGcEUMp/N5OG0MJiUJ0Nmk65WD73qPg6E/y93e/0jrWoLvvjwLByUvq1LqzrFzd1p4LRhguZSStr0ns6gZF/B9a+NOnVhuORqP6dMeL9cCuo7ZC+SbLLXqh6i/L026dawg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(100000703101)(100105400095)(93006095)(10201501046)(3002001)(6041248)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(20161123558100)(20161123555025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0701MB1719; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0701MB1719; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1719; 4:wt3ZboY+sP9dVJXNjiNYFrPP2rYBmgbwfSgru9m/?= =?us-ascii?Q?m6RRgf7UsVH8n1YXK8MlGxHt+1v69F9ykvBcXy4HZv7lk+m4HydJZ50Vn5D+?= =?us-ascii?Q?PS4gzdvjB56gxYHxR76z8/ehwYAx1lhY2EDnktHrMxO64duIkBe9Ok48gtwY?= =?us-ascii?Q?iJX/ta5UzFjPkLFYKsGhIdyvIHg0Ytg3cOTGCMM0+yN94i0C1R54jhtFHQHh?= =?us-ascii?Q?ABpHmWgpgYLdJJLyLxOco8lvvM+PoU1FVXxZ6EJ9mnbDlvEtYhaNtSm1OaxC?= =?us-ascii?Q?DC4G3/jhR6ucBYvosh2eZJp5dyOQ9XCqqsNdPiZeX+9xHXCRfuqrPho7BcOn?= =?us-ascii?Q?QxhIfDXE3m/nytimCak20X4pnDrfyk+l4n9LVGzwLu9uLa/GL8jqEqvzuC+b?= =?us-ascii?Q?Ul9ikVx50v/vR0nyDFqZwCjjm35uddDttKoK4bFkCvxKdrLds0AiEpmHyzXi?= =?us-ascii?Q?NPIb5lm9cz5ktj96HJ7OYUDHfBDD2JcTe/KfpH4uPOMxtfCReK3cGagXtSYH?= =?us-ascii?Q?98/R1wH7mIXxcyfo43wueCpk8GjIqnJrIh5wvMKfS320Gxw/pDP2L1NgHxyw?= =?us-ascii?Q?0KrneYrEqFdILTZBeekpcNuCJQHRY5F6RxsU/tQ3l07kpqlxQTealPU4alKD?= =?us-ascii?Q?9d8IP4QVIp4zbB3ndathXPaXJS5IOY504/5aRZyR/aEwjs+1dsIGZAqysUDM?= =?us-ascii?Q?LJVErwYpVu9kbpzUPBWAbt4Uc0bX7aVKlLGCQr+dODiLOdTl9GFpAkIsoLbE?= =?us-ascii?Q?x/ElXvLrJm4g46lfTLiN9KRJ77tMrQyxc7jitdAdafS/g8A6XvlZRpHc2VOW?= =?us-ascii?Q?gHA79hDZHXvIogLuOIJbtEIAxb2Erjkv6vUyRIzkiSYRB6MOBlGm27jm9GPC?= =?us-ascii?Q?ovx8R0ZI8n4TVl2xeeASaHqkR9myhtuEs99gedOrOfFRzcCvKg+RQmm9cTuO?= =?us-ascii?Q?dHkh9zz52sOAfxxjZqiIF6RIxds4rTfpWC3t0aux8cx4eoG1QIWIKbGrU2kq?= =?us-ascii?Q?TAjU7e0YJz561OvJXmQDmI6hDJL9LR7fmxnoprJzzaK/2lrzP39Vq0I2ZF2L?= =?us-ascii?Q?2ZRBtisrQK+rYrfDL3IoVddwMaRm3vXkzTfqJ6ds0TkF+s/HR+3XLmBUZYwf?= =?us-ascii?Q?SaydZk93OzldO//jqhjHWxZm80AwbyFZGhuv1HSNp+ydH4iXAso3og=3D=3D?= X-Forefront-PRVS: 033054F29A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39400400002)(39850400002)(39840400002)(39450400003)(39410400002)(13464003)(42882006)(6916009)(33656002)(55016002)(2950100002)(6666003)(4001350100001)(229853002)(9686003)(4326008)(42186005)(25786009)(54356999)(76176999)(66066001)(6246003)(50986999)(38730400002)(110136004)(72206003)(478600001)(6496005)(47776003)(23726003)(53936002)(1076002)(6116002)(3846002)(8676002)(81166006)(33716001)(5660300001)(189998001)(7736002)(305945005)(2906002)(83506001)(50466002)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1719; H:jerin; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1719; 23:cj+qNLyaKRSpKpo3GwBk19O68wNv21hhwQ3iXI8?= =?us-ascii?Q?PLupP4zyhgU+yST+KQ1rY5YVqjDGjLivkKucBuqI3XtbgUIJoLWwhkipOePU?= =?us-ascii?Q?utDFMAOb84tIAmCXGtt4v6zs5RfaFW4zvfed0RiRGa/mp799QWffboFtgo23?= =?us-ascii?Q?DsM+cVQWQoJycmSfv1NMTr2C4EOMuGjWbC/YDce/NVVOl+U2HWdbJRPQ/r8Q?= =?us-ascii?Q?DcY9TB1nC3M2QNWWiAHUcd+mjz8s1q0444jPIZUMTIUW/7PlK8e9ciAN9s2o?= =?us-ascii?Q?zAnwlo4kdEUI+eDwuQ6V5bjY0JFf1KVBIU6C0k/jFP94OCX7BGveQ/g0e/f3?= =?us-ascii?Q?pk6uUmmNJPSjRVzDoOgfrODBv1WHjjHrgtQU/5v6N851f5Flqwset42RRpx2?= =?us-ascii?Q?mHKmwTFSXGYR/uHWVQADPP+1NS/JhrcmfKoBL72d4qeNnxDWy6pil/pabSht?= =?us-ascii?Q?2zqxgIvJXUsKQS1iGvM7dkap9BFAgckdq03WdGbk1Rl1lot0Kvq6jgqxloGh?= =?us-ascii?Q?11FhuBZ8N52MH1e5BNo82R73f9DF9SlS78rJ6I7nLmpwU4wGYNou1k4+ziil?= =?us-ascii?Q?tVly6hobTYmI6gbzTzfl8A//s4EmKTg5QPOS/Mst4HzidmagR3KObZEHbdTQ?= =?us-ascii?Q?ARqMr5CVUEZ2gFBAgRsT8THfy82tZFHj0ieRPevcxePRpgqDNrtuoYnhSxKX?= =?us-ascii?Q?BMNWYv+ilxKkTnrZ3NsVePWwJIzYlkfjSuI2HT3QnqxudPnvZePLZNU9otA7?= =?us-ascii?Q?y0TsDxG6GMXMYNFxykI21o0081+ybXu736kzzAJfNvD8r6/It3FxzvzeKtpn?= =?us-ascii?Q?yBpPY10O1nHYaTV0ZvT9zR7TzVNSV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sRQEYH1en6fVkMUG/JU59bE40SnXXNEFUZ0TgMtyE5+K2xzbE4eZzCTsNMZDxECD+zqqOtvyXqUTDYT1e99GmKkF3O6FTGOyCSII7iJ0pYHO6/hQyOOdMBS8BEF63MNA9b/j+itOwucyMFsolwT6TJL5mBLY+5jFxdQ4JN+7n7+GethjAZM/PRaF/e24ZxzgeQHFsZRXN1/UgTJs2gsx+2RQXRyk5UydWviZRG7DAnQiJSirF/AxY4pGlJDZVt+kIn+yjA/9GjoZ2eZlGGX3uKttiQ59vCDeaGKEhMzkp55DrxqgE9DLHNb/Wg5drptTPLrveTifjaBufGTHWYtp8vGU2e0OnyF5xfeaFUQdNgSB+ZQbUTwd9dJxZnbzi6zVovpjdxlvJ56sLkS3sRvD9q+JWfXV90dBZnisusvNzOLv7Z/42CDNRTZcYIBAs7Xs/EVGSLqnOugWr2Sb++S4DG7NnbO0Ando3ROQmBDzZI5fOR/S; 24:/63H2ChxosQP4SsylxJbph1qde+emPVjoG3Oim3pPx3nWzc7jWvO5EZ0EfMyiHGsVVyh5UO1FijuL9ARu4hfm8uYnHQfk8e9uUWf2Mp8Y5A= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1719; 7:qnlqhol9kXla0ZH/rHfYOsh7wBYkgifZNX9FVK28s0vkqXXyHxVvby56wm5Rz5H5qLtFxGv0P7clR24xJzwoXllMWTCBkZmSobOlgNllL22e5AbfPiGZ5hz/qXUbZhFsxj4yE5i2NRukNnZ//9632Pht72s/aU+ivKGRJ9ul5BPp8T7gEtngiMIQKs1lMxwfVHhEKeGdKcxrZ80izqxh/wP0ZKaXJUKsI7xMjUIuuDpVLQaDYBiuZvf8c7LZmv7oR8sMorYdv4ip8bmE/Y81TVs72Uh8K2RG8ees95bVqLrfePcSmA2at6PBfbF4MpiAUQBrGXFclNt3ZIVUiLMQ6g== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 03:21:06.7537 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1719 Subject: Re: [dpdk-dev] [PATCH v2] event/sw: fix credit tracking in port dequeue 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: Tue, 06 Jun 2017 03:21:11 -0000 -----Original Message----- > Date: Thu, 1 Jun 2017 16:45:54 +0100 > From: Harry van Haaren > To: dev@dpdk.org > CC: jerin.jacob@caviumnetworks.com, gage.eads@intel.com, Harry van Haaren > > Subject: [PATCH v2] event/sw: fix credit tracking in port dequeue > X-Mailer: git-send-email 2.7.4 > > Single-link optimized ports previously did not correctly track > credits when dequeued, and re-enqueued as a FORWARD type. This > could "inflate" the number of credits in the system. > > A unit test is added to reproduce and verify the issue, and the > fixed implementation counts FORWARD packets, and reduces the > number of credits the port has if it is of single-link type. > > Fixes: 656af9180014 ("event/sw: add worker core functions") > > Signed-off-by: Harry van Haaren > Acked-by: Gage Eads Applied to dpdk-next-eventdev/master. Thanks.