From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0075.outbound.protection.outlook.com [104.47.41.75]) by dpdk.org (Postfix) with ESMTP id DE397F610 for ; Sat, 25 Mar 2017 11:50:29 +0100 (CET) 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=7U5ozicaCM2phnLmcW82YgDHu4wFGqRgRo708rT/h9s=; b=cXW+j9C+AXpzlKhUUTPIXql0E7WKvrgKlTp68k/mfbI/TF16x14I3044qDw7+mJBTfDew/vqyLgGVvRTPJ3ZicNv17kuSAunC+GgBF25HrBFd9EN6gMPney5ijTMMe63uHvBDr7wxEY0mVeOX8BzTtq2p5AH4im2e7Zpzt6S4ak= Authentication-Results: intel.com; dkim=none (message not signed) header.d=none;intel.com; dmarc=none action=none header.from=caviumnetworks.com; Received: from localhost.localdomain (171.76.89.237) by BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.977.11; Sat, 25 Mar 2017 10:50:25 +0000 Date: Sat, 25 Mar 2017 16:20:07 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org, Bruce Richardson Message-ID: <20170325105006.q6imciwupijosbvl@localhost.localdomain> References: <489175012-101439-1-git-send-email-harry.van.haaren@intel.com> <1490374395-149320-1-git-send-email-harry.van.haaren@intel.com> <1490374395-149320-4-git-send-email-harry.van.haaren@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1490374395-149320-4-git-send-email-harry.van.haaren@intel.com> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [171.76.89.237] X-ClientProxiedBy: MA1PR01CA0056.INDPRD01.PROD.OUTLOOK.COM (10.164.116.156) To BY1PR0701MB1724.namprd07.prod.outlook.com (10.162.111.143) X-MS-Office365-Filtering-Correlation-Id: 6a66efe3-2c42-4600-e837-08d4736cbf6b X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 3:QcOMGQhaWu4RXYfjcazualBCOX2PlHxn6Kx+Q49uFPu0C+7POCWsBaDY2be1z05FEmTlXImqNeZgXvFxH+lPnL7OH72ZXKXpu8iqNyQCt7CJ5cZwZZlmcdpuEjmoZWPDj3wUawYFYUtWn7eKdvKFf2QP/eEYbo3MAmKvh0VzrQJGoXScUr+OR2Ts64yV8p++LNK2kmhXbBwxyqRBndkXAPY3d+5eq3y8+oUTm4uYe+LO85K3MGy2iYSL8veR2dEQaXwKfrSbcPDx3t6vVPeITg==; 25:S+zHJ7rqBMyt3OMqLhZVe+13TGPr5GTDYyUV4vKB4cOXAw3v/TTXSnAigkkskGUlc/hX00kvN/aaEp/lCCsD2xi1zDYZqrnV1uesKcZ16RSBx/DzieFJ0W2rhImPhEGHM7MgD4mn061PwSXw552b1X9oQPNIBDqLpMmxwx4y8dSxAbGcB2dxYJFYEAnFP7G1YmThuRDCDMUnLBd1ToLnsr+m9weACxnp/KMM1kAnApi5rkZUJsVjiRJ71MMfrD+4L1hh4OrRGZ8g2H6pBsosB/okjIIJopOCraBBjrMD6EsGr7vmqd2EWAYQY44BpyQQXHhc4qEAOCbd8S/NCBGFSkE6VXX4cQnpfTr59IqZzfjqgcnn1WtUJK8UDQcjV40AemA4y/6Eeux1gEzgx3oN3yk90tuvfrgJKQh+GWBnHpoCuSHEuy76EPvFjZbX7BJYOnV7qJI8glhuzYs1oLYqcg== X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 31:9+dqcgGtb0Pm/KbAGy2GomLHBMjZf+4WBpaHFNx9vRbfVQsN7MSPU0rEU5RhH79MqBIXbVRPnXA7MfES5/P/CCDaE9a5b7wGAv6r7BzYj6EPvuPPxTjOf9612VcxVct4MPNoCjuOUb8rQW89ab6hfR1sKoSxntKG+Kb6hOKgKQhxuKeban1Boxk5PEQuYzSYUrtblWCUNuH8UL9Tf0pw98vgHi9zNnLlqBr5GiMUpTaQygs4/IcZAwjJpOohMl+oEy1XHeLEJiA62EowmzRUeA==; 20:BlfMsWY9c2PbZDgUq2YdekwPn4mDuIrp3lBKSP5WHUSS+AOD5az8AfFlLuPx7xFqF2jciDTmRIkfuyBajWwI+z6+6SmtU+oBZfolrHnS1e1zHjWnXQekosAqx5KSe+T8lds/qqRuPGrRjSUT34DQ1eBw4bl1gEwKPzfG5uDh36yJF3WJiUqr5Whvt0npF7BrsGqTbJ0qN4Q8BmyUrhQmrGyQjuh0d/tCsVXEI3asLI2iPG8ifz0Bk/5cjjqWy2/1yqa2y1rWKE+uOBuClHSvUYV9Pm6kVvQJCTB7TPp1KVTYYuM3EQmL4HyQaqnIqmjXW8brXVJl/9d8ZRO+Q3FBpA/e659ETCxpLcB6mai6gKENP9LEbqMkxq6rPqG7vA5GpLrsb8WYIYIwHwjGBKm4FLJ2DeGXcuKYrfMgLfBHBQgSzXpmPuAlc7r7Pgt//qPjmw+G3wDFLiShNZsDGTFMJSvGzxl+uk5vGQoD57QtF4To8lMWmDNA4bwWZ72b3Y0II7khJVUbNX2GHlT+icLpkKHkUh/cilVW6xKppWae/FfeXv04K5p1OJjc7w2zuXyHcWxZtp8bEN+DkZBz13fcCdzL8B5+WSiij1NXheNeNlI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(228905959029699); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040375)(601004)(2401047)(5005006)(8121501046)(3002001)(10201501046)(6041248)(20161123558025)(20161123562025)(20161123555025)(20161123560025)(20161123564025)(6072148); SRVR:BY1PR0701MB1724; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1724; X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 4:3JCu1uJqqoriUwBLCn5FXsmXHqIL/UaXSmBcnIp7u8rWD4Z42d6e1++p01dHg7DNsDc4bgAKYG6vrKcupfvV+4z+0DxboHKk5/UJyYp70E2b70K8SPEhabPMSOLQZuzJkSwT6rlQRtRY/CMi7YjPwkPAGFdWwWYaE2OLwMnRr5hqVnGvaARHFPsAZ7FDPmnq4f/fzbdSh73Sce1Y5fDx1mDkpubxPudc3de7vycHlSP4b4amS/3+ufkzBRKY8BXGSVQBto13BpphPzu9FHycTE42djMHDAiPK7mOKonBvIFhs7FIv5psJiH+a49tB0JZbU+QI/9kcgNcJeOBM5rSm4zYwHrmNcO4vvbp9c5SJlHd3SKupH9vLQr0YAyxEweAs9ugXNZbu5NTm7AVKBRAmA/vcesLPLAwkRui5uKzPPM8+nZdlIVO+KEktOMzeQohJVjxWaDWKahsMpkye9An3qxbulmUSsnVQXWAEFltErEyZkJfXUiwZ69m3coIPLsxw2B1UvfqgcHlAktsmDM3xQR8b/VFB7aqy0SrcvJjWkpDNF3RZcZRHkFo4/GcqDuVriInLNYXMHSyH/O5JHIXKgSd8av6G8NZbhQQP3IqlkqUDUk8aNMHMai2TGHcD0w3Oq2nR/8cQ/ApPQCBcFtuUQ== X-Forefront-PRVS: 025796F161 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39830400002)(39450400003)(39410400002)(24454002)(5660300001)(2906002)(47776003)(33646002)(42186005)(4326008)(66066001)(61506002)(23726003)(3846002)(6116002)(4001350100001)(229853002)(6916009)(6666003)(76176999)(2950100002)(50986999)(42882006)(54356999)(6506006)(25786009)(55016002)(50466002)(189998001)(81166006)(7736002)(305945005)(8676002)(38730400002)(53936002)(1076002)(9686003)(110136004); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1724; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?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H6BO5Z8+0VYFlA?= =?us-ascii?Q?y8TETZ8MD0UkB7ZScGdABO7L0NlZI/KGGx86Y+X4yJ2fNoOqWHHVjbuH/js0?= =?us-ascii?Q?3xAcMmWmiXdSpadMK1OFL+HIyuvJXY+lS1en6s3BynIKX+w2o66SHixv8u7w?= =?us-ascii?Q?zDfpSNo+a+5lzYk5mRoD/5VU9RNj+ylaN7z2IJEb81fnEIw=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 6:gfZIG1GSE7J6eDj50L/JylSDDFLuHjAdQtRLn65ZTzG6iDwpzxrJigkFXv728Pqa4IWhRpeNeRRMLfyK0fctOQ/pmBgGDbu1QiCQfb6ojFQTZpDtu3tLjdD/j32HtcDqw7aHviuYf6r+Bmgi3g1UPYDDueY1FBfAl3TuJPJdq0rnYngIqeu7V8BhCRHe27lQYvsvGCkWlIX7X0vx5p+U1cBBqh+aeUU8RkXKEEbAhc9QSOax95niTaXjgi0qsjvaO5uy/u2G76H27bIjRyZZrOcXbAXhwcLFk3+WwLzI6fC3wdKrx3sccww+Vc6kvg2hwxABJ/k8NLwJyC7P2dtf275FaC0lY7NL5ZWQfVWDsIe0PD2liCbN08ScsobdEAGTjUnDb8iVZEkHFi8irxw+4g==; 5:DlHkUDwBwjB1jcp3xYuNojoKK3b3PBDTwI07fFPDv35To4yvSVwKDSwADTvmC8WqJ4oFcmJDl/B7/efx81IaRAAvzmyl2m1YGKUhDo0hSat4r9LwZpErHbaoMsQbFAOypbKrXt6Ma5N2Bjlr886+GQ==; 24:JCIVZVP0F/aslzTG5vM88C742vYMBiAmxzT6oFa/RZ42c8mfhXjThpj7hPITwjTW7jEUPL1QzE1vHYPhqMC8245Ma4U3AgctnzDdMZepCzw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; BY1PR0701MB1724; 7:JhkmVxd8S6qdLn2vHO8suB5amxPndjjpOR4xBs+7iT1nJKyJ9PQB3LdZVGWa6hHbEr7S9X0El0XGzUoPFoFVLVCCDetIrIklv7A3ICAO75i3VurHcA12LKrfcZGqVsTx74mCLOC8F8ITKWXNN6LaA7c1pFjgzqiJY+pMABj/TPYSSbsVfYX+A5lxS3IomH3hMXskt+evOWwQVgZn/P9+3bkt6Fs8cVKtLUty6uvk06rihCAXoyu6oXOuGGolYV5aCG/ZBDRUyRC8q1tKCWisGnqVZSE0sUtHvtB+ayA1q72rnB49/TRiDHAesK7o7exVMBRjByq1bblnuY+FzUV7Cw== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2017 10:50:25.5842 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1724 Subject: Re: [dpdk-dev] [PATCH v5 03/20] event/sw: add device capabilities 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: Sat, 25 Mar 2017 10:50:30 -0000 On Fri, Mar 24, 2017 at 04:52:58PM +0000, Harry van Haaren wrote: > From: Bruce Richardson > > Add in the info_get function to return details on the queues, flow, > prioritization capabilities, etc. that this device has. > > Signed-off-by: Bruce Richardson > Signed-off-by: Harry van Haaren Acked-by: Jerin Jacob > --- > drivers/event/sw/sw_evdev.c | 23 +++++++++++++++++++++++ > 1 file changed, 23 insertions(+) > > diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c > index 4de9bc1..9d8517a 100644 > --- a/drivers/event/sw/sw_evdev.c > +++ b/drivers/event/sw/sw_evdev.c > @@ -44,6 +44,28 @@ > #define SCHED_QUANTA_ARG "sched_quanta" > #define CREDIT_QUANTA_ARG "credit_quanta" > > +static void > +sw_info_get(struct rte_eventdev *dev, struct rte_event_dev_info *info) > +{ > + RTE_SET_USED(dev); > + > + static const struct rte_event_dev_info evdev_sw_info = { > + .driver_name = SW_PMD_NAME, > + .max_event_queues = RTE_EVENT_MAX_QUEUES_PER_DEV, > + .max_event_queue_flows = SW_QID_NUM_FIDS, > + .max_event_queue_priority_levels = SW_Q_PRIORITY_MAX, > + .max_event_priority_levels = SW_IQS_MAX, > + .max_event_ports = SW_PORTS_MAX, > + .max_event_port_dequeue_depth = MAX_SW_CONS_Q_DEPTH, > + .max_event_port_enqueue_depth = MAX_SW_PROD_Q_DEPTH, > + .max_num_events = SW_INFLIGHT_EVENTS_TOTAL, > + .event_dev_cap = (RTE_EVENT_DEV_CAP_QUEUE_QOS | > + RTE_EVENT_DEV_CAP_EVENT_QOS), > + }; > + > + *info = evdev_sw_info; > +} > + > static int > assign_numa_node(const char *key __rte_unused, const char *value, void *opaque) > { > @@ -78,6 +100,7 @@ static int > sw_probe(const char *name, const char *params) > { > static const struct rte_eventdev_ops evdev_sw_ops = { > + .dev_infos_get = sw_info_get, > }; > > static const char *const args[] = { > -- > 2.7.4 >