From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0048.outbound.protection.outlook.com [104.47.42.48]) by dpdk.org (Postfix) with ESMTP id 147BD1B310 for ; Mon, 23 Oct 2017 10:42: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=s+0mzio4ojOhIeZe8Ak1jPFdnS4Z24YC8YwdnYG0hx4=; b=AxuNcFC5DH/iMKekBSiI7j+9qdqbwle/kZmgci+bFaArb1Vvcviin43FgYRdGvqDa3GfofRXYJNFYj0/8AXaMRSPE1x2N+M4WBmX+arwLmBvuj8+JCMnJ2RV4Mh7QZYuYjnPJ0i0CV2Af24DmK06Xz7jGEKvzmeNCdK+PZBuXrs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT (111.93.218.67) by MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.156.4; Mon, 23 Oct 2017 08:42:02 +0000 Date: Mon, 23 Oct 2017 14:11:39 +0530 From: Pavan Nikhilesh Bhagavatula To: "Van Haaren, Harry" , jerin.jacob@caviumnetworks.com Cc: dev@dpdk.org Message-ID: <20171023084138.GA27709@PBHAGAVATULA-LT> References: <1507814147-8223-1-git-send-email-pbhagavatula@caviumnetworks.com> <20171020103032.GA7404@PBHAGAVATULA-LT> <20171020190927.GA18722@PBHAGAVATULA-LT> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.24 (2015-08-30) X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: PN1PR0101CA0021.INDPRD01.PROD.OUTLOOK.COM (10.174.151.31) To MWHPR07MB3469.namprd07.prod.outlook.com (10.164.192.20) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: bb8fd58c-826a-4791-b83e-08d519f1ef8e X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4602075)(4627075)(201703031133081)(201702281549075)(2017052603199); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 3:d+VlseOfyAd/KW6ssdN12w1DJe85gHw65rcQrdmwyDCYalgSoQsgbgJjjfDmcWi3Bk2/haG6M33ohc30NwSbB8os83CXDU/Q3Aad5k/HJAWdrHwMio3Ho0OvFOoFfnVEQ77tOi9eCa0eqI9crcW65Sy+DuGJJbX5qWdGztIO9jSDC2b7ltMPMYAJCyqtYDH+/+kOo2qQSsytDrs5non6g5CsqTNxC5Dl6nYjLPba5Rg19q43jDCBJexAuyr63ouX; 25:tSTum7o+FZZNmCT0d4ZFWdZRixY93Lqn6/qccJxA6FTkBTPwFw1euRMIydGqI3AleNtgOD+qXrh1cVMaicO5gwoBIfNUEgL/3+d/2+C9+r2RawqYUdyTzJakEO6+NzQd29nT/iYAI+e/x+u77keyJBiQB4l2ZxoWxfFft8yZf/3xHSgdsmX4LfdGteEaD4VZGekCvZpTvWE44wnyzN/sXXDZNeqbmQzotOZ2R8XlvhgGAhsfTlSzilW73/+3C9X33yowvnXixMgrUplD6YVuo+KNsjNFxOM+lV7V8eaDMvndk8T0dvqfugw4OZJ4GAY6uzvme69GLaccqBntIPac5A==; 31:9Kh8+pPVSVatWiINYTrX66lU0prXoW/+EDLmkHODMoV/KC8ZWuI5oJ3vmoTpi+PP0Jfs8ExST6Y6LYrw/+ZHHBy8K5u223nUzINGyB4alzcUlnNd/idIISRsA+SWEaS+aT/TrAoS8wLX7AVuawp2Xsc7v4TqeXq/HX7MVwR4svblBBp/ZuJZ0rGdR8rTtDn3cIYCCYtoySrqsKCghkhYFD7MNEgYi5bBYfgpeJT/gPo= X-MS-TrafficTypeDiagnostic: MWHPR07MB3469: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 20:Y+LXepW/w0eZAQ1vWYk1zypdOUX6OvoI6JqPtKOCla+smmqy+dAtS4puKCdLm5j4RE5duRaQOuCAz/LsUNFwMdx7If79dW+Eb2KE4Yz8OTtKTOBaNAdxc7AH88dF6ZoLFzDajOQHMne05heoeIUCA7prB9ho3G+OQHkFvv5x9HoFCi5YmCI6jiQa2pTzitJG0+0Po+w/zadGKcxYOpeZhHTVoNiMZLkpGTno0WsAfPsZxBtwyHuiEwHdcNyEy7hKEGii6c64AXQqP4fC7LL6tM+R/ID3Nq7MiLbUBuO0NIa9YpbzHNy+aHipYVyrhNtJ0y8fX7MxbN62/OClGXHbOAnWXM3cljTujtmyJdXsgw0ltTDZqeFFsxMj6b+ieGYtWZK6o/WanuX/iG9hb0WOSmuZQ9CQ6O+WzmJbv+4TIE4xQe9R/h06FM0FLyvInovgQ83/hBEH7VELJof6CEu6d5F6rrVGp+CsmN1sYIroF/crRDqgxDg4IgezJkVUUVBhLHOkt6OuUeXBWjv87roIwnpIn9492aXS1Y4fzDeJLfB728iiOkMEvfY2R3Sks8La8oV5mLAGAMamV7zRtSlRvPUvDMLbRjC/n/Faz9pBhJQ= X-Exchange-Antispam-Report-Test: UriScan:(278428928389397)(228905959029699); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(3002001)(3231020)(10201501046)(100000703101)(100105400095)(93006095)(6041248)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123560025)(20161123558100)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3469; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3469; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 4:Gzc0l79KhNwptutGMi2OQxK8TRPMU8wrtRaUmzUWJ25huC4qcGeq7wwOeqkXqZQZINvpf27LSOIp7XNf1iyP4T/xpMCWGTsqMBdDu8XCbqQbCQ3ExXDSjYLlju8HdSo0GXgNZ4TPPX7gMK4uym3Xb1qgySe7g6uHZqya88bWnSme77NImdAPDmkXUagO4LKhXefrpUDJAahv69wbff2lp9Aa94k2YPymaIvwHBF3vEu1LuA/tJaHB0LqG+mkjJN413gEiLrxMcMQrtOoRxZfLzpVHpXTq9n4hdayR0uN5pkMjqkRtpvPuLyT7IcbrTjdCdY/BOZ73LKgMSI0p7KO2w== X-Forefront-PRVS: 046985391D X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(346002)(376002)(189002)(199003)(24454002)(2906002)(6636002)(50986999)(2950100002)(6666003)(316002)(83506002)(23726003)(42882006)(4326008)(76176999)(54356999)(3846002)(6116002)(58126008)(55016002)(93886005)(33656002)(16526018)(101416001)(16586007)(33716001)(25786009)(5009440100003)(229853002)(6496005)(53936002)(305945005)(68736007)(9686003)(72206003)(189998001)(5660300001)(478600001)(1076002)(50466002)(47776003)(8936002)(66066001)(6246003)(97736004)(81166006)(81156014)(53546010)(8676002)(7736002)(105586002)(106356001)(18370500001)(107986001); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3469; H:PBHAGAVATULA-LT; 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; MWHPR07MB3469; 23:0tjL8kaxSsNEyfLOYt7iM7OC6BrgQvGXZNqvVjB6e?= =?us-ascii?Q?S7Kxh8vY8aSzzco6LrhISKLn85LeQpxJysPcILklpjsY3q0HEDMfAKMiAU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683Bqryu/6qYdkP81TiSMKRdYq?= =?us-ascii?Q?vC94KIY0SvxCAdh4oTOozShjtiK11iY8LIL2hjKhZCRMgaik4AQ67KQPCEc0?= =?us-ascii?Q?dRlIX/2Ag1ddH+1wM89aeRcJSAyZx25JCjpTMb+sexSPiCbfuJb+12PY66vQ?= =?us-ascii?Q?7vv3WL2SPjzffX/SlTLozMy13rV3hSYAm8HB+Ui/MAjuxyAyi/y9cVqVY2YH?= =?us-ascii?Q?pusiHqho/g4uMrFWODwqbUeyXKvbRLgN5onNPGUwhMaa3dSZYuS4+LzvwKHY?= =?us-ascii?Q?WGVxXY9o75KscmMHE7/7NQd6xOS8nYt+kxfmIaZSqM0E+mnxn5v775Zz3onV?= =?us-ascii?B?Zz09?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3469; 6:9j2MiMy9fGrg8oKn2mNmO/6GCVX5wV/EY38kb2QaK2lgigs1rPvX7TrwVAsKlb2camywjaJEEQJijJFQhJF3a3OSovQcpTxXCr1fQwuOQC60h95cvnv4oS1kGgjE14whH1fB9tPHED/IWNMwQfgRtZhS0wiB+ka3Dre2m4oYLEAHgwNzVdRi25TdU7r/w3ND/3SVzlgoygdbEo1XvNECGcCtpsfaPRNcnEl/XLphSqgzNIvyfLKLYNImzJ1NWxRe3nniDAbi1of5twiCKRqAJykgJeyFJ4pvlTswW6/UqUnZ8U13aDhV25CjADeVmtlDDokB3pexTD57F7etHmDYCg==; 5:WeLpv7I2CkU3wlmwjx0CypBP3aK23Rp8HV1iR7OI4Ob+zivjGqMydQ/fdRQbQcQD6kEikrQ3rIu4o3D1io3Ro0be3/zdi4Kmk5lMajSDcABqgYE5+ZyuYLlayseXDXgXU+1eH4Up0KEXjRIOCjEXtg==; 24:DYy4tEF18d3yohhMxeye3UB9OAkN7kVuUaI75fWWEhzFdNLSnULCqXce2usniniwhGF27M+Dhc0X1p9/APepQB4MUTE60WrKnJcOOSt4LQc=; 7:CADQfjF5I9p/mDRLF6srdyBLmAHbYkn7zI4Z8c2Y6gGvldYQZpG5jKQYE+6yzIz6nnODGStTx5P87xdHTbr8v+1MWWgqKHlsVvbsyAhtNh9ONBp0KwoKxgoXv4CWTeZgKygjoJGsoQT1gNIehVwJpIskUpHGaV2bHP5p2AjU++ocedQirRxWGivjeBci+tuMbKaiATTcUL+V5a1DXjh5XWf+aQ88QiwmqLa5WrNn7jY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Oct 2017 08:42:02.6432 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: bb8fd58c-826a-4791-b83e-08d519f1ef8e X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3469 Subject: Re: [dpdk-dev] [PATCH 1/3] evendev: fix inconsistency in event queue config 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, 23 Oct 2017 08:42:06 -0000 On Mon, Oct 23, 2017 at 08:04:26AM +0000, Van Haaren, Harry wrote: > > From: Pavan Nikhilesh Bhagavatula [mailto:pbhagavatula@caviumnetworks.com] > > Sent: Friday, October 20, 2017 8:09 PM > > To: Van Haaren, Harry > > Cc: dev@dpdk.org > > Subject: Re: [dpdk-dev] [PATCH 1/3] evendev: fix inconsistency in event > > queue config > > > > On Fri, Oct 20, 2017 at 04:38:57PM +0000, Van Haaren, Harry wrote: > > > > > > Sure, I see two sane-ish options: > > > > > > 1) Return an error code from get_attr(), which actually means "ALL TYPES". > > Feels a bit weird, because an error value is really a valid return. > > > > > > 2) Return UINT_MAX (aka, -1) as the scheduling value. Applications that > > use/care about the scheduling type must check, others can ignore it. > > > > > > I'm not sure which of these is the better/less-bad solution. Opinions? -H > > > > > > > I think 1st option would be good, we could use ENOTUNIQ to represent that > > the > > queue type is "ALL TYPE". > > > > Thoughts? > > > OK with me! > Hey Harry/Jerin, Sadly ENOTUNIQ is not supported on freebsd so, would returning EOPNOTSUPP make sense as it is closest error message that has similar meaning. I found ENOATTR in freebsd but that's not supported on linux. Thanks, Pavan