From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0071.outbound.protection.outlook.com [104.47.41.71]) by dpdk.org (Postfix) with ESMTP id A6E2736E for ; Tue, 21 Mar 2017 04:21:22 +0100 (CET) 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=9XLgmeI8mVdPqC2qqeGcm0kwHvfxGL8j2YuYFXKQ+Ro=; b=YYOyozf8ldQoAUQ68nkvR6YiPToP3Qt2U+OUsiSBy+jG99ryTRrtQt+LOq8OjZlf+KAAgIUA5gn9yFg0D1Tt0Z+ze8rcTccn6Vc/XgTYXJUzzxAt5P3GjcNdt515JiExszTzc3itajpuiOX448s0eOZjUGxSuHWNVobJyyZTD2s= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (171.76.73.90) by CY1PR0701MB1727.namprd07.prod.outlook.com (10.163.21.141) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Tue, 21 Mar 2017 03:21:17 +0000 Date: Tue, 21 Mar 2017 08:51:03 +0530 From: Jerin Jacob To: "Eads, Gage" Cc: "dev@dpdk.org" , "thomas.monjalon@6wind.com" , "Richardson, Bruce" , "Van Haaren, Harry" , "hemant.agrawal@nxp.com" , "nipun.gupta@nxp.com" , "santosh.shukla@caviumnetworks.com" Message-ID: <20170321032102.zggcunadbso6jf4s@localhost.localdomain> References: <1488562101-6658-1-git-send-email-jerin.jacob@caviumnetworks.com> <1488562101-6658-20-git-send-email-jerin.jacob@caviumnetworks.com> <9184057F7FC11744A2107296B6B8EB1E01E8022D@FMSMSX108.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9184057F7FC11744A2107296B6B8EB1E01E8022D@FMSMSX108.amr.corp.intel.com> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [171.76.73.90] X-ClientProxiedBy: MAXPR01CA0049.INDPRD01.PROD.OUTLOOK.COM (10.164.146.149) To CY1PR0701MB1727.namprd07.prod.outlook.com (10.163.21.141) X-MS-Office365-Filtering-Correlation-Id: 73f43b95-95ac-4fa7-ca28-08d47009589d X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0701MB1727; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1727; 3:l002MxMtiBrtjjTzAXMPuS1xPMS/MvHLlBMGTx6Zu5fpK5HB8SFMQGk/Xctje6YHi1N90GY114etBCnD7MghYesGHtl64yHwvy5ZNA1B8nQA5ovnIg5WiOIERuw4bQzOjQ+z4ZiSlhymWjrMN6Wt9ApENVb1BSz7sJYBOiusZXUHwYuigD4fTgwGXe3fiT4tMgSJa6npZnzlvaQm6tSqQt7Vwuw7mONJfdzjLRSB3kVrhKE1GRSuLH55Ym6vtv5df/dSLgER7rTPrLmORfvdjw==; 25:uLYtYJnmKIRwl/LnRfFYVLjxAcQtynMZcIDaA0lIVs0v3ZPPL4eJC2ZQVDf0NGqrzv6YIXC1gXiCRtqn3JhN9ektNbrakFCMv8fcPAIRRUj3z9TqcanzXP+2Dr7QQJr549QaRQIFQEy7tPH2lUJy8vSD88lJ5Y3qHCyUXJd1DilK/guXHD9P4DnBnZ8lSfoDyo2NERx1W0Gf8WEA1EbeT5CEww1q9UPO+W4+T8HZDXs3KIoovKYbKu7XQH4IQL9EqYTt3aa8zPaIekOdOSCIRoghx5il3maQn4lbK8rBbmZak361NsP/pLmqAzFtdrnWC7XcT2GlUDhfboFoPtP6uTZFzHI81ETW42WsK7KVXH+1B43fyRj6PtT2oSzuiN/KQM/clmhxuiFVfBZdIxSynDRJSNqS/mu20AOuazhovrtLotBfpGFNVZr0gt3xHwIxQjZxBcuba29EO4TTslc2IQ== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1727; 31:tJyiVVKhTYNWrys/pPo4s9WZknao4E6cByPFBWzSZ0wYdDoe1RikHdEf39KQP/9l38km+MS85IZ46fnm6VUXHIfHKydoZF4+AkUhlbQiA+X/Fg+Y4VsXNhaNgr+Ulw/cJmvScuKriuQI8L3F5IRqR7ufIp6QGagDJtx8tJvJAuTGICx5lW8nbIYd+1N3RVGeyZTVo3dA0TFNndDpLE8Ujug7epm/FqHi+zO37ZwO4nI=; 20:mULimGxCdQa+XYpPxVK53Np2zLPDkaOnGNBdp9e4sHxVEJjeH2y9J9tluEfly4jxHgsAB5hWEr/K7PqX0wudMaKV+a/MYeyrzxAuD+E9srys5SHWb1RGa0doym1ayBK4zb04bZJJb9/Y63f55BXDBUodHSDt2LrCdd0qS8Pe3INUduFE/7h+R4xonJU1XHMzwFq5tK2lWLz274YhN1vYdTyt0JoOBNikcoabStddWJ1KJr8HjQkQvlQkT7fHrGnpr6AGLBNcE86al8HDknAQ+ow7kwvEGMycXgw4RF1pGZe8+jgpyTIelWYGAX5mQLmp6TPaH6YzZ4NYF+xodutg4KygJH+BW2JUWzaVyswlpxcIHGYo1DhTTlz/D5jCuELwBH9astAB7BBm0emu1zLX+eJNKhx4+m5TJkecAK7jhLtBYVQZzeaQaOhQsVI8vSVGuitGq1+isC+T3h5pyYWjRR0ZiGitTDakJrhjmvM+bcqiyvw9+XV6okrmMQK6oII9V+rvlQKoH8nSej2pF9W+1yYokZuo6gtEJ8I98wIN1nIzYVBkv2JgqcZbplTNyNdsvOtU9s6aaA3Wu4ww7e3dFC8mDF6WgCsmn58zX6GZYWQ= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(8121501046)(5005006)(3002001)(10201501046)(6041248)(20161123564025)(20161123558025)(20161123560025)(20161123555025)(20161123562025)(6072148); SRVR:CY1PR0701MB1727; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1727; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1727; 4:pGp5NSuAizUBGL+N1igVHcH/5beNE31BSVV+nJxyksLlFy+hKi5HV8zcjtv2OEZiJSudIsLjt81aeN9CoVjWto1vVqOQKplYB+7RAb2f7UaLWowhDjWQ6ZBI6rjans5zWY9k5vbD3cx1E9gJCYbRg9VE4kvIs/qjxY6yuyR6NZGrfZrgME6sb3DbIAQs3gHylx4EByrDUBJIWXdET6oruXOAFD8kEGB7NTklT87keHEzGW4mZNcW/jlkIUWLLZDC/aC2FxRgA2BGwyuPFePWxDGhGa1YWNFY2U3w536J1saE0++gZIrO9JEEi1eMoKUJfOrke4hPOqBAA6VA8D3XXQEyVlJQnHcNAJ2yUyPUaNHscjYNnDmIYWKd2Y47wFK9bfO1GK/xABELPLCafKUVeFp7KS0E5BJIlO4GQ7+8vIOxaY+0CkchqZBIz27qKFciQjEKrt4CTLQPzC1suG3vZj/7yUxtMMu5RpkxwyAArkKhSMdsuN98TQBMZWmWRBJHgE6XvZ+pw/LwvJFxHqw8qu/8Yjbftqks8/VbQtxqGn7L8Iw/Z6iYvUbRcuYU1xKQgR03Sj4JwwG/9BWSgJABVbD3KSAw75Mmte9yTZkFCEdgG6nYEo1b1YghbtJ04nLtP4NWrB7x6UQLGtE287SNN+pVwcIdwF8R+MGZ384DLlu8xqVwEKN8zRDqb/12bV41 X-Forefront-PRVS: 02530BD3AA X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(39450400003)(39830400002)(39410400002)(377454003)(24454002)(13464003)(4326008)(25786008)(83506001)(2906002)(8676002)(6116002)(66066001)(3846002)(53936002)(305945005)(76176999)(54356999)(38730400002)(5660300001)(6916009)(2950100002)(42882006)(6666003)(6246003)(8656002)(110136004)(107886003)(575784001)(9686003)(54906002)(81166006)(42186005)(7736002)(50466002)(6506006)(4001350100001)(33646002)(50986999)(1076002)(189998001)(47776003)(23726003)(61506002)(53546009); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1727; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; CY1PR0701MB1727; 23:W7WuR883LyxTGVOWhGN1+RrBnd2pPhbTC3KaUpH?= =?us-ascii?Q?ZvTmHk0REO63xj/ZHi/JIu0f/s13EOIZwF9tpsf4vM4Q8IIq3KPgf/lNi/+7?= =?us-ascii?Q?YuAEvh+KJ7TZ9EVe2THXkaN5ioaZtXh0o+kXxK7ppO9A24YYYpZPxFAP3jZS?= =?us-ascii?Q?Z0l7zQfQkyE3cBqdhyviCUVvUz1Lx7+TFYojzkp1GSwEvF3nw4FNrsx0ETxp?= =?us-ascii?Q?uP9vjHiW+LhyGjsDMMArV8x1ple/K0XzXuKRPEhfotImdPKPAsegEcdyN6x9?= =?us-ascii?Q?kIZUrO4rloHc6sS3WYQrHHiUaTxfDpnjYdqWAfb1/QKw5CclHwmLeSNjNxrL?= =?us-ascii?Q?maNqGikRWz0NrrMwqZSo6S3DImOH+kDcuWONslI87SoZf0wsswuKVvAAVLfa?= =?us-ascii?Q?kQrZcMqLNbQEwvLmH+/5xES4H0FNk6A6e1/yFkcsxpXwVoImohrPvCzZIxN7?= =?us-ascii?Q?jQTQkis8M9wmquuG4yLh3AU8n+Dp2SsM/f4ORJeWvynZmdRf5qpVkBW5rtDc?= =?us-ascii?Q?X2PijRENyr2VvG7Khzmg8gywseSl4gq3GQLnaaZb8FkiWbvJVTb/+nDLIqdA?= =?us-ascii?Q?qNy61NHQjt/hG1y7zcajkWXusSsGscdFfXdg2POlg2J0ZLQKkerT7+nP7Dye?= =?us-ascii?Q?pnj8urA6sjX2BhFAt1DPh4jKpFdwwZrss8AeeIQtGFRftymMjxhQRrnLXIej?= =?us-ascii?Q?dG7gdf+lp8/Q+O8dkW3TQd1MM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yz4mBnKXBVtm76ClR9JYCsle4Gcyyz1NWEjxfCVZCp3OJzM2dAGzIQsaxazKUazun+0pmNrjls2a5V2o2bxT0B2Q0h1ZdQfIZ7Kug8M3I29A==; 24:UT/jajUudzJ4TQoPnvIdX70qB/SQmjlxeE3rEadCE4isfBbq/yp5xn856ohFYBcC5JEvIF/hJ/IWtOaKaJf0G2s/TIVH5r+hjaU7Y/hgkyo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1727; 7:AYfkIjEUGjl+mRby6LwDihQ3sX8NjqDfv138p7lhdu+mqlEv4yMbZ+IxNnNanfE3Sn57p6AfTVDKbAaAUbVJeCwX+k82nCMIwQXQcC8OIBmdvjVr0/3IR4/iFKjrzdCAKN7+uKCCY7zwj9x4gQfdMXhIR1rHAdYzwQGtogiRtVwi0W4TowF6Xhyp93F2BsCVEnTFKltZMzqlZlkxgkBghuqiw916/M3gQw/xV/1A3PUY/4t13Z8Z/YDexJ9wZSe1tUx4TpkqllfVgKfRckU6rQBz2oBkAlJTBcb+b/KlN3ss1WdUpfWi7EqwtXHsrSsqxUxNDtA2m5cVToBpnkHG/g== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Mar 2017 03:21:17.7855 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1727 Subject: Re: [dpdk-dev] [PATCH 19/39] event/octeontx: add support worker dequeue function 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, 21 Mar 2017 03:21:23 -0000 On Mon, Mar 20, 2017 at 09:11:35PM +0000, Eads, Gage wrote: > Hi Jerin, Hi Gage, > > > -----Original Message----- > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Friday, March 3, 2017 11:28 AM > > To: dev@dpdk.org > > Cc: thomas.monjalon@6wind.com; Richardson, Bruce > > ; Van Haaren, Harry > > ; hemant.agrawal@nxp.com; Eads, Gage > > ; nipun.gupta@nxp.com; > > santosh.shukla@caviumnetworks.com; Jerin Jacob > > > > Subject: [dpdk-dev] [PATCH 19/39] event/octeontx: add support worker > > dequeue function > > > > If device is configured with RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT > > configuration then use different fast path dequeue handler to wait till > > requested amount of nanosecond if the event is not available. > > > > Signed-off-by: Jerin Jacob > > Signed-off-by: Santosh Shukla > > --- > > drivers/event/octeontx/ssovf_evdev.h | 7 +++++ > > drivers/event/octeontx/ssovf_worker.c | 52 > > +++++++++++++++++++++++++++++++++++ > > 2 files changed, 59 insertions(+) > > > > diff --git a/drivers/event/octeontx/ssovf_evdev.h > > b/drivers/event/octeontx/ssovf_evdev.h > > index fac42f5..2cd9147 100644 > > --- a/drivers/event/octeontx/ssovf_evdev.h > > +++ b/drivers/event/octeontx/ssovf_evdev.h > > @@ -190,5 +190,12 @@ ssovf_pmd_priv(const struct rte_eventdev *eventdev) > > uint16_t ssows_enq(void *port, const struct rte_event *ev); uint16_t > > ssows_enq_burst(void *port, > > const struct rte_event ev[], uint16_t nb_events); > > +uint16_t ssows_deq(void *port, struct rte_event *ev, uint64_t > > +timeout_ticks); uint16_t ssows_deq_burst(void *port, struct rte_event ev[], > > + uint16_t nb_events, uint64_t timeout_ticks); uint16_t > > +ssows_deq_timeout(void *port, struct rte_event *ev, > > + uint64_t timeout_ticks); > > +uint16_t ssows_deq_timeout_burst(void *port, struct rte_event ev[], > > + uint16_t nb_events, uint64_t timeout_ticks); > > > > #endif /* __SSOVF_EVDEV_H__ */ > > diff --git a/drivers/event/octeontx/ssovf_worker.c > > b/drivers/event/octeontx/ssovf_worker.c > > index 7ec78b4..e0d17b9 100644 > > --- a/drivers/event/octeontx/ssovf_worker.c > > +++ b/drivers/event/octeontx/ssovf_worker.c > > @@ -226,6 +226,58 @@ ssows_release_event(struct ssows *ws) } > > > > force_inline uint16_t __hot > > +ssows_deq(void *port, struct rte_event *ev, uint64_t timeout_ticks) { > > + struct ssows *ws = port; > > + > > + RTE_SET_USED(timeout_ticks); > > + > > + ssows_swtag_wait(ws); > > + if (ws->swtag_req) { > > + ws->swtag_req = 0; > > + return 1; > > + } else { > > + return ssows_get_work(ws, ev); > > + } > > +} > > Should ssows_deq() fill in the ev structure when swtag_req is 1? I see that the flag is set when an event is forwarded to the same queue/group it was received on -- is the expectation that ev will point to that forwarded event, such that the user receives it when they next dequeue an event? Yes. The user receives the same event.HW supports event pinning to lower the latency. > > Thanks, > Gage >