From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0069.outbound.protection.outlook.com [104.47.42.69]) by dpdk.org (Postfix) with ESMTP id 416291B651 for ; Mon, 16 Oct 2017 13:35:38 +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=xwJ2ATDWjzvwIrI7ZjMmnDP+hAllmLPi2QWQd/vs53Y=; b=JI3RQ+BtcmfKpVP5TfkU6jsFEE4h8SjHdw8PcqSBzPJTriobLsBp3v6EhncBl5AdB4JL03BgI4MimTzJRccpNDq3u4HiT5/iUqoNzXmEU1kQI8rMzgP5VzBQHUf3NVcVZ/3K3RJucP242RCxbr/tf/G5H6bLuTaKMocSyGlMWuQ= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.JacobKollanukkaran@cavium.com; Received: from jerin (14.140.2.178) by CO2PR07MB2519.namprd07.prod.outlook.com (10.166.201.6) 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:35:34 +0000 Date: Mon, 16 Oct 2017 17:05:19 +0530 From: Jerin Jacob To: "Rao, Nikhil" Cc: Pavan Nikhilesh , dev@dpdk.org Message-ID: <20171016113518.GA18083@jerin> References: <1507833953-4396-1-git-send-email-pbhagavatula@caviumnetworks.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: BM1PR01CA0095.INDPRD01.PROD.OUTLOOK.COM (10.174.208.11) To CO2PR07MB2519.namprd07.prod.outlook.com (10.166.201.6) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 48f6a1eb-ae48-4dfb-cea4-08d5148a04fa X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:CO2PR07MB2519; X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 3:uh1d7YGl5Fdh+UE0XJMy1NdUZ1K+6e0niy3YYE4ENECmsZP4NC3hbg1hDfpfnLlNNN8thxhxVBDYR9Uq6oufd5T5icD1ank/hQStSCuuYQGi47uwfS0QK3pNu4Na6PgXkx4VXWGbhUBaMQGjOxhVm12UjetGCeqsUW2bkN7XGsURdMCd5AQlYYyThjhbDwUreElCl52wiy/ILuubp43Puz2/m/OWHBIb/2wTpFmRgGiWPLk5z0cH2Z1Zli2lAUBg; 25:5CGFfqLDyrIjG0hsu+GD2xDleDZwBuQ9JZ92ZE8XfcDQMTyg8phbeQR3ChTR6pXQQwVIafvM0YlVJLQl8Hhwzk0fBpufJU5RfCj9x8o8jS0TRfp+GZCNj0JkfzozwAt8hDIjx4zw5b1pAMh29K/L4rRTl4X3szx3+Qv35InOwyX42DrBSt4nsRpg57ikkQZH5sl69590290D7XHKkjZ/OyfZ2SruXobmFDoN1LySV9sW/t9/uCvQYGRe7WByulCzV7AvyLs2+Yq9H93zopkB1NgVHEhwVEr1Qm3c4VCwvRLA1s9AvnEjrkgHgRSXUrOprpG6ehiRuB+ZlVUmcMSWUmBxyzMxjlGiZLcbJQUM5+k=; 31:Cjfz921x6S1bKU2X4WHp0l6RoqkigOi9JsRWV7WWFfRVHjvqUag9cOLNlHyB98zj0rCHb+P8N+5RjtRllPtpAFbd1R6JuueK+o3+ahth1jBpvusDL0DNhclGV7nqPWZbFNJvlJoElLCcNqMK4EXcfsEXkdmjBf+b+Lji9u8yog1UdyN28RCFPDWkHGAYuvnTbWBXgIPuKg3uOHzI9eEHGJDnWy1QTEqUTFAAUdeU470= X-MS-TrafficTypeDiagnostic: CO2PR07MB2519: X-Microsoft-Exchange-Diagnostics: 1; CO2PR07MB2519; 20:LtYa88+285OxefQzFYHFNPuwAc5pTF58q5DHq4mHu8g6GdKsXOU4k8yqb0HFE3ZqWn6bS98nraqzCr5oyvFDa1l9YDwLmjFS/+YhjhHAS6YxUjOPgyUH14PclkHOLYipvNEwiS0y5rkH0M4X/jLzFkFPtWkEfMXonO9ZCVUdEQmxCyPfjaxUrRrKeikeqq6Kb2aBLbmwvR2k1eRLnn/r+AHP32JBt3Jf76aYzzggBc0DINt1DT5QWaTCrtF6XMRmm6E6m9KOy4cO16XBViOsqjNWgPil6vJg6XFRfBNmuhrBk2LtZiSO4qeMPd7e/WesGe9BJwRlJzUFvlcQDu1tcKbXwD6wShtpBTUvjyUYd7ws1JGBOXblYgpitsN2F0b3Es0BI1GtE4pxqUVTF0S/Ym8uRId4zK51fmtKwPvx+eHGKw/o3MBxfwlJb8e+grKTuTMgVnUUQmMUFQ7GKcwsZCIB589ZSW7GSSQJbmDgWtozPnUSYe03HS8p6uykGmHlJO0IfxXVq2t/Zsg6pNZkGwyxVCFv01UnS5A1nW1ekita4jAcnEX6CwlKyp3cbDFUsXjEzl15v8hdTYmKKmIWMrjOFe4ullVcBRig+QClo1E=; 4:AQ/qsGUssMsLUtbpHpON7PyViSfS2e+oBlkvkEVsw6PlYCppo4NpZbBwZlTt3xbPwyPeWQGuQlEGZUXMmt6BoWWPKrh59BKuVkIuxaDQgPrOuT1q6P2R5yJ8ZtBCW91y+DIkoE2L5XPJX/dGzwiu4RFv2BFI6OnxaZRSzwNKqmw2rU3Ur22cFq9IWBaZ9MG2LbqXVwsGYxDgMnL3LqW3USkj7WFXoUvcUrMxSQNA+tY7nXKQkLIquAuAObOW8K4RCxi9XkiksBEUqf9ZpzMbHOdRmPfS9DEHX/X69N2bTLk= 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)(8121501046)(5005006)(100000703101)(100105400095)(10201501046)(93006095)(3002001)(6041248)(20161123560025)(20161123562025)(20161123558100)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123555025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:CO2PR07MB2519; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:CO2PR07MB2519; X-Forefront-PRVS: 0462918D61 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(377454003)(199003)(24454002)(13464003)(189002)(101416001)(106356001)(105586002)(68736007)(5660300001)(25786009)(189998001)(3846002)(23726003)(6116002)(1076002)(2950100002)(42882006)(6916009)(8936002)(50466002)(81166006)(81156014)(8676002)(6666003)(6246003)(53936002)(6496005)(4326008)(9686003)(55016002)(66066001)(5009440100003)(33656002)(305945005)(47776003)(7736002)(229853002)(2906002)(33716001)(478600001)(16586007)(97736004)(76176999)(58126008)(316002)(53546010)(16526018)(72206003)(50986999)(54356999)(83506001)(110426004)(18370500001); DIR:OUT; SFP:1101; SCL:1; SRVR:CO2PR07MB2519; H:jerin; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX: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; CO2PR07MB2519; 23:kEsk2abXHJJGebTPea7GkoZvQcBypclAKoftr6826?= =?us-ascii?Q?7p5Y43mvVypW0fzbTvCGlvJkom7PfXW61NMxh3AGgqQlKHgFpjQawR0WQj+3?= =?us-ascii?Q?qAa3dph5ofJx/dleU4jEj4IplOq8LKtvW2E+zSGelensOeoByLQgrpkyqeK+?= =?us-ascii?Q?rScllqgW8mdG7JM82N5Ng3w1cn9936II3rzQ/7saY4pAnM2lSYisH3n8LXzP?= =?us-asc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BrmZ3Hi7duibKW+ZSHQ71mX6C+I1PQ6xtFpItrbVZ0KSpjhNZGn0R+IJVLaNcW3Z5uQTl5lwbRdKwcBuyHoOzlAub/8OTTVZmzjjVEfk668bA5Ej6RgOhGSY8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 16 Oct 2017 11:35:34.4849 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO2PR07MB2519 Subject: Re: [dpdk-dev] [PATCH] eventdev: use new event enqueue in Rx adapter 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:35:38 -0000 -----Original Message----- > Date: Sat, 14 Oct 2017 08:18:42 +0530 > From: "Rao, Nikhil" > To: Pavan Nikhilesh , > jerin.jacob@caviumnetworks.com > CC: dev@dpdk.org > Subject: Re: [PATCH] eventdev: use new event enqueue in Rx adapter > User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 > Thunderbird/52.3.0 > > On 10/13/2017 12:15 AM, Pavan Nikhilesh wrote: > > When event Rx adapter uses software based packet transfer, event op is > > always RTE_EVENT_OP_NEW. > > By using rte_event_enqueue_new_burst API the underlying event devices > > driver can use it as a hint to optimize enqueue operation if possible. > > > > Signed-off-by: Pavan Nikhilesh > > --- > > lib/librte_eventdev/rte_event_eth_rx_adapter.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/lib/librte_eventdev/rte_event_eth_rx_adapter.c b/lib/librte_eventdev/rte_event_eth_rx_adapter.c > > index 1e42dde..fcba18d 100644 > > --- a/lib/librte_eventdev/rte_event_eth_rx_adapter.c > > +++ b/lib/librte_eventdev/rte_event_eth_rx_adapter.c > > @@ -392,7 +392,7 @@ flush_event_buffer(struct rte_event_eth_rx_adapter *rx_adapter) > > &rx_adapter->event_enqueue_buffer; > > struct rte_event_eth_rx_adapter_stats *stats = &rx_adapter->stats; > > - uint16_t n = rte_event_enqueue_burst(rx_adapter->eventdev_id, > > + uint16_t n = rte_event_enqueue_new_burst(rx_adapter->eventdev_id, > > rx_adapter->event_port_id, > > buf->events, > > buf->count); > > > > Reviewed-by: Nikhil Rao Applied to dpdk-next-eventdev/master. Thanks.