From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0044.outbound.protection.outlook.com [104.47.34.44]) by dpdk.org (Postfix) with ESMTP id 40E06F94D for ; Sat, 25 Mar 2017 14:21:49 +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=mNzBi6pXw2cQBqgNGtjTehjO4Gfb4UAuOI+vmLdO5fs=; b=dfdapdgGVDlTRedUSUcnEU0glVHZiqML4KyHcoFziQjw4uV4f4DLtYWWbgPxjEioWBN8LzCikekn888QEbAeIBltUUAYiFH2ATZ87IX/TWZH3fc47P0bJAnQpo7vy8Ph7Zn29YJ5e9qmou5SY+S74zeVlIqijw5wZyDzZzCF104= 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 CY1PR0701MB1728.namprd07.prod.outlook.com (10.163.21.142) 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:21:45 +0000 Date: Sat, 25 Mar 2017 18:51:28 +0530 From: Jerin Jacob To: Harry van Haaren Cc: dev@dpdk.org, Bruce Richardson Message-ID: <20170325132127.pkwobfcxe6cwi63c@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-6-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-6-git-send-email-harry.van.haaren@intel.com> User-Agent: NeoMutt/20170306 (1.8.0) X-Originating-IP: [122.167.79.0] X-ClientProxiedBy: MAXPR01CA0064.INDPRD01.PROD.OUTLOOK.COM (10.164.146.164) To CY1PR0701MB1728.namprd07.prod.outlook.com (10.163.21.142) X-MS-Office365-Filtering-Correlation-Id: 72e03fb1-bbfd-475d-d72d-08d47381e3b5 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001); SRVR:CY1PR0701MB1728; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 3:Jn71y6yi6DP73F10bem3mmHKVJANAPs7SrG7xfOFdo5nPXsNcIpUblPLfd+lihNE+qdtv1KbHsWcKgvNGBf34IoXBZcXYw5Zk6t1acuPAk/k4+i7G1R3UUIkRP8nRg9j/o/30C/XCYp8i88KOwtCYuf5gm3nHUVmL8MD7h9tWqYqBiJRS+V62fhNEMSvWAwlR70yMfvsMR3uu1k+StAvpxYwPKX5wpiJWJ7ddPLTcPGNbFMIZgjk9Hdi7BO989hakItRDY3E+JAOehjXasmygQ==; 25:S1BvkeyNTlcaCQAUfE7VtU2MgpBniI1EnKIOblZxk7Xou9JJW+FhNtGBzAjucvO3MxppECHZb6I7SvCyUGUxDK/HSOdmEk3XGLKmIzFgdHmf5+kSi3eSbgDXdyZK6G1/dlaGhsKkmNNPy7nqaw9pmpgZxJs0I7LIh131FUBucKrbv2CgTCKRg256YHsaalJmFp8qEDRVzv8bGP8TA+5++5+nRTyDuyKlBZ/GkH3bYMUcuxBdQ9eOfzciBmYh5essNOcSo39NjOZHJN4Lm11cBXG0ZIEVIZz32wqf1Xgmqo3JZ53VJ2WHsl9ZSdxeqfvTFEoFJduxzJ8TC3KR3f+nqn83hfVREMGDw12viXAD7gLj+d+Z0/uSGveeidzHaSWk+IabCVYNzvYpg3D5XRAGDSDVu65aERCjBoG2IWtcRrMg9W3YSsIGF2avDif676saiILJ2Nkxxjt6uvSYGDbbXg== X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 31:wgH9WAFUWmlmwnw8Rf8P7tONlCdIHKS+kXeOkqK7vt/L7+sSVIgx2UYF/4ps/QbG4xHKJ7wFWLai3doGkQ/QFm6N8fPTptTHZ+2mx0nIixvG1YeV4tKoLxg5K0WWFybpiLp4B2jmpBvbTDXT1ubUaqlPnOYoVpWSJC6klV0tprk9zhfSGabjXM2Nrf2xmepr6/R6kwaupnAzy5hJLfC2IF0Kt5WDlJx3Lc2XAfmXxOsMZVUOxcReAlwVSTBqDmApTUCKDD/b/zbjf65HA4qYmw==; 20:lJhyHC/nRrxOke24CRBcCW1rNIOmU5mVNy18w1hFPNsbaeCxKwi1FdnyrO58p97/hlR4WeqyZU+F6ybc/q/BUBJo9lzouPcPPSXz8zkkR7RSX2CF+ZaqljJTkiFV3KJACbfJFdvyu9e3OJkltUC5ZIb3f3JQkzd1ys4G1ApHw9CuA5n7tpVQ2yRhRdjBV/lHzVp8RbDuUu60cOw7cl4GgkHjNWzV6fypKy3OpiRsSBjOb743LvbwbVfsYr90VfrK62bTZzj02PlhGlqd2+2NPOwdLl/WhYd9vFzSICDtiFWsL/qoPtRYTuOaxmwsa/doPvqcJxKx2jY6yiVDWKpoPVWrph2AS4JJX9OjXRRCVXZYgh7DPf3aFa09VvBVcTNGNBMQO0ExCqHPrroohfQTzYE5eYzP/xyrGN/pFV46AI01emZgskfI8PVOCKFSupkLCFeatpz8BnoNL7xi1u3q/YPR7AYkZ/USMW1qauBhVZgFdNcy7nzgDpqQrHvs07UTEb219Pld252EgcOysd2eeJ7dioBz7sqJTw6AZgFhjugZ2Cwgcw5atZ/h4a1cOXNJG47+H7mTQqescVEOzxzmBuzBuvCOz1sS74/ON52ez40= 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)(3002001)(10201501046)(6041248)(20161123558025)(20161123555025)(20161123562025)(20161123560025)(20161123564025)(6072148); SRVR:CY1PR0701MB1728; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0701MB1728; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 4:eTtUXiMjiDqT+T/bfaTFWenEZLCqUNtNr5H7bgpVmat0E17K5vYTZla90j6DdW8Wfg5Rzs0MkbWcPjtvtc4JnNRTzmshfqfu1460G2ITYg2kDjBzIh9+Xi9RgMwfRJAeAaDxKBdwKr/OSGGDuMG54PyGfq+qO+HtZLgs1jgrn/8j8KeZyUB5bCA8Y3JzDPh/ftiSyCrZHN12rgYzOygN6cGj14RjKh9GXRsVKlmM8vhasShbPzaqwKQSGLb+mUzH3NC9+FvMvRD4vveDmAOdckx48TH7RSFYdDyNVjrVRjR2Ap0j3zzq5EtLGtD8DvomEqw5IOqD0vu1/p3hzvP7++uXczPqAIulMiYOzWG0ruFcp8MXwyGEheWLMSk+lroHGGAxowZPnDPbezW1jCREZTJqpZs7pv9oTYHrJz3mHQ/c4Dx2o/uUCozBY5Hp6JCVcHBrK4HZfPb3na42ML3SfEOaNzLCOOJr4KVJ0vYS3p/5U+zTgu5LU7FDkSiLDSw+h4+iaDCRLXeHMvxoNxwKWuUlLmtYAEsoUXWBkFp+8hLW12915ZVZcm3qr1jUD34pFygbIg+Fu4l/hkt4p5dpO2P6JWYW5miAY/Fzbi8zlwFJrEu6Am+UoA+gbjcoKvUEAFy4OEpGbd64lmTwtG1nPg== X-Forefront-PRVS: 025796F161 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(4630300001)(6009001)(6069001)(39450400003)(39410400002)(39830400002)(24454002)(47776003)(4326008)(8676002)(66066001)(55016002)(9686003)(53936002)(2906002)(81166006)(25786009)(42186005)(38730400002)(6506006)(6116002)(3846002)(33646002)(229853002)(76176999)(54356999)(50986999)(110136004)(50466002)(23726003)(1076002)(6916009)(189998001)(6666003)(4001350100001)(7736002)(61506002)(305945005)(5660300001)(42882006)(2950100002)(7756004); DIR:OUT; SFP:1101; SCL:1; SRVR:CY1PR0701MB1728; H:localhost.localdomain; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diag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E0oP6VH/eA4zKL1OSnO8980oG?= =?us-ascii?Q?2WBaXMOCfF++r2Al1pymOfyvHq4cabflMSCFCAp8ne4+vm3djvp+TIdTrwvh?= =?us-ascii?Q?TD4yqf3g31sVn76DHxx8CQAssM3Z9MbfLKu1jmMVF6Fetj8YjMAKE2/VsKx2?= =?us-ascii?Q?Fpo9omLTzhSBtS0xZn2+jV4MclWkUEx/Rf/FHjvw9I2GZhfB9CIUTOf2LTtm?= =?us-ascii?Q?XuYjw+Wg=3D?= X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 6:n9TDUBglKPQaUnbsqY7zedlBnFF1DO2wTcm1CoetXogHAx/R47wfNMHu+vMjqx+e//7p4vjiZ7ANUjaA8LK6ltL6+vrAEjN9jSdnlWF8IB/rkFwNQd+kS47rj9sVk63ASgLohAIMq/UmHK063Gk8V0x61WLKA3w8p1ZvNWbQT5a1ayKNkUjTyLEIiD5dk7GmJHy96xM5V7PNt/oehGjXDo8IdCYzFIanA5oEB1I1McdC8Ain9fCYnMEQ769ZH5TFAs9fZRHavwiJeVwNI3FnJAeC8VB/8jBIe5aLX0GfTexYi28tfqarv0q93NmuzaXpx+mQueU8pT3oixzlNE3xGGwecGRR2OZEO/Yknq6CbJiIhJ8E3DSJ6cVRRpW7dFHXi9NSMpBmwN2VFaFviD4kWg==; 5:XhPRn8WphuHUBz352jAvo7fUNcycMAWD53PwM4H5eFgt0tSTY2qaGgnS9E264cFApLkpAsxQ7lC49gj4Vdb3IGBWI7BVacmOmdHQU7knK6GntvoRtqn5T/kmy4szaeotozTeaJqVJhR4e7ltDiGZJQ==; 24:CrdvnkcVK+rbJuusZQmU5TYYnvkXWoXDrsjjYOqYO2hliuYhNiMCYf3Ge4vxugMnHL6u46G/GZSEPyiSVVT9cNcPXI3tgsubIv0jV4u7BZI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY1PR0701MB1728; 7:LOOAyCVPyC6FP2Lm1RdqJNeSSNEe+lDvRWgYw5poAW5MtxkaRhw7TbmWfidyi9aOet5bXfJvSCXrmVjadAYGZDIOU1OCQG8ynkcPTeEpRzDwdEKIyGWQ8yrvpyNvVDRosd/FMWupFdpF0nL4RVvdDfDP6cbEzjTGsc4uz8GtuiuY6P7CBcc6yJwT666Hb/4g3QISHvMLc9rhtd0ezMbuYhYJz7GDg+lkkAgbCfqfQ7vdPWujkLteWVEfcOpvva0xhx/S9C28UdrfzjrLyWhh3Vcjom1jXsJ4FI5m5zGbm3wcI89aHRTZx0FZ7RqY72Yv/ZiyezCEelGcU1SbKEoaiA== X-OriginatorOrg: caviumnetworks.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Mar 2017 13:21:45.9715 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0701MB1728 Subject: Re: [dpdk-dev] [PATCH v5 05/20] event/sw: add fns to return default port/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: Sat, 25 Mar 2017 13:21:49 -0000 On Fri, Mar 24, 2017 at 04:53:00PM +0000, Harry van Haaren wrote: > From: Bruce Richardson > > Signed-off-by: Bruce Richardson Acked-by: Jerin Jacob > --- > drivers/event/sw/sw_evdev.c | 32 ++++++++++++++++++++++++++++++++ > 1 file changed, 32 insertions(+) > > diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c > index 28a2326..d1fa3a7 100644 > --- a/drivers/event/sw/sw_evdev.c > +++ b/drivers/event/sw/sw_evdev.c > @@ -44,6 +44,35 @@ > #define SCHED_QUANTA_ARG "sched_quanta" > #define CREDIT_QUANTA_ARG "credit_quanta" > > +static void > +sw_queue_def_conf(struct rte_eventdev *dev, uint8_t queue_id, > + struct rte_event_queue_conf *conf) > +{ > + RTE_SET_USED(dev); > + RTE_SET_USED(queue_id); > + > + static const struct rte_event_queue_conf default_conf = { > + .nb_atomic_flows = 4096, > + .nb_atomic_order_sequences = 1, > + .event_queue_cfg = RTE_EVENT_QUEUE_CFG_ATOMIC_ONLY, > + .priority = RTE_EVENT_DEV_PRIORITY_NORMAL, > + }; > + > + *conf = default_conf; > +} > + > +static void > +sw_port_def_conf(struct rte_eventdev *dev, uint8_t port_id, > + struct rte_event_port_conf *port_conf) > +{ > + RTE_SET_USED(dev); > + RTE_SET_USED(port_id); > + > + port_conf->new_event_threshold = 1024; > + port_conf->dequeue_depth = 16; > + port_conf->enqueue_depth = 16; > +} > + > static int > sw_dev_configure(const struct rte_eventdev *dev) > { > @@ -116,6 +145,9 @@ sw_probe(const char *name, const char *params) > static const struct rte_eventdev_ops evdev_sw_ops = { > .dev_configure = sw_dev_configure, > .dev_infos_get = sw_info_get, > + > + .queue_def_conf = sw_queue_def_conf, > + .port_def_conf = sw_port_def_conf, > }; > > static const char *const args[] = { > -- > 2.7.4 >