From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-DM3-obe.outbound.protection.outlook.com (mail-dm3nam03on0068.outbound.protection.outlook.com [104.47.41.68]) by dpdk.org (Postfix) with ESMTP id 8F10BF618 for ; Sat, 25 Mar 2017 14:17:30 +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=A+t6x9V/A8MeBcPvA8CKSaJ8zKitTPzG612Spfzv3kw=; b=WeqLz3IGl4cOZJOGVhb6IArwFpz4t55RG3aoJHvmN39FyR++SQL4q1LNhfBs8Bdr4bUYVubzHCO9MPTh8L/leWXsv5kJFnIOl3LaT5mXmOGCy1QUI/8nfooUSVy/527gbB+hP8RmN33FdVIwtDnG7pYkR5SGJveRTda2FfwfrE0= 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 (122.167.79.0) by CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.991.14; Sat, 25 Mar 2017 13:17:26 +0000 Date: Sat, 25 Mar 2017 18:47:07 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org, Bruce Richardson Message-ID: <20170325131706.qbuth227v4tczrxv@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-5-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-5-git-send-email-harry.van.haaren@intel.com> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [122.167.79.0] X-ClientProxiedBy: BM1PR01CA0035.INDPRD01.PROD.OUTLOOK.COM (10.163.198.170) To CY1PR0701MB1726.namprd07.prod.outlook.com (10.163.21.140) X-MS-Office365-Filtering-Correlation-Id: 2e5f7253-a0b4-4816-e952-08d473814939 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 3:Ym02tChFspElQa5gdv1fl57vTSk9Sf3GMGverQ8UAgR6zfoSxRck1xU2HZScTN4XMDKVmdzO2GmQN4/BBzq8H9rM+cApuuQYkwHD+d+GqC3gKGCBtkjGWKK4yFcwYUD8S8HrE7XtNoq3U2u+pi1xfkk3utMWYS6WL9M8acS54jOTZdsqC65jJ+DNX5xpJch+7fqAk6WBop4dL4xm9H/awe5jNK03YBLM/ww+Y0RVKO0qAltKRVv/CrzXcLUq4tmxVeHjr5xNfi83mMPCwEvw9A==; 25:Ml3/TRue8CKeHZr8xf8P6kxyp4/abWbyQYkBaUFahjlH5ISOLX33dAyZKborvXgu5rFeg5b+dlo8ugvCcpLCcU/aQERPPbVi59UgSZJLsEXk60fFBSt4PTrBNpB6mLMwyFFK6rE8Oftj64L4J5lOn6OAthEhJvylUHOYTMZPkp8GodKy7GCNDqb/hUbW3QqNL3ck60emsJyKvId1I38BnsrHQGKQkM9cKZXQuF6bcMPZOI+M2uezTfb6gQTWpWr8zBhXdI1RE5UVRG5Btu4Moa+cP5YraXNEe4++809bY4bOfzn1ZgotRZbOsO8WBKXgm8FG6ROg+YQ4TEOlYAJlTmg3bq2Wr6Nc6s9WLXfznDaTuNouEn9R99xCi3DUV8y3A9mhBvW02T9nseGlnsp5ZyrianBDSSTYmruJqdmesYhYZFNcSK2PMHsv4fMiN5T4TPsN5Ksj2HhAHpTqKDwgxw== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 31:ABw0tVAQMdbVAjium8rXM5nRHm0Bbb4vEQjydt/DQDWHBnVFSpvZzT9QVJwrU7w+CXHyzXsM5q38C3+p10mkCuMyoDdZBfMFxS/7ME/E1c5zgzHn0SOUVfjJ4BQa7zyGOzHnZBVauJ3JhmSDJgIbhTn846hLeakyNbG+6XWKpYn5wBRlPfh5V+ZBgDHb/FFokhemLY2GYBBRxB1wnxg/uxsbyyODCXaCIZtK5DvkD//HN32MRHOwPT8xw9PhGvsZaKGI1v6ubeeUJBGr/tWPdAWTpHC7OqJCr1unFzuZF7E=; 20:mvcHQrTDqFVc39CtMV5nBOG43UBfKcZcqfk5GqPRCAhuhe6hawh+K/By67E/N3xEJ7ixxhW9LmG0HOXqhc2OYsWrWTM6JIMPAlvU7Zc3VLmGuwTgI+3QZtEa3YMHy9MoHfIhvIptgqXgKK80BU3Uao+wVX0q4BjS7cSb3sOkU0WEj/ixaDsqglhcNeG4OMiTA9oLYBMw/OTwDU3hJvYyYGKHl8+BxPuQbga0QrrDqvaLWrbPWqvyA3F7Fa6lQ7iaIWBXlahZmqzj80MIx1SBy88Ri0566IvwxGRda/nXzjXEmjdqTrdRFzQZ554WpivI4CqJEJTa1tKeJxHNyt/J0aDglTB+0Wjl5Hz08uWLvlnsmxt3NQkfbeie8tNljsHHuHD4H+B3cuvpv3xu41Hmpj3U2mbU34WOVm9JIwFZ96miizC22DFFYqvYAjUvSH0n+A6Tmt3qHAIPc0RxieS18zK9nJ8wY8O90wFUV75HV25k7LjLurlGIQlNtqW35Q19bW3Xk04s37USCxRy8HaNHOZ/IKZ8PXk4uN/MpVjjMGC008J2iFQxYTr7rC8MBzo32vwHw59ojb1huXU70n2Jq7XvuhjzlEwjW/p4hVX7dLA= 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)(8121501046)(5005006)(10201501046)(3002001)(6041248)(20161123560025)(20161123555025)(20161123564025)(20161123562025)(20161123558025)(6072148); SRVR:CY1PR0701MB1726; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1726; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 4:GJoGjDg1aZv2unoFzSCKsnuuddurJEdTmMPAyLE86csos51kfKDUKH57s53LOxEr4DgYED1VJQDImgTI9caU0U8DiR7eqjoAag9ctS/BcalxroBeJTUAdlM8vPQroG33+A+bSeNWJV8pHRyEEINSlIZpNle7vzc0/zzhDX6IP9a/r32j/D5302SkWygCO1gUoCNrvGNVYp5OQ+Ovvw0K76nMYjMudV5eZngkjmE3m2f6SP4z8DFGQpwJzvDF38GcDirJvdLtVMgi35B+GWkn4EtL2gvKt1sLpYn6BpOx3nHE88d2hyFQt+uj7UNkU5pPORQ4BySbeA8j+sNcRSp3L5PbrkPKqrq0/9VJDRoPIiFxfdZHqqkgNezCFGXvrgfulK31NW5LYj1VlN0gSRyfCMKGFI+ma2DZLMFTB9SyvFnZjvpUmDzBzCy+uL8apVVuk0uIc/GSJ4KxiVqi9JEZLgC0wQ/TM3KIa7wCqX2B8hone6yIIVlRkDbhqMVO45mlaHU6QeASsOqb3y93EsXnez1F/bvWwL9X5k3n2ZY/xcxf3CxlIfe7I4zapXv3EPCPlvGCY45A/mGRG93QUMFHhM7CZFJqmtvT1HgraFCW2zdhpsq/AidLSv0NRw9TtozcEvM+W1Nc4XaJTVgGT6JjBg== X-Forefront-PRVS: 025796F161 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39830400002)(39450400003)(39410400002)(24454002)(6666003)(7736002)(42882006)(8676002)(81166006)(6116002)(2950100002)(2906002)(3846002)(6916009)(305945005)(1076002)(23726003)(25786009)(110136004)(38730400002)(4326008)(61506002)(189998001)(66066001)(53936002)(33646002)(47776003)(5660300001)(42186005)(76176999)(6506006)(54356999)(50986999)(4001350100001)(50466002)(229853002)(9686003)(55016002)(7756004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1726; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Ex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RXKCMWkJYK/qWYVMW1Ig1jJTsrQS3WM4MWbXWse9hTPP6Il?= =?us-ascii?Q?UAgUA+fTiStUT62bPX+ARrzmp175w+Idgngc5lNoKnFSlLRxDJZFrZxAR9QP?= =?us-ascii?Q?u2uJN2oLEJAI8UFv6yVfaqreN7cEDkgh6QphgwpqFRIqmagoLRZ5nWqjjh9t?= =?us-ascii?Q?L2a3UP8bq4iFp/xa+Ti3ipVuJPRXkgxxSCQ2ZbNRsXj5gJ7dZ7Z1fnePL06+?= =?us-ascii?Q?mCM9Ph5A=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 6:Ulkp4RQhidSZmz2/IwRG8Dd6O/AQcSAa5gJLjqoKCmM/Sa8eBp216r/KAV5oCcTwKIH4Ou7cLgHRcsy30xnF5GfHVZUBHYgwS9g1DT8COxT9KN5P0PvwIpj/KMZdW3mVFXP2CuU9Q8g8kI3yCNsI1QS8I/wnHvrZ77VQkS77dtWQyA9DkztapD+KakY/PfHHRrmNI1vytHwze3yrJFaX6wFjybqLc+6F+DeX+lXyLI5/NXbsn1FwH9OGJsmYwDHwferUTzDOr7UU9EKRTfPq4enjDUmpH3F35uA7yHXWmgBqd/WxpJJ6XziBZikeixYUUOxBlqLsV44XUv4Xf2skqmvpZzVOaGT7LoBXw/2ip3WlAUWJIoOAnFOquycttUz5+FndYUaNDaYjzBE0URXEzA==; 5:hGHvHToeBPnV5XEoN3yi4WU+ItZs8sSJmJKv8Y53X4nj3DjbFRr/V3YWkwMJJCx/g2gKqxFPS8q6/voO4z/Ld2OB/zbf3rWsYiysFiAeYGY51D0vDtnFzbUOupf7tMj56swVPgAmjrL+XlCqSwrZow==; 24:cM1os2loThsL7utKlyb7RQz1dRH9ogif/Y2yWH+SQL4hbe29t0JRWKse8LNLktaUOVYrZ7IjkOSaWT0jC5+faexGrkIE0Sn+kA73fodgtQA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1726; 7:bMxCHRu2VZb/pCDBC5kbW37r/la/NSZD67zfI5y1iB+4cGpGdxKbE+Zf9g38Q9xJZkmo8M0E3Y8ratu7x8fra0fsjR9N/nCrkpYy1UwHtfEFL8I7FcsSODbcItvKFt5Y7TTQzhsdgOMrRCV4tXclp6arGbyB4uSJIWjbSmaUYDE7hiA8Ht4USjF+6KK2Yjg2XT0snY9I2zNbPPxn4uUSBDkIG2DkV8V063g1GLKyAXtg+tyaBHVzghWWXhh61MPF8X82CtoLYgmQZ9I2kTtgEXD8qP9rcg0JKpkZj7MHB8YotyhoygOqtZriCrq9e9siuha/34YQ0kqIhbm3FWkMQg== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2017 13:17:26.6026 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1726 Subject: Re: [dpdk-dev] [PATCH v5 04/20] event/sw: add configure 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 13:17:31 -0000 On Fri, Mar 24, 2017 at 04:52:59PM +0000, Harry van Haaren wrote: > From: Bruce Richardson > > Signed-off-by: Bruce Richardson > Signed-off-by: Harry van Haaren > --- > drivers/event/sw/sw_evdev.c | 15 +++++++++++++++ > drivers/event/sw/sw_evdev.h | 11 +++++++++++ > 2 files changed, 26 insertions(+) > > diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c > index 9d8517a..28a2326 100644 > --- a/drivers/event/sw/sw_evdev.c > +++ b/drivers/event/sw/sw_evdev.c > @@ -44,6 +44,20 @@ > #define SCHED_QUANTA_ARG "sched_quanta" > #define CREDIT_QUANTA_ARG "credit_quanta" > > +static int > +sw_dev_configure(const struct rte_eventdev *dev) > +{ > + struct sw_evdev *sw = sw_pmd_priv(dev); > + const struct rte_eventdev_data *data = dev->data; > + const struct rte_event_dev_config *conf = &data->dev_conf; > + > + sw->qid_count = conf->nb_event_queues; > + sw->port_count = conf->nb_event_ports; > + sw->nb_events_limit = conf->nb_events_limit; I think, we can add a check here to detect the unavailability of per dequeue timeout support in the configure stage. if (conf->event_dev_cfg & RTE_EVENT_DEV_CFG_PER_DEQUEUE_TIMEOUT) return -ENOTSUP; With that change, Acked-by: Jerin Jacob