From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0066.outbound.protection.outlook.com [104.47.34.66]) by dpdk.org (Postfix) with ESMTP id 17DA21B2E2 for ; Thu, 12 Oct 2017 15:16:08 +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=LKO0Jp5Re6t0EvSKoWi74/3/HR0kHLDcHpJkcsg/zhU=; b=lvRkLg1Wl623p6d3/JEwxWA9n/ArNgq5ssSVijlw2THpyZoZVWzheX0f7OH/dfMuBQ7nxm/MxcswggA0oKH8y0nIww9RJWnDsV4f6LXQzKP79uWpTLOjQuLQw9KLO7sZC7MqJV8UM/4vpengaSYD9TxWuUMnQPY9cELz4mMEu6Y= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Pavan.Bhagavatula@cavium.com; Received: from PBHAGAVATULA-LT.caveonetworks.com (111.93.218.67) by MWHPR07MB3471.namprd07.prod.outlook.com (10.164.192.22) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.7; Thu, 12 Oct 2017 13:16:05 +0000 From: Pavan Nikhilesh To: jerin.jacob@caviumnetworks.com, hemant.agrawal@nxp.com, harry.van.haaren@intel.com Cc: dev@dpdk.org, Pavan Nikhilesh Date: Thu, 12 Oct 2017 18:45:46 +0530 Message-Id: <1507814147-8223-2-git-send-email-pbhagavatula@caviumnetworks.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1507814147-8223-1-git-send-email-pbhagavatula@caviumnetworks.com> References: <1507814147-8223-1-git-send-email-pbhagavatula@caviumnetworks.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [111.93.218.67] X-ClientProxiedBy: MWHPR12CA0033.namprd12.prod.outlook.com (10.172.49.19) To MWHPR07MB3471.namprd07.prod.outlook.com (10.164.192.22) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 93ed8899-69f0-4bf0-9324-08d5117365be X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:MWHPR07MB3471; X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 3:qO1tdPluiDLDxJs4bo3C2lQj5wAKFnH0svnIp5lDWioKxdHw21oGaBhIlabLA1N8NmsL6kIl34SQlqRCIy35dBHeebwpDaHqQCa/EPXvzsU8nqQVEb5WYjYRoky7WmcvwQTFKC11Q2GZEZzMAzkiFN5DAn3j4jI4aPVTyQ5KH20+Sa4fGUIyyhzb4PxXfICv5weyA2c5qvadSJk82GNldgD8o7a9f7hmXBphHoqUvOmazMj0Z87uu4dv58PruKm3; 25:mkFEvxdhPTuPZScmWnEo+sKMs/uS60PoBfK381KSRnBsgdn3apoabWGXaFNzPuQ+zqFxt11UqencTqF07fsEIRysM/9P+crAb2BbrR24zroHifEBjj5wVlSGMD6f4MLpMkRlW7c0anMYZ0R7AM8U8mp8q8ej77GEjs7vpotCSIYHW0l0uQwyM4Vqvq30FiaFs/HUFkyEDbLGE1dHeXz3UnNX7zoguYPUeVLF7FH/BraV09PZrLCb0yYW9FoVyo9jNv54FsSittFGKuYlC8DrnC5Ms/WCGbPz8p13102IZCt+qeaIE49bqEKsAzEW80PuKSQiaGY8JpVA/Y2zNrx11w==; 31:VNEWFhwahBXoXVI3R4QNEzQmFbIBS+DUKXjqNFWPjUPjKUOHBhNs/DJikSjZtPAgM1B9fzA2ORYSP/+2fmTbKTw5GAGCm02dze9/bogfCujLOqeYnwAYFpY07Nr5/Dmt9M7JGCOxvRrtTYz3kALQW/j+ItnF4voNZqhUxKylZ9Wr3SczfD3y/OUspZm3jTyP2m9hgYgkF0fJZqmJIrAHHczL1Pl8jka4IUv+RHIol+E= X-MS-TrafficTypeDiagnostic: MWHPR07MB3471: X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 20:TVigiU1NNCXmR7yOU55S3QE+4WSOxx+9mKcln2sRAVQRph8pbPX3qm1r4fJZ4bBEYQZ8y78mTw+aGUj2Jzc6XCs+B6CKm16PO47H295BsunGFzJouhNaRTUHmPpxG3cxJ216+MpHaiqjCZu3lAImGPxoUkCt8l1+pliyfKiCxxyNdAccImJtPa6lzBHDsLKSbkeI3m1AMMMTCdT9QMmqXG5O8fexbRotvY+LeKwwMlTXhk/+LC61muPjhkYN5jOymell/qHplTzf9i9PvHH6LzS0881Hnk9+1Dnu9TibtcYeog2BUrDCgodJmVXCbAyjuHB6Ad1bnwXcL5lG6iMh9E39qdDIFGWU5YNNKCmnMaNUDq6eLV8p+hf7cc/QbGZyTRGNgAUo3k6G+ncX+pch2xGWN+BUwPxk4X5RFWG635xQ2P2qfWrQA6C/R/s0jFeo9jeZoxLE9Il4qpIuREm2gtvbKJUocMTkOWmIPyspXNM0eE7I+t5YPNK5PLTm0Y550qTDGFrvAdnT5EjYhYc//EvQJZo/oyJdntCwZf/Y6qWEqCqyHI//yvV/U+1d2g6aeLD16DZBIa3MG3/StOPCd/x+v/7Xm2MC+j+xdZexfu4=; 4:jSN1b3vYsJWQXcj5YCpvoKpEkGQ96TihSYOK5vyR6NTnoM/Z76cwdaLogUhs0FGrd6Ay0CJD/DIiYX8+7pACWn6+c+JWeTpnMNsOPiuvlXVpQnRF81sLlIqEbSaVQHqD+PqeEXpkYlO8F4REFJDcuAI3GYIug6WgmFk5ehFjlemjtzk1UNx1ft1H2AXF8Mq4nieLZuwWZnoRLxfHx5aXIE7jjJ7uXZaaDwB+u3hvvtobuF1NxsWinFIIwd5iUwJH X-Exchange-Antispam-Report-Test: UriScan:; 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)(93006095)(100000703101)(100105400095)(3002001)(10201501046)(6041248)(20161123558100)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123564025)(20161123562025)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:MWHPR07MB3471; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:MWHPR07MB3471; X-Forefront-PRVS: 04583CED1A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(6009001)(376002)(346002)(189002)(199003)(8676002)(5003940100001)(81156014)(69596002)(105586002)(6666003)(53936002)(42882006)(2950100002)(305945005)(33646002)(106356001)(66066001)(25786009)(8656003)(7736002)(50466002)(48376002)(53416004)(47776003)(8936002)(189998001)(81166006)(6506006)(36756003)(6512007)(316002)(5660300001)(72206003)(76176999)(97736004)(3846002)(6116002)(2906002)(50226002)(16526018)(16586007)(478600001)(4326008)(6486002)(50986999)(101416001)(107886003)(5009440100003)(68736007)(42262002); DIR:OUT; SFP:1101; SCL:1; SRVR:MWHPR07MB3471; H:PBHAGAVATULA-LT.caveonetworks.com; 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; MWHPR07MB3471; 23:LmsKfZyhEAhuFsj07wdo4mOYn+y9XJLaMpa+xtZs8?= =?us-ascii?Q?mVDvfK4ik3Cb304Ww+8q0U+26AS/VraAdbjsaRBxEvmFEcuh6BAPAyFu6J+i?= =?us-ascii?Q?R0M5wFhGKhBDb4/ST4lJqW1fgxmFCxURpAYgrevjwWu7bCFMHCnDPmaJukvb?= =?us-ascii?Q?f/3Llg78JG7Kun+3QubLnZSPKCTAXdENYOo9DntyUoVx06K9QuqJuIleXtKV?= =?us-ascii?Q?zA5BAa0w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I?= =?us-ascii?Q?/TGkeBjL78BRADy5a8V9GRkWSIoCbQ2s5YxlmAmowxUFuMjexgdTK5mexr9F?= =?us-ascii?Q?zFQWg2GMwvixWPw+B7YNKCoXcPN78er/3h+?= X-Microsoft-Exchange-Diagnostics: 1; MWHPR07MB3471; 6:cZMAlARWtuV2z9ys4hcuTRsL+QJzLUy7mpuBb8ENvL/ZIfL7fi1XHcn5HZKdSJnN3btunrxrxh7ZZSL3hzR3MI4xCmtYRWoYTu885kDH2sCFV16JwL1yRBz/D4YgeRnJNtEPVjjcvJPqGa5zjE53cGBOh9D2v3iI9HQ+ggY0PCtRXqpe3eRXV4e6zZZMtlyNuD28nIWW5It3gK/lwHN1SoJtStQYPOArZu7NE7qEp3YudofixGKdJSblzuZA71XdSVBU3T4SCgQO3w6IxE+2ebpnKILU3zbgzOjoPcfMRZyxG0O3kuvmoD9VttaxVHjRWKWm+2THfqCnR+oDmYHvTA==; 5:TfzskwNIipTO+bumtTTauRywolEZg1T24/nMzyghkyTw7OuTxEZKrCWpz3qWkeAZrBOGTXRcqXAxQpD9NqrpNC7GQ+ZPm4L0QRBvMdY8/tOTiiPol9TQQMZ6m/wZFna30Xq5JCWJDunj+zq+vk0K3A==; 24:EHzqMQMfeRwJQG4gSsN+PLMtQCsLl7cjRRzq/rb+YiwAniS1dlwoaJ4YGBsODah9TLHTf5G2toXzYwpXvWVUOg+0wxUutyxZXzzYuVVtXXc=; 7:bRouio27DaA0TDH+y+jchJBaj5VGr5mtb4BnUUG8a51wdofyEjOM6T2/7xNriiGxaBFKUfMssV094Kam2QfNYmwzOxTxzADMd+26KcGq33+gbN5BOaLs5nAJTpzPVXIeTaZt8hbTPd9JDFrLkuwLGlYQbW/soWkix2zGovvMntPIP99F95yA1lFt6r9pHAWkeOAqzfpzk0ppYFctqlnpLgWmWFuGaSO9UoNgC/fX9g8= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 12 Oct 2017 13:16:05.3067 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: MWHPR07MB3471 Subject: [dpdk-dev] [PATCH 2/3] eventdev: extend queue attribute get 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: Thu, 12 Oct 2017 13:16:08 -0000 Add schedule type queue attribute so that it can be queried along with the queue config structure. Signed-off-by: Pavan Nikhilesh --- lib/librte_eventdev/rte_eventdev.c | 3 +++ lib/librte_eventdev/rte_eventdev.h | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/lib/librte_eventdev/rte_eventdev.c b/lib/librte_eventdev/rte_eventdev.c index db96552..bf2ec61 100644 --- a/lib/librte_eventdev/rte_eventdev.c +++ b/lib/librte_eventdev/rte_eventdev.c @@ -809,6 +809,9 @@ rte_event_queue_attr_get(uint8_t dev_id, uint8_t queue_id, uint32_t attr_id, case RTE_EVENT_QUEUE_ATTR_EVENT_QUEUE_CFG: *attr_value = conf->event_queue_cfg; break; + case RTE_EVENT_QUEUE_ATTR_SCHEDULE_TYPE: + *attr_value = conf->schedule_type; + break; default: return -EINVAL; }; diff --git a/lib/librte_eventdev/rte_eventdev.h b/lib/librte_eventdev/rte_eventdev.h index fa16f82..b5cc29a 100644 --- a/lib/librte_eventdev/rte_eventdev.h +++ b/lib/librte_eventdev/rte_eventdev.h @@ -632,6 +632,10 @@ rte_event_queue_setup(uint8_t dev_id, uint8_t queue_id, * The cfg flags for the queue. */ #define RTE_EVENT_QUEUE_ATTR_EVENT_QUEUE_CFG 3 +/** + * The schedule type of the queue. + */ +#define RTE_EVENT_QUEUE_ATTR_SCHEDULE_TYPE 4 /** * Get an attribute from a queue. -- 2.7.4