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 AB13D2B91 for ; Fri, 9 Jun 2017 14:07:12 +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=nZlpWHQmFXAojaSaUjy2iTN7v/i7dTj0fzTIkJKl3hU=; b=KsadLvzt2X5g+g3KTIeEJLl2IyI0x2FgSxEqZZvqNrG+eJhJQpmss663hvtE/dD3lK6YKttjX5WOTMHkt83fzrlo4clLBtMuWGpVj0ZgMhwElSswG0HDMK1zhZuFdzIZHAlG8YuJWiTynfvWPQBMQuyWOTSbJh2SRm20N+ouEbg= Authentication-Results: dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=none action=none header.from=caviumnetworks.com; Received: from jerin.caveonetworks.com (111.93.218.67) by BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1157.12; Fri, 9 Jun 2017 12:07:09 +0000 From: Jerin Jacob To: dev@dpdk.org Cc: hemant.agrawal@nxp.com, gage.eads@intel.com, harry.van.haaren@intel.com, Jerin Jacob Date: Fri, 9 Jun 2017 17:36:50 +0530 Message-Id: <20170609120650.32027-1-jerin.jacob@caviumnetworks.com> X-Mailer: git-send-email 2.13.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR01CA0082.INDPRD01.PROD.OUTLOOK.COM (10.174.144.150) To BN3PR0701MB1720.namprd07.prod.outlook.com (10.163.39.19) X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BN3PR0701MB1720: X-MS-Office365-Filtering-Correlation-Id: 088c68e7-cca0-4a90-ba94-08d4af300ef3 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(201703131423075)(201703031133081); SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 3:9TztV17Bi2RfDzkCHJ78Hcu1FGSfWZ7iuVzoH0GGc9WV2WKiTdKnAqRie5F1fY0EzDlXVwifw8wdUQab9wbD5Qe05O05pRSw1esZ4jqPtXSuYoeo3C7g8WVmU5VUMrEGhinF1wpMv99Y//lItAjQBGM0IluPPR9tLuEhzV0WiCj2R0cDCNnb1ITCWBUTHlUMtBh8oLogriszwL74ieGtZo64GCNktMwduDxsVzafxjBLu41pjgdg2LivoXCLEYpcCHhG8dk/RHRIYRAgaYN4mF9Yh7yYKqDVt0sA7n4eKKVBAv0qXO6P8NlCnMyKt7IoXTi8tPFRV+6K58XmIvW3OQ==; 25:gibLB0cGNDEVmLOqAsfrSoLx0kNbVkroHZDa2ToHTtv2PiMrrXmNveRqqYQmquotX88h1mIk2h0IXvVvyqz0Jfa9+hhWUIVazup3bDjCsYdINux7iA9RbeetcUFxBj85QWGHilBuL1AMV8FdKE7KZs4BBzqcpnNsiFOSQyKxOta9CjT94dN+Yx4b6/NEHw6SF0E8A8LIVE8JR5ETLEqkzAsSnxwX7+3QPfzN2pvoSql1lz0hgxhv5j/gLnH6EYmWfNVmEh7lL5WiJ4AlJgEDbKkUDxuQN06sg/3ekzOQdlizkPYR1D9BzhcEkFz3IgAnGW7ElarpDXovuCJFDYfE1VqH0/gFXgjebOqP14eU7Z22IDOqKfI5Rwz//eA35WBLyp4i6xHKsYqiZCpM+dpaZATIBRuoasI0khdUT0SDav/lfAicPnInwphYjc7iqRL8HBRrV9Kxn1+ItvXrU0PmDiXJGIqxoRgEQIi6KO9OTxg= X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 31:Og4r2ZUv+NnXFvx4GlMFNlpemhLKTyNwNLHXqjpZEDFjrCpaSUexozCiRSHqAE5xLMKEST3EEnoaauv/KNZMquRCfPcmFUctXAfp1pXnnSDvzXszUiTVSr+Ll0SdEQVWGgpzdUsrq6nYB6iE/3FvSExMSBmAxZCa2U1zirMSrFmH82cNvcxthU9HmR4kJyovYii170Bfbl4wx9ypat4R+sdCVDl/IABVqnHtEEcssf8=; 20:LOf/FM7hWXYyYZxfDCPbBGMWk3p81hOZ/LKVM45obHby1L65H8K26HXDdiU8L2LS7Y+mVLx3JzqqtyiOKUUNHDX0pGlMbUuIPmLJtzbZGeY7BLMEihW46fvzW7dGrnguUwPGVys3Rtx9GJDDdTPObtEVcRprw3cP/MGjEfvFJ4aAIBCd3aHjf4VkuL1wSrG33dnfAkIV2cJnY/ih3WiiFeICvdUEhD3YiZUt8hoFc8qaTtu3qCTJieHqvIHLV7vGM8NitLE5Fv+Vj3PlujqmGj1KV39DOEaM23tnTzFv3c8kgxfldOZiEFLWSDcHilr7WlmgZWhC1YYkX5vl9HyOGupp0WwUJK47DdQltSJrDmcU8qdq9yAaJ8wyyBZ/Ux8lABkxgvN+ftehpvEc6pXy3E80B/g38S+Cn7tlKY0CktKp/dAR0a2/AT8aOPo4QTrA4A/argSbipk8dXbUGteBm4G8Rf+DYqAtwO26lPp2o3KNH+kXtTOUlogrXS1eUIzDL6PeK4CoQH7iM6hIcXfVgYqVq11k8McYnNWkMuxXe4t+wRqHgxgpupn4VBua6OpPCWQCoVyIGIJja6HrInNy+cwtl0oDq+IZOfIK3KB5WHY= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(601004)(2401047)(8121501046)(5005006)(93006095)(3002001)(100000703101)(100105400095)(10201501046)(6041248)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(20161123564025)(20161123560025)(20161123562025)(6072148)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR0701MB1720; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR0701MB1720; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1720; 4:mkAxHJaxKjyQL5H80ypfqNEy7WvVOIcWUTqK22+f?= =?us-ascii?Q?1BxMnEjhUv91DUm2u/SIi+Kw0uN7DZsyNYmWKDrCue5VaiiGjwNfbwWEhMtX?= =?us-ascii?Q?ZtW+1fQp/VuojJWddVNXdqdyhkFqAc4PZN3ftE+f1BEt+iYW3a7d+GwCQCa9?= =?us-ascii?Q?X+WADwL3dfG2KEC2toFi9pyxgcOa7BivRlPU8O0k4IDhPE3SC3RO2uv+n9L/?= =?us-ascii?Q?+aGIFho9Qk/9MPJEFH4yY9XaJ1Vm4XF2mWDHoRVk57bY1B86iM1uqXJfrWuP?= =?us-ascii?Q?I6HpHuY7CqkZjCzqACp6Tsnt+2iq55VA5E7YjwEIFlYla+aQ4oQ1U34lxh2l?= =?us-ascii?Q?zdYRyX0Ia73dbQHEVCNCpSIlkahFcBW4Mh8Am1BsElbrz1yGcfAAhsnK39jB?= =?us-ascii?Q?Rww026VNqNuxhEc4H9AD/VB1+7FHVEzoidRWe5NFLRQcbDUvIPK7VqoGWPWR?= =?us-ascii?Q?Ykb/t7gKhivK0Z8SmAkc0GL3VWw7lSU9p1E9VY6u+O21+J0p9KO2ResmZTf1?= =?us-ascii?Q?ZSwhs0oASreTjrccCyITMpBBiicqfVvmGWwau53F4yi3NMz/7hMMryLWMGo4?= =?us-ascii?Q?rBfHdmkwfA8J6CHfxZQEIhYp7hAJP+IhvGYjvGt7pbo0atRE3G8DEBrkTgR8?= =?us-ascii?Q?GrWN5kSzKT1lbJJsiow46Kye21SWHozwDkAL9hIphWoITp3sw/1WUryjoicQ?= =?us-ascii?Q?U3Q/sVST0UtWQTT5MMIF8mwWIMO+7hqiTR1rWrze1qPa7HYCeYJyU1ru6dBI?= =?us-ascii?Q?PCwKO5UNLk5z/hGVIkfoMXlpRpa6IXHogS7eFMoLuLj650jOWuSyrTegchZn?= =?us-ascii?Q?BNFhd5FB6GOvH+ZmBZxWAwETc0ivzloV//43/a0G4lGYxq7Ox/yf8d0r5W7R?= =?us-ascii?Q?ucB8j1PWNbrTaiJDOtPLrMpUYsDOQfm6ImuDE9pzDVB3vZ4C+LzIq9gftMsT?= =?us-ascii?Q?5kPl/XnsommJiDdKU4PFCW1LkbmCcGr6q4BflQdsVOFze6e3AEf3zA4otv0A?= =?us-ascii?Q?z7kWbXgzd1DtAnXECEO636vINbpfqbxOFp0sX4MFFLJ9tyxONDnkMqvEsrIE?= =?us-ascii?Q?De95HKjaXvhak0MU00Uuu+vkuuUsGqZe1GrXe2sfIBtPuNZ9RZ8tAKEFYEFD?= =?us-ascii?Q?fej38GPthg8=3D?= X-Forefront-PRVS: 03333C607F X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39840400002)(39450400003)(39410400002)(39850400002)(39400400002)(5660300001)(81166006)(2906002)(72206003)(5009440100003)(478600001)(36756003)(6506006)(50986999)(8676002)(3846002)(5003940100001)(47776003)(66066001)(1076002)(6486002)(48376002)(6666003)(53936002)(8656002)(4326008)(33646002)(53416004)(107886003)(25786009)(110136004)(2351001)(2361001)(6512007)(38730400002)(42882006)(50226002)(42186005)(6916009)(7736002)(305945005)(189998001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1720; H:jerin.caveonetworks.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR0701MB1720; 23:IHiDlDj5FDZpMRWOSUjxo78QY0G0cKTckgvxkVA?= =?us-ascii?Q?/u3tuNM1UDpzUompkscISqOWK0yzENTDiSCFxrzrG4KBo2SzW/Dc2hQygw7d?= =?us-ascii?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TvIHGkXuHCeGFIIboANsyS6ScGdVSvDfzW6dYIH3ZclqSj5KIXdQuzfRteRNfrX9kbHbSdtHdq2+2YNpMXGA1o20le2UsxLOAERiXkIHFcRMi/2nBLgQHIKBsqQXzT6e8ZYuxEQERSBVDj73NsOpqcOektp4gt4ENCvnwRauHwZiIzRQewwkV+3lp/lPqRMHVjD7gVs+vAODif8HAR1707u6ETU6Ha6tFc3FfdCHToLWWMI; 24:8rcK7JpdDjm+S0n3TsRQnAZ5Zb7BUrVmjIj1eli5SoBpJ19ufe2Jz3NAuDUmL/oD6qFggZnY28DIdHo671CVRTYqyMEE4yvoy9YtYEqQuvU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BN3PR0701MB1720; 7:lr+YBhtlanZogALMaItymGQNIaIhvWgkpanUI7L7ML5rCe+ySm4M6NtRJMzsiM2EXXkIFmvb5kv/qLBzAPaJ4fpdF1y2scP36YO2Cnv6chOY4YDosglr7gKQrehHd131VEmOsHdxXda80eEE5qJ9Yz0GUfk1MnuO9YeAWNmWBWlBSJF1ZEbNz5bSc+bZvhcq5C7RrpjsDlv9uW63zDdRil53Xy8txCBzQOxFzwdyE0sEdY7oyZJwPvbjo6Z/CUluPOW+Aqk0ZVQ+LkjgoZEUZ8prWLdlDYeIb8AdoQS0hYqpBLGpAchMcQ1Rj0Xd26lC9U/Na8d9HxQ0V7CcJtBPqg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Jun 2017 12:07:09.3664 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1720 Subject: [dpdk-dev] [PATCH] event/octeontx: improve dequeue performance 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: Fri, 09 Jun 2017 12:07:13 -0000 switch tag wait is a costly operation as it may translate to IOB read if core swtag cache is not updated. Do tag switch wait only when there is a tag request on the same hardware work slot. Signed-off-by: Jerin Jacob --- drivers/event/octeontx/ssovf_worker.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/event/octeontx/ssovf_worker.c b/drivers/event/octeontx/ssovf_worker.c index ad3fe684d..1b372148f 100644 --- a/drivers/event/octeontx/ssovf_worker.c +++ b/drivers/event/octeontx/ssovf_worker.c @@ -126,9 +126,9 @@ ssows_deq(void *port, struct rte_event *ev, uint64_t timeout_ticks) RTE_SET_USED(timeout_ticks); - ssows_swtag_wait(ws); if (ws->swtag_req) { ws->swtag_req = 0; + ssows_swtag_wait(ws); return 1; } else { return ssows_get_work(ws, ev); @@ -142,9 +142,9 @@ ssows_deq_timeout(void *port, struct rte_event *ev, uint64_t timeout_ticks) uint64_t iter; uint16_t ret = 1; - ssows_swtag_wait(ws); if (ws->swtag_req) { ws->swtag_req = 0; + ssows_swtag_wait(ws); } else { ret = ssows_get_work(ws, ev); for (iter = 1; iter < timeout_ticks && (ret == 0); iter++) -- 2.13.1