From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0076.outbound.protection.outlook.com [104.47.37.76]) by dpdk.org (Postfix) with ESMTP id 2DD9E11D9 for ; Wed, 26 Oct 2016 14:24:46 +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=ZUBVmJxr6tnQrtIClCeb6DPzTUCAlfyXWFQkGK1nhHI=; b=UmQZv+x9QBV9un80cttMCohMcARnM4nrpwuKKU6GgnzE8yIN5+CucyzFyw/Q4jK9Cq50IsJlhIBEm4eg1tSWuCoAZ2aMNIBiwayjNiTlClYipXXF7pK8QzdSDLAkjGdcEQyrN2T0dlhTUJXNW/5vY4cxgOsVpUw5QoO3hzUQKZU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jerin.Jacob@cavium.com; Received: from localhost.localdomain (122.167.32.30) by BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.679.12; Wed, 26 Oct 2016 12:24:41 +0000 Date: Wed, 26 Oct 2016 17:54:17 +0530 From: Jerin Jacob To: "Van Haaren, Harry" Message-ID: <20161026122416.GA21509@localhost.localdomain> References: <20161005072451.GA2358@localhost.localdomain> <1476214216-31982-1-git-send-email-jerin.jacob@caviumnetworks.com> <20161025174904.GA18333@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.1 (2016-10-04) X-Originating-IP: [122.167.32.30] X-ClientProxiedBy: BM1PR01CA0011.INDPRD01.PROD.OUTLOOK.COM (10.163.198.146) To BLUPR0701MB1714.namprd07.prod.outlook.com (10.163.85.140) X-MS-Office365-Filtering-Correlation-Id: 5fa29931-1b47-4103-3098-08d3fd9b115e X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 2:pm9LwGmYYCcao0l9WjAyvOuqoRbakGARMQMw7SXVWczq2NmsR3StDSY3TyZTr5NZL/LeDO5WSKI5SJgK57idYFY+DRBa6PrQsT3ivQZfkpy4wAsjurlbwahApptfNSuEo8kxVAyxURLshqaBOdiYz/yvd+TCMcMTwrM2utYdYutKUQ4XWdG2UXDXB4brPajwGeLTgVI4td5UldBPtZvZhQ==; 3:uQlfAvOnYc0nNUwGYGrmx2YmWSWBShPDE9eDt+64jL2Waac8LWWKN6fM2un5uzdCh3Tuus4JiTmMX0LbzsPsDq2On90zfSEWlnvR5ERRqQh+KX67neIC7MnNtgghpunvo2I7KPLiokfWGourZ0IsAg== X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 25:TlARkKYsbjKNWn3uPQtQ/45G+qZuTwvSh3tbt7+YlkoQrB+hbx1YQGu7e9CvIKZUN8SQqMU2jt4oYBcluNUWgpzzaHVt8qxODQCwisLbXnVDvcgiykRRFxAQyC4M2+u0mQt8BfOH+uTvr1gg2eKqtVJgK1nzptJeHZMr9wkSHIFgtJruSIakqBOEq6zGJipiEWtexlaZtfmbh2xzHlbQJ1FWrlNs3v9Vv2Wfy61VRugHLpUZshWcmMn0XY5QfS+lpY2vpKeOSK9ukLvJiPdNQhE5QLzlrOXJqWNQxZl7CBdYWr1RXcT8osW3/ZYZqbDQBXb8fxiMki6lpgARPqgm3IgO43+HHC3TUubmW+IAn/sxLSzUf/ijHcehzMJos8lTqhukZq6WFQLeSbILM9ljGgVAph3mba05XDuqFWH7n389f+NQPGr5wvGfv/exwIct1q/1Qp9U4LDx+nvvLjVpZ+KfSytSgdZNTFS+8DdhefXRzTuw52MFuC4OosVCNYHxmU0gQfUWGsbzlVy8/FxofBBtEm/r38JCg3Pu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Kje6QckOsWI0omP9QUSqrS+1riYe3pDlln10T2kYjIazt3DLlrjN+1N9a+L1tu0xfkN/8ZDXD7wFeALMg= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040176)(601004)(2401047)(8121501046)(5005006)(10201501046)(3002001); SRVR:BLUPR0701MB1714; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0701MB1714; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0701MB1714; 4:s/4wAO5cjwcuCcP+QaoZ9XaeFBOXiWbJhS9RfpwZYxP9pouIRJfbyrcCAHHfn1kUQiZvm2y6XB+1xwsYUReHIgvMLXpX1EqtA3wDe/uSeAk1O6gct2rMpGCXJLJTV/XfARO3s+CLFmVS/AyULAbDZwNaTLZdzXyyDGMlCM5YDKTPrwrvsu9a6LhUlnwzEWMubh5Erp5q/cCfWirZ7HSjqheLfODnmX09z4mQLTHjrkSbA3xPjGmJr73XxQACHvFdBDj+VG83iDkOYkO1c1tdxoKNbqODE4Ajm7gXlBraBs/mxKqxwKzkHzHxCVMBKU7JYzwe4dqaAShK+dUfID1IlpyQnbHqx1ijPIVlseBZwlcG6XvCid+RLRFilBDxm4l7I+B720ix5fcO8LFZn5V7yA== X-Forefront-PRVS: 0107098B6C X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6069001)(6009001)(7916002)(24454002)(53754006)(13464003)(189002)(199003)(83506001)(97756001)(8676002)(81166006)(54356999)(61506002)(81156014)(42186005)(46406003)(6666003)(19580395003)(76176999)(50986999)(50466002)(66066001)(47776003)(19580405001)(105586002)(68736007)(586003)(106356001)(77096005)(92566002)(6116002)(9686002)(33656002)(2906002)(93886004)(97736004)(4326007)(189998001)(2950100002)(1076002)(7736002)(23726003)(42882006)(101416001)(6916009)(110136003)(8666005)(7846002)(305945005)(5660300001)(4001350100001)(3846002)(7099028)(18370500001)(7059030); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0701MB1714; H:localhost.localdomain; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A: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; BLUPR0701MB1714; 23:n5B3kaPWCnesGT5DfHOjv/1L4/t6ySvXCg3Kosh?= =?us-ascii?Q?F0qFFnF9K0M3qhzGPhhpo85evoFFU9Zi3ngdhgBvh3faBozUzqabjrgwNcF2?= =?us-ascii?Q?ZgJs04gFryUYCd2Be//dm966bfMUl3hrlxEk/uQEZvt5QzLddaqqxovRArWI?= =?us-ascii?Q?WLlK0PzbZZ7vCXTt5iQQbVuZuoTZ9ikloiuQ+hvhD0k3GDqlPPlSmNULy0KD?= =?us-ascii?Q?gDu27jfUyYBBK0fAPy0mRcFhjD8J+KhSnJZhvQsRlIbN4LBQlP8UEq7R762w?= =?us-ascii?Q?u2zJpDEzHy5F04U1FEu7SVUjUj4v158cU8pBV/j/jdwfpGbFb/CjVRczNPhO?= =?us-ascii?Q?be/5Hsih2d3xT8k8wdcZoVvwDrrKWt9l1CcFTkc1xu0YsnIEmRyWEI9i1jXM?= =?us-ascii?Q?Q7nEfsBg4jzPJvhm6Czau8Ii78UJMHtydVBMqKC4s+OG483VNIVAGQD0KicK?= =?us-ascii?Q?So90AHJ4nsJLFoJTm0MEy8+kocBMYqOC74kePS1XQYW0pbqhLahTXv8/d3T7?= =?us-ascii?Q?9h/gjSShNJ7EkUhDKVXep/0p06j9Zlxko8Ss5ZtCtpd5gZ8Y60FKcDh0rzxu?= =?us-ascii?Q?x8Wgu7MXQZ64Q0oKCnQsxxsUdabneqAOOZCnLFGiEh0xJk+OUhnvdoBfHpQf?= =?us-ascii?Q?ct7CTNxLOcjGnv5cDRL1RqyMQYOwp5td3jPqq2JiyZqtqWzhwnyJ7vWQDnYl?= =?us-ascii?Q?zFGNuZmXLl1z95u2bm/sHIr6gOKSPc1sXsj+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OkKQgMJSnKLVQ4yxRhQIwXjZl7LQXQ5yJINCV5lMuxy4/dYcXh9BvV6pk+w3lidcwjfQJphTigtRwQUoMxAq5Dyw0D; 5:XsVVwKWsd8ehgGzsRNPmoV78XgdeXpyAAwvjvsoNBD2TeaHpTlSWnxpA7ZrwUxTHetsBJxeuwZK2vJrbTGUwdHoMMaAd5QE/Kesvn/BzaJ3zleZTfp+jeFnrFFNZcbA/cUJRN8RpV8MOWgXEo88ZDg==; 24:QjUp0xnLOdPAUlQimJeFsYIWRiV7ObnYAtpuB9xklRdbOwAk4sFeLatFcquwmqYbdhYU1NuA7r4xANej23RqI+cmYWGsFvZRWEPAvF3/kwM=; 7:LRPEBM6ByBcehtoOIRPtdPO5WNlfvFkQh+pljx1Jlmyiv1OtZep4TF+jn3J0bZ5QRtTzIgUUwaNl9LFDr5gNsAtDcBqlpujGTnL63bPrsZaOelnRf82mOhxNU1C6qeA3rrYoyz7X1LljBYqYWP2oCjXafgGBLZwPkaPJaBGcxLz9wV608DlXUosAUYYjcDJO6SPwOB6nxVaLKLkUbPlUfj6XclYH/2BJclwbeM7ewWWYuXihs/dg5OfeoSrZuELJJfOo9plpcMvy85T/xyVtdGoSUBn304MvYcZTpUS+yZAbDSxmOxHjdGkSD6XvmKpwDbFfLj/5IjisW3SiH+IZUuvQmmbHdYm9uFf69cwu5kA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Oct 2016 12:24:41.2788 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0701MB1714 Cc: "Vangati, Narender" , "dev@dpdk.org" , "Eads, Gage" , "thomas.monjalon@6wind.com" Subject: Re: [dpdk-dev] [RFC] [PATCH v2] libeventdev: event driven programming model framework for DPDK X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Oct 2016 12:24:46 -0000 On Wed, Oct 26, 2016 at 12:11:03PM +0000, Van Haaren, Harry wrote: > > -----Original Message----- > > From: dev [mailto:dev-bounces@dpdk.org] On Behalf Of Jerin Jacob > > > > So far, I have received constructive feedback from Intel, NXP and Linaro folks. > > Let me know, if anyone else interested in contributing to the definition of eventdev? > > > > If there are no major issues in proposed spec, then Cavium would like work on > > implementing and up-streaming the common code(lib/librte_eventdev/) and > > an associated HW driver.(Requested minor changes of v2 will be addressed > > in next version). > > Hi All, > > I will propose a minor change to the rte_event struct, allowing some bits to be implementation specific. Currently the rte_event struct has no space to allow an implementation store any metadata about the event. For software performance it would be really helpful if there are some bits available for the implementation to keep some flags about each event. OK. > > I suggest to rework the struct as below which opens 6 bits that were otherwise wasted, and define them as implementation specific. By implementation specific it is understood that the implementation can overwrite any information stored in those bits, and the application must not expect the data to remain after the event is scheduled. > > OLD: > struct rte_event { > uint32_t flow_id:24; > uint32_t queue_id:8; > uint8_t sched_type; /* Note only 2 bits of 8 are required */ > > NEW: > struct rte_event { > uint32_t flow_id:24; > uint32_t sched_type:2; /* reduced size : but 2 bits is enough for the enqueue types Ordered,Atomic,Parallel.*/ > uint32_t implementation:6; /* available for implementation specific metadata */ > uint8_t queue_id; /* still 8 bits as before */ > > > Thoughts? -Harry Looks good to me. I will add it in v3.