From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00055.outbound.protection.outlook.com [40.107.0.55]) by dpdk.org (Postfix) with ESMTP id E3B8B1C48D for ; Fri, 6 Jul 2018 10:12:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nxp.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=2tQbmhCMWLDfLtddoc4xK6UvltCkAB3EMvu5cy5LNPQ=; b=IHExIJOKd8DQuwIzVFTahvhDkWtmwy2+vqL0WIHeGU6fDH8OmlHz10fl5GmNZd/ML/0Vxwdi8I1OFeyu/r/yYPL1hhlj+nyBbHMOcKEkpAQsWUM5nOyU2vHDqZNkIyPGfjgezDmMP2ZTF8CNvhpvweXNqr+mAu2/5++wVwUV7ZU= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=hemant.agrawal@nxp.com; Received: from bf-netperf1.ap.freescale.net (14.142.187.166) by AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.23; Fri, 6 Jul 2018 08:12:12 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: shreyansh.jain@nxp.com Date: Fri, 6 Jul 2018 13:40:11 +0530 Message-Id: <1530864613-11754-14-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530864613-11754-1-git-send-email-hemant.agrawal@nxp.com> References: <1530697431-1244-1-git-send-email-hemant.agrawal@nxp.com> <1530864613-11754-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: PN1PR01CA0076.INDPRD01.PROD.OUTLOOK.COM (2603:1096:c00:1::16) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 42ecf2da-7204-4f26-3c41-08d5e3182e09 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(5600053)(711020)(48565401081)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(8990107)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:Shirw11quGpGFtYQSy5QEA8rJr+YNr5McI8FOa8eVjEpqO98xUsfZRFlEaXxXuWYhVnw8Vt7T1JsDnOiMYSNUPVD4+dowf+zEOgPqCweN8VvqXkplIKtOVCTAF1shmQIEVvS09L7mtvEhlaXQI42y+F7UToAY+nHXBWQ9XoWGwCYSJqNr/uf8wq2fddDQtWI+NzFibBGHP0rJPX+k7oWP93BzN4acpzX70qKngKAsjUUO92LEzqYPIIFmcmnsWLm; 25:i8OeRpVOuAMhpKxB/I5v76mj8WIzorDDHAunkLcEpWSAaQ727ABSxfvM7dMxLG6G9HaOCLtwoDEOF23Vnc9DT/hWazDcunTgzDZOxYK0SJNNTzG8wG6lzuFA5rhxwklJ6dYgvJkdbdkLT3lvKOLkHPO/+b3XMDlGBc9lcd6CFCNCn4f1BOHCEhbD2hvA1dXgkdXP1/GLGHA2aKeE5ol/6YjfLulv8mlvkt8wa3g/7kU2ZpzubNfbhROFS+8zKWooZN78Yu6dHcdYwE/eXCyU8gE78b3jQrLt0gfMKjv+ZAIX9hmbsBuvKn0vAodyijx5EUK962z+rf3SWM0KqeEvLA==; 31:0NpggwTOy56dpYmA/F9r4uT8KweoVrRcHSgpGtgwUAIbdYuTb+srDaw1aAj4UUI4Isf3b9I8S22e7uy+d7YGSe0wBzHsLsXZGSnz4nWy72ya+GksF6HeNzx9DybXd6NilqTlyD8jYzqduyC2JSXuUcz4O5EYr7JbcYp2d1RfTZxx6i+GLvoniC9o1/f1ep1WLr4vaSBzXhHM/cXmSi+JXpalVyvd3cOqsTrXUbHw8Yc= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:/dfUg6VoHPMMirvgIZ7MKPhRVo7wCgIb7sDJkOopOc4KxmYCJkFRI6d49P8qg0kjYbWX0vfFKTps+FoP3AOGzc77XzaSNMR9um30uz6dAJgpbYrl7EG6FI0KZPDBu5jdHTk//qqIBsohoufzFdeSpv23hQmNtiaF/YRhUj/7uC9eNqStjqPzVlo8d2iRjbsFc3A2FNLyXnbmW2IUpyO4fa1kgLXF7ujiyfe3+9GkuHYyi6YgF140tTf3am4mV6+OamgYOVgIZHtrZbziofQcCnBdu0c/qDZERGk9j3geD9G4oT9p/rbRp8k+X2Crr3QUfdsD4XQlSBIBmFmJBcJkiOiQ5upw9LdzoH6/SAVwoeHV8dh9mn/J5ONoZk8392uUdy5/vGDcF6H43b/wkS45zf/tbnnd+U74+XMiAouRyZqycQDL4EWkHxPMhyKWVg9vQ/JXF4iWccXRWG1KJwbYJTdKTjyRG6Lx8t+ADqZJM0grpTrt2npWHX6dswrTiBZA; 4:arM7mUWKA3DoDoZWHYvWOEZiOXs/UNhP0yTvc/u0u4orctVxF2DPnAmb9KxM9OzbvWtuBn0iFzKNah8aM+m3ghwUqOsOcG+3ZcSPlG340j+GeDpgxPNFXKud8oJN2Yy93ZBUHmj9Xhq6gRfZAl3X0pT/nv7LLy+FOIUfCkf3jrUUjRGTgB5kczkjXLboGATbfVCTTFBoB6rwXvzhY4sPG1RgT1BK5k9h+akxcGi7wAK8a10H7Yi1JrTRM4h1b+borJYF8vZs/7L39n/zZhnxo9iORYP4KsE8gQ73IU/HlB+6zYZbJYArBimEpslqsLAE X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(93006095)(93001095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123558120)(20161123564045)(20161123560045)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 0725D9E8D0 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(136003)(366004)(346002)(376002)(199004)(189003)(956004)(66066001)(446003)(6116002)(2616005)(476003)(5009440100003)(6916009)(76176011)(186003)(16586007)(16526019)(575784001)(105586002)(478600001)(86362001)(44832011)(106356001)(3846002)(4326008)(486006)(11346002)(6486002)(2906002)(25786009)(305945005)(47776003)(50466002)(2361001)(7736002)(5660300001)(6512007)(48376002)(8936002)(68736007)(36756003)(97736004)(55236004)(6506007)(53936002)(26005)(51416003)(50226002)(8676002)(2351001)(81156014)(81166006)(386003)(52116002)(316002)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:AM2PR04MB0755; H:bf-netperf1.ap.freescale.net; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; Received-SPF: None (protection.outlook.com: nxp.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; AM2PR04MB0755; 23:Zpjrp/bCx12HpKFT2aEZ10JUZyp2kzYF7j5oPSF6t?= =?us-ascii?Q?JvJz54QuBZJ1CRW1oYaf7Lp3xv+zoG4oCho7Y4UIRdorjFkQ8nf4YDlVQ17h?= =?us-ascii?Q?ZmTFe+aJrX4iw2zmOKjYeihwfc0kVLmstSU7DGCJ5i9pseUQhKEBHIdA6gCW?= =?us-ascii?Q?ikLKroEg4eIvD+y2Ce99OOBSV0z1tBZWCHT7k5vZgRc8dhga/1jvdWbgyd/f?= =?us-ascii?Q?KNVM/18+r9a4byUaN9jlaEcRkU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uw1R4wLqneHRN5/yrwWavNgb1j7lUq/D1AjsghFFmfazgc2LwFbwXJ8RUUI7QoWg/i/OHEFZ1BkWGccBuCCw==; 5:X6bIdZfn646WDLaY5lLUPBVxTx2dUs+/VdtxU46bgBQQ8/sutmE39IJeDULtSPpmb9Uzveb5NhDJXRVGv/l2PHTmjj8smWfU14jofH3izH5LCcqAy+bPnjLwzk4U4hQhl8tGIBa3CRTdBqyTQi8fnVQkVYnQdsdzGCotZY8PVpE=; 24:eFlgJNDcHoOOo1Rx8d1LGFGN4VlrNFLbwe2t+7KtT30wcQn71cv1JnrP+CGqWlt+ibffGDCxLpqJcX0QMNvuz2zLIHhY2mLLxMOT+fbNxbA= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:EorIN1KRf1n8BY2biv4VK65L5Ch49FmttOcMMZWJkzjSaGNmqHigi8BpOBfkPGU2mBMpkCL228P6/cYyfcyL+3ItwzPn+gos90K1sgF6Yg/SUWDeBIjSwlsF5QKmCK1Wx4H7FAnTIYpykJhFv5I7rvzZQrSgtsuZkVBva2uC7xArhwjIKnRVlJJkrU7Dd+so6FH39QKOOfg+1Ny3N90uk3aMyrSs1cPWNxbnQ3cEf88//9qTCGvnuz2hlFqgwWLZ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2018 08:12:12.6525 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 42ecf2da-7204-4f26-3c41-08d5e3182e09 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR04MB0755 Subject: [dpdk-dev] [PATCH v3 14/16] net/dpaa: move the push queue set to global init 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: Fri, 06 Jul 2018 08:12:16 -0000 Signed-off-by: Hemant Agrawal Acked-by: Shreyansh Jain --- drivers/net/dpaa/dpaa_ethdev.c | 24 ++++++++++++++---------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index 00611f8..5c0aafb 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -1174,16 +1174,6 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev) } - /* if push mode queues to be enabled. Currenly we are allowing only - * one queue per thread. - */ - if (getenv("DPAA_PUSH_QUEUES_NUMBER")) { - dpaa_push_mode_max_queue = - atoi(getenv("DPAA_PUSH_QUEUES_NUMBER")); - if (dpaa_push_mode_max_queue > DPAA_MAX_PUSH_MODE_QUEUE) - dpaa_push_mode_max_queue = DPAA_MAX_PUSH_MODE_QUEUE; - } - /* Each device can not have more than DPAA_MAX_NUM_PCD_QUEUES RX * queues. */ @@ -1424,6 +1414,20 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv, default_q = 1; } + /* disabling the default push mode for LS1043 */ + if (dpaa_svr_family == SVR_LS1043A_FAMILY) + dpaa_push_mode_max_queue = 0; + + /* if push mode queues to be enabled. Currenly we are allowing + * only one queue per thread. + */ + if (getenv("DPAA_PUSH_QUEUES_NUMBER")) { + dpaa_push_mode_max_queue = + atoi(getenv("DPAA_PUSH_QUEUES_NUMBER")); + if (dpaa_push_mode_max_queue > DPAA_MAX_PUSH_MODE_QUEUE) + dpaa_push_mode_max_queue = DPAA_MAX_PUSH_MODE_QUEUE; + } + is_global_init = 1; } -- 2.7.4