From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from EUR03-AM5-obe.outbound.protection.outlook.com (mail-eopbgr30057.outbound.protection.outlook.com [40.107.3.57]) by dpdk.org (Postfix) with ESMTP id 524461BE7B for ; Wed, 4 Jul 2018 11:45:41 +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=0nkk7qyqeIWAWODWOnGuWupRPzcPc48ViNY5csLwfuc=; b=CMzfu/uElwxuinGvz3Wn8IRUNTnCN3NPECnXSY79OnJQeFRx7UdXgFFRzC81bEFwKJhzYaROk1vlFXbUZHSHr3u6V2LVvmwK7n5EO/TBTMjQMFHVww/C1IJJOxZdMA31iwCwUuG3bxErdxqhjuKODCpClMrpqCX5t9bEilwTo0w= 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 DB4PR04MB0765.eurprd04.prod.outlook.com (2a01:111:e400:984d::18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.906.25; Wed, 4 Jul 2018 09:45:40 +0000 From: Hemant Agrawal To: dev@dpdk.org Date: Wed, 4 Jul 2018 15:13:49 +0530 Message-Id: <1530697431-1244-14-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1530697431-1244-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> <1530697431-1244-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: BM1PR0101CA0008.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:18::18) To DB4PR04MB0765.eurprd04.prod.outlook.com (2a01:111:e400:984d::18) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e33e1c99-e43e-4489-9d39-08d5e192e760 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:DB4PR04MB0765; X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 3:s2J+ZYcOVsxQmP/P+33Jh8UBXHmlB23y2eRBSJsMCac1Wwf1MpIS9WOsX/kKek2AyDRVqhQaRAdhtJWWFp4WWq3gkr3yEYmmdmx7jUlYU+WvRLPA19rC7EIJqA84MgjkYysT/7acngllTFV5/f1R0F5619mLGv/0Vv2+ROb7JsN5m5m7fX2w4v6cKwCk+qzI+5eIJ9lFilPa9u8AXDT5JEIa9Ib3KHQcPQiqK4zuaMep3h3KxReJNFvOkDr5nc6j; 25:nZthjffgqJG8Syxcp4DUrf9UD/yS6cTRUkws5+lrOX65l9cZppOl9ZDgy7y7kX/G6gfC5OcEHoR4GOAfprMr3QzXSNMzGxAPYlK+RB2OtofjHSENxUDsG6IbB4fNnSol2N9IBqngFlt/TASdEOztm4f7yJ/URWFDk+byCaXriLToXa9scNcNHg+2vG4bwXBU/Y+OKivUzEnu32AbM5HpmQSzZxQb8TS22M3y9b/JVqXudhDfRzRmNY/pEc8ToIjtwKmOXjspOrQiEX+Y4w9cEtz/4AYFoYJq8QZplyApxiCN9nhPr1P67VuiEG1nrpQknBrHel7XFE2IcsVwwOb4+g==; 31:FzZaNyF/qMosLFQnlJMdocwfTptrzyQ50lPBd+sRnO2KQxndrvR0jeR1+A5oL6X2991m01DJka85G9viwxkLZ/sAxk5JYPo65t7BzRTVP+KnRiLSTwx03yEgq3BRvatmwIRUBALCNX87Pk6Y114T2GxcAU3KgHfyYpXzj+bVYm7sK77NBlqkH6Q9H8dQ9Pbt01c23rjJaxawGffKkqMF1gxZRn2OziYfzvE+sHN15/8= X-MS-TrafficTypeDiagnostic: DB4PR04MB0765: X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 20:qaOxlPR7I+6E5pjnhJmjeukB31wkaT7Mm/GRqEGrj9aIUvPkd8+P3SBZkn9iuLwHd5z3sbwACdBdRlefIBXf57iVR05HkDIIg/If6mSzrIIFyBCCYp81yRxF0Dc1AZDIqdB68RqMSVbpeTMwzPmWgZTCbPeIxH5v/xZu1ZfIYqZEG1xeu2sx2SEmJU02+mNhboLtk17c6q/rtivV3V6dD+gC6YY2OWesuhSS2rxORMSKkg2Oo33b+cZm9cJVGcbkqPn1vbqm0oibTR5azvToT42wA6SY1v4jXYKvCSWD5IcnCq0ax9DNTf+bvnBiNzYQ8fXwpVlIxZ6XNAPPmU/vEvY4pQ594uU9KPqZ+ODiHiTDR0tSm9kDW+x9oojHw8QGuJ3IOk2qKKXcA8Hh9vWzFfSAyM7YCdpwy7PaEJm4ts1RqaAOpLr8cj16gAGM6xRoLFUPBCS5RomuQfAQ8MRyvcIAhTXb5W3IQ58AjrRW5GpAdS9258ZP/OYxulPR+dNw; 4:8oAg3osVvAVn4EaZ7LceGLkOod1q7+vDMRYBnkFP+QuOS1BSqyCY/vuMa/8FD503K9xJJhulkdE/bMtxdgBjSyVAIh5uAcN8PqJfCGAOfK6M6zoMHwztC1NBLPHFnOMhUkhOQCbcpNjIVGPPol6SAjVyxnTi+t4H8gQA+sgfA7Lw228feLPSCQLlMCeyB1c2WtaAYmaL/UIkvvZB/o7qSMucJr+KDjCYA3vMw+rZEoTM1ya3VobL22MsBjgduWz3chQOdm8yv1Bcr1Inbz+Togthjtzq8IW8qRvl/g6D7zC2ZsojexJbPDFro3xe+n/t 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)(3231254)(944501410)(52105095)(93006095)(93001095)(3002001)(10201501046)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123558120)(20161123564045)(20161123562045)(6072148)(201708071742011)(7699016); SRVR:DB4PR04MB0765; BCL:0; PCL:0; RULEID:; SRVR:DB4PR04MB0765; X-Forefront-PRVS: 0723A02764 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(1496009)(396003)(39860400002)(376002)(136003)(346002)(366004)(199004)(189003)(6512007)(11346002)(476003)(386003)(6506007)(55236004)(956004)(2616005)(5660300001)(44832011)(105586002)(575784001)(68736007)(16526019)(53936002)(446003)(50226002)(316002)(5009440100003)(36756003)(16586007)(2351001)(6916009)(106356001)(186003)(86362001)(26005)(6486002)(97736004)(305945005)(81166006)(7736002)(8936002)(66066001)(8676002)(478600001)(25786009)(51416003)(486006)(76176011)(3846002)(6116002)(81156014)(48376002)(50466002)(52116002)(2906002)(47776003)(2361001)(110426005); DIR:OUT; SFP:1101; SCL:1; SRVR:DB4PR04MB0765; 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; DB4PR04MB0765; 23:O3ybgwfEFRjCo22VGuCPDIT6Lj4TP1UgeYpDrWsHb?= =?us-ascii?Q?F/xVq8LRCaroE/kSTo1I2+lwpGx2nFtVgFRa5+arGUNidjf0BMQUkQbwJkrA?= =?us-ascii?Q?dn3z5Kso8whSi/F9B4xvi88U0v5rQ2wpHvV9gsUX60CZ25RBuYIQfhbYIWC1?= =?us-ascii?Q?40bvYqY3ensk5eVp2x7bKlnHplShmkdz1a2jG4BSsDX2DcRjfITWtxBANRnA?= =?us-ascii?Q?0lrAJ23TfUjmBCoMbGZWyt3CWo61roJWDU8Vd/duERQm/KWv86T/DfkmcaSG?= =?us-ascii?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ne7JTA5jSWnvy7jQdMzprnCAfvfU0y4q/0AX/w==; 5:UE5IonTxtInfLPcv4YNRTia4NmFeiwgoYUap7jsQ/Bw5lYlmfIn+hY6mrYg0XoXze0Wd2eJjCs6A5fcLQcleDPZzJwLvDt1r/JqjXlRSbWfJVgUsegh8D3DSZjNT8+HeI7tCyqGqEuzJnu2NMg0fR9InMpFYaqF5j3xRHohx1BY=; 24:m/22vhzOwfVqp1PPOizx/WaFBQMpiIz2/PlzPPnwqjdSRXWSrkyfU086LSQNKyrMxjn6/xSwpQcHebqDDcvBfT80jElgNb2w5XFMalGpRlU= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DB4PR04MB0765; 7:jIDsbCYPNFQNVj1eOn+IE8fHA2n/PIkmG+KyFGpyM8i2EBUZvdZxtL96v7alQ2/BFMF34bxr9qWUYNQP6kWbEiB6rRA9g4A5WUseFPNBParmprBgXb8NDPzZ0VlaSvkfM/jZHSbC2ayOTyzkthLpgUy73OHBlaXxgomZn/mauZbohx7oCmVS6aOh8iBacWrh5bdeQ5rgtl9EI2C+nCeifHkbo9TOL9ewPsa7TgIMSjkIP5itEef+xKKb7Z3awQ5+ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 04 Jul 2018 09:45:40.1653 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e33e1c99-e43e-4489-9d39-08d5e192e760 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 686ea1d3-bc2b-4c6f-a92c-d99c5c301635 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB4PR04MB0765 Subject: [dpdk-dev] [PATCH v2 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: Wed, 04 Jul 2018 09:45:42 -0000 Signed-off-by: Hemant Agrawal --- 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