From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0070.outbound.protection.outlook.com [104.47.37.70]) by dpdk.org (Postfix) with ESMTP id F37141B010 for ; Mon, 2 Apr 2018 19:09:05 +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=AMEruXfo5NP5KSaScJ2uZr8azLlR14yE29NoE/ssFi4=; b=YiL1QeEdXzPDcaG3a2P87Lngu/fiFKuwHmr9pkBjYj0CFhpu4uMpdy5zvx6buIkzRoEq95Y68Ka697U8LuTfNwK197xIdlrNtii+NlJCRqKgc/SLsB4qyXtBUGjR6MgYb95Y0bqKlm/8a3WJ661CoouHUWijPbKYtKZRX62YpWQ= Received: from jerin (106.201.49.151) by SN2PR07MB2525.namprd07.prod.outlook.com (2603:10b6:804:6::25) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.631.10; Mon, 2 Apr 2018 17:09:01 +0000 Date: Mon, 2 Apr 2018 22:38:34 +0530 From: Jerin Jacob To: "Eads, Gage" Cc: "Van Haaren, Harry" , "dev@dpdk.org" , "hemant.agrawal@nxp.com" , "Richardson, Bruce" , "santosh.shukla@caviumnetworks.com" , "nipun.gupta@nxp.com" Message-ID: <20180402170833.GA12178@jerin> References: <1521087130-20244-1-git-send-email-gage.eads@intel.com> <1521555187-25710-1-git-send-email-gage.eads@intel.com> <1521555187-25710-2-git-send-email-gage.eads@intel.com> <9184057F7FC11744A2107296B6B8EB1E3FA88B56@FMSMSX108.amr.corp.intel.com> <20180402080305.GB7280@jerin> <9184057F7FC11744A2107296B6B8EB1E3FA8B5B6@FMSMSX108.amr.corp.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <9184057F7FC11744A2107296B6B8EB1E3FA8B5B6@FMSMSX108.amr.corp.intel.com> User-Agent: Mutt/1.9.4 (2018-02-28) X-Originating-IP: [106.201.49.151] X-ClientProxiedBy: BM1PR01CA0104.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00::20) To SN2PR07MB2525.namprd07.prod.outlook.com (2603:10b6:804:6::25) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 22df8ac1-7f03-428e-5611-08d598bc6fad X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4604075)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:SN2PR07MB2525; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 3:y4mpT8bgjI/lmwwV8WF2XPWxMGYpRxq8SMHqGbTyaQbk68Ix4N+om8D6anmW5lIRC60w5r9xEcG96CAaOFNsmvSDpvkLfOcuQBZIEtfQDSasjvPehAw0pfg6EBK5uNIaRmfwVw8zd/HIlmUPGMWLH+/M1b46hqN3/x+e0SphLQEbeIOn6CMCdkK89yNbOmgPJUFtW5BTyd+g3h//wOfMQPtrs7u4BEi1m6CL5lIkIhj9k+/S6MzIU+VZBC35gjDM; 25:JbVSgdncLuO4Z/4KRNY0Aual1HrkKIJvR6ZJ1NkeUHkUA1uDy3YJ7dPKL2P0NZfrBbH3QZuCKz4SH2gJ36nTp1UdNgiIOPwtTa+xTI1HN+wchEY5kW+8nchC7ldumvCltQP8gRYzeQ8wy1f8SsDLLKiDDstrNKeYsonJ2lr+8QM8ZAvUnZpkNi8cBG/1fJpuo3vY9F1PuKZCrCp9r374Q5tpuwZALPX8PUDZTXe5Z4MtCZn+8MKYVEZhJcF/mFisNs5rcL3/7qkgZv5WVAyW8vXeRcWEFI56nb/az3IKRRxXHVZ1InFdGE1Pot+50wnv86yLf6LGVQPh27IIxIVuKA==; 31:AbFOS1TOO+k8YxHTstDiifO7zLaQ129/MxbTUDm9aPuw29sDvSj0qnfOOepcF88uAD5DKpogtH9PLGk51KRbEFriWkKPk8JkEqTkB4UQisUWRd5c/q8sCrXk3CGkcKzk3+weCeZhdFR5cEIwwyXOXnplJhY0SPTOTrN3KoZKkJS9/RBJxxAzlw7i/IKyUCOWVhqctdKxwmitPQrGG8qrujffNk9Zkdc7QZ8g2IwE5sc= X-MS-TrafficTypeDiagnostic: SN2PR07MB2525: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 20:WdOYweYsJlGjdQmLkaRndWLav3ZUQ7CDGWMQnQuoNOqkea+i4eK5bioh1C7x0XHddV6o4D0vhTXZS8QbxxBf+EU2Ggr9ruuXrzSi7cNqNayg7oUaoFyIE4L+nCB2xNVKYn/3r/BJZE9fpc3TaYva6TVbuXkUQ/gOif6bFDSJTXiMxPlQ4/7PFxbnPsiFXerF/c1XkDz47IPbUpKhIBUMiem+egd24SL/R7sB6hA/whz/fBtFEmViJ8br3QU7ALuxqTHiJzYvSZUgprvhwvXWlWQ9z8m80ok+C2oF7K7kcR51falQvjy8vOfzg3W1Nhzys+5T9CkanNvjEUwXSrozCghbF0xE/lhMow+2KbIKdXBjkNUjJqmKIYRjXz907M9kPIP6OC6Hq4bIx07yeg7ajo/WekaQvdePBa1TE/6mFJbFocLgWmiqRBmxVavoQNFLribip47aFvvYifqSz9c407zkfFeSuMoXBEmmwbo8Nh8UmOzTCKG2SYxmgdYBvtS8WRjiPTK6SP7+0x3dxxpvH9cC/GUinyOzIeaEYcJBtM2eMQVHtJfy4mTrj83Nc96QBCBH9uOGxOx+hZey47pTWs+WODbe5p+TfLs2uPsnOA0= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3231221)(944501327)(52105095)(10201501046)(93006095)(3002001)(6041310)(20161123558120)(20161123560045)(20161123564045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011); SRVR:SN2PR07MB2525; BCL:0; PCL:0; RULEID:; SRVR:SN2PR07MB2525; X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 4:nthMR62VKt5t+qEDYDm++vxkbZh+1p19lrkMPt4/KVakYRMjichOqKY+BQs6enpRwpVbddajLKPOdm7vzkoecBfFt4/VxtUhz0jekda/QBY10fdmht1pvekzxgCMgPTjkJ0IYQDGBgLEKPJlAPimf3V/sggCAMU0aW0FDrvTgphtEgAJQI+HGSDbffBHrC6+R3iapruLRaos80gFISR5S0+ickUEP2Au46t65LmzPlgd9Q/eNk17m6iOd0yJbDJoAkQmft+Hdcvp8TPjrTykwbXfuLKgf/EcElnabrYRu2oYMZub8u/cv8h8ZMgWrywfCJcoX2MrbCBz23Kn5dFst2Rpc9jwAfcMZoKplDHwZzA= X-Forefront-PRVS: 0630013541 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(376002)(366004)(346002)(39380400002)(396003)(39860400002)(13464003)(199004)(189003)(23726003)(8656006)(316002)(16586007)(54906003)(8936002)(33656002)(6666003)(6246003)(93886005)(476003)(50466002)(6496006)(97736004)(58126008)(486005)(486005)(956004)(33716001)(6116002)(11346002)(53936002)(105586002)(6916009)(42882007)(5660300001)(3846002)(446003)(106356001)(5009440100003)(186003)(386003)(25786009)(53546011)(55236004)(72206003)(7736002)(81166006)(81156014)(52116002)(2906002)(9686003)(76176011)(16526019)(478600001)(8676002)(4326008)(229853002)(68736007)(59450400001)(66066001)(55016002)(1076002)(33896004)(47776003)(305945005)(26005)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:SN2PR07MB2525; H:jerin; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; SN2PR07MB2525; 23:UHBkM94f0BQfQ51fdyQF30sf2g6Kmn09QfCU/URt5?= =?us-ascii?Q?b2npaw3ARql0c7E1lz+N8ioEoCSfAvZ0mppKDqL4MOBjjPDIb3ZnwinP3eZE?= =?us-ascii?Q?vUTJO6k1W0WpQayZezEwCL9blsHQgs25AqYUeU+QKYxIzgnc3KNl+ErX9QX0?= =?us-ascii?Q?ywnxjoIrA7+0kWXBkJ5dPMiZKNGONrzgjQLZRUAXN/7s6BbRvWdYPatTom2y?= =?us-ascii?Q?Kx5+uRn7zG3tLG9YmDf0KF8rpaL6etNuxxPpkVtKaOw9jPyP0MfanzT6pKl4?= =?us-ascii?Q?SCSMvxLImXGAOMwICpX6Dl9uJ2StNIh5y1jnbQgzqtcp2/LLmmsKxS4XOgmR?= =?us-ascii?Q?PLItF4wMebIl8HndsHV9Ax4qCRGxtwrpDdZvQ2/uU0MElLP3+YuownMtwlku?= =?us-ascii?Q?Krkn+yRaFgB6d/WnDEOtN+UzX15do5dU+bhFwasdVqcI9oxp/zgWYKNdWgkS?= =?us-ascii?Q?ltIhXWbvd47Vfu5DqE581MTIkrdjRvrJbRcC6Zk35jU1nis+CWMfNDE2V1WF?= =?us-ascii?Q?1us/+TTnVSIY5n68iypbNTDoHRvuxmlNNxO5fg5EuMzFsh7sO3Eed6jBuSN3?= =?us-ascii?Q?nn1X8CUXIED5BiGHafS0O7LFHFpgW/XOi1cyrKhfAMfiQlzP7A1ZlQlB+v4A?= =?us-ascii?Q?m892TkqtLIgmi21BLkNavmR0EdBY38UKl1WZoFR08wSu4rjjjYI+x/3eTBR2?= =?us-ascii?Q?AX48FKT94mb9LygK1kW6o6nUsfWh1M1khvtbDAEVztjZTprl/687UKE/4QVC?= =?us-ascii?Q?BDGXgDSFvX43QCULd4DmrQJqSmsFw9LRK/e0NZezlMXNkS17GlmzUQEfBfUM?= =?us-ascii?Q?NRVXyd7Y7F/cJ6Obm2j/8xMGG/z+UemMwsx5EbM8UdtPFSxLlnHUUjz0MJTz?= =?us-ascii?Q?W9Wlb5wcYpiA48PTERTdYcC1jOXEBgd/QrlctgG0dzPeNluwAveZbcak04DV?= =?us-ascii?Q?3a1v9fYgHcXB5xtLVhb7ncMpVRlwSv7KAEeyLnNYaaC/W39Ajj5cGUzJZU+B?= =?us-ascii?Q?1O93KlEX0QcpnaQyAn9JxDft1+YZ+lzzzd2GovLoDm866NQj4rPmS5GJeGRe?= =?us-ascii?Q?/siyAn9rW0Cvaboof7DsU7IoljVnSFGfgEFZvvHZglRHM6Hi0qrCHbcR8TCU?= =?us-ascii?Q?0Q28r6Rbjt2KKQ3KG8A5y1N6y/r/DKMgcgF5hbHbb5e1/M7HF+LFHJF0HtDi?= =?us-ascii?Q?5bAmxb4Wr7zcSrmzE3TWvqt9nsm94bvgtkykSeA4PwlG2NqJJrVg/8RvNysh?= =?us-ascii?Q?RXZ4D642908BGtqpGi7hO0WeZ85IBvxZK4WM8D7wIfiY6uAZgnJ8blWkoAmI?= =?us-ascii?Q?IwWJKM+MfLS8jB4MCajwnffnTrTnvmaXQzppC7U9T0aIghjfupBoTouZw3AD?= =?us-ascii?Q?zONmEHnmqVr7Z1+ohhaSOSJxuTlzDMArBTGjGq+iBQlthIoDOtut0Xi7378g?= =?us-ascii?Q?4W7uW8cK9OUrmkrnKsN2X8wDhCEZ36Kn98kFPw+IPHlYEUlppCdwrRW6dbtp?= =?us-ascii?Q?Hnx78rk8CDnVw=3D=3D?= X-Microsoft-Antispam-Message-Info: dgqYJLBM4l7uULHYLTBE0mAopvDUadaBl/j+JRL2BPfNZkluq0oVenKAJyEvACw3I7K+2hoOVB8H3zJsCCGPz7sl/kCUD3WWS/UzHenyf+hzyGuQKYeiWOTDmLRtZ77ZKeuRNVvohhDnd4sSxF+/klLV9fnp3VFeUY+l4/XMUxb9HV2Bf7uj1O36YYKQs0nE X-Microsoft-Exchange-Diagnostics: 1; SN2PR07MB2525; 6:bD5rlRCWq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X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Apr 2018 17:09:01.0666 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 22df8ac1-7f03-428e-5611-08d598bc6fad X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: SN2PR07MB2525 Subject: Re: [dpdk-dev] [PATCH v4 2/2] event/sw: support device stop flush callback 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, 02 Apr 2018 17:09:06 -0000 -----Original Message----- > Date: Mon, 2 Apr 2018 15:50:42 +0000 > From: "Eads, Gage" > To: Jerin Jacob > CC: "Van Haaren, Harry" , "dev@dpdk.org" > , "hemant.agrawal@nxp.com" , > "Richardson, Bruce" , > "santosh.shukla@caviumnetworks.com" , > "nipun.gupta@nxp.com" > Subject: RE: [PATCH v4 2/2] event/sw: support device stop flush callback > > If it's ok with you, I'll resubmit these two patches separately. The sw implementation has some unresolved race conditions with the scheduler service that may take some time to fix, but this shouldn't block the first patch. That patch needs a fix too (v4 includes a now-incorrect comment about stop not draining events from ports), so I'll fix and resubmit that. OK. So that we can merge this common code and octeontx changes. How about changing the following comment rte_event_dev_stop() exiting: + * This function does not drain events from event ports; the application is responsible for flushing events from all ports before stopping the device. proposed:(Just to share the view) # You can add the fact that, all events across the ports will show up in callback as we concluded. #Application may invoke stop operation on the event adapter to avoid event being generated.(or something similar) i.e adapter needs to stopped before stopping the eventdev to avoid continuous looping on getting the events(over rte_event_dev_register_callback()) from event source(ethdev Rx adapter). > > Thanks, > Gage > > > -----Original Message----- > > From: Jerin Jacob [mailto:jerin.jacob@caviumnetworks.com] > > Sent: Monday, April 2, 2018 3:03 AM > > To: Eads, Gage > > Cc: Van Haaren, Harry ; dev@dpdk.org; > > hemant.agrawal@nxp.com; Richardson, Bruce ; > > santosh.shukla@caviumnetworks.com; nipun.gupta@nxp.com > > Subject: Re: [PATCH v4 2/2] event/sw: support device stop flush callback > > > > > > [Update: Ah I see you do this below already. Still, better check > > > > twice I think, the data path isn't running here anyway in case > > > > future me decides to call > > > > sw_flush_iq() without performing the check] > > > > > > Agreed, will fix in v5. > > > > Gage, > > > > Could please send the v5 so that I can include it in RC1 pull request. > > >