From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-CO1-obe.outbound.protection.outlook.com (mail-co1nam03on0061.outbound.protection.outlook.com [104.47.40.61]) by dpdk.org (Postfix) with ESMTP id 41D681B299; Wed, 1 Nov 2017 09:17:29 +0100 (CET) Received: from CY4PR03CA0013.namprd03.prod.outlook.com (10.168.162.23) by BN3PR03MB2353.namprd03.prod.outlook.com (10.166.74.148) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.178.6; Wed, 1 Nov 2017 08:17:27 +0000 Received: from BY2FFO11FD037.protection.gbl (2a01:111:f400:7c0c::194) by CY4PR03CA0013.outlook.office365.com (2603:10b6:903:33::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.178.6 via Frontend Transport; Wed, 1 Nov 2017 08:17:27 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; dpdk.org; dkim=none (message not signed) header.d=none;dpdk.org; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD037.mail.protection.outlook.com (10.1.14.222) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.178.5 via Frontend Transport; Wed, 1 Nov 2017 08:17:26 +0000 Received: from bf-netperf1.ap.freescale.net (bf-netperf1.ap.freescale.net [10.232.134.28]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id vA18HNcR023887; Wed, 1 Nov 2017 01:17:24 -0700 From: Hemant Agrawal To: CC: , Akhil Goyal , Date: Wed, 1 Nov 2017 13:46:41 +0530 Message-ID: <1509524201-5952-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 X-EOPAttributedMessage: 0 X-Matching-Connectors: 131539978470335821; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7966004)(39380400002)(39860400002)(346002)(376002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(105606002)(104016004)(68736007)(498600001)(2906002)(50986999)(106466001)(50226002)(8656006)(305945005)(8936002)(189998001)(5003940100001)(2351001)(54906003)(4326008)(6666003)(47776003)(50466002)(53936002)(77096006)(48376002)(356003)(8676002)(16586007)(316002)(86362001)(6916009)(81166006)(81156014)(36756003)(33646002)(97736004)(5660300001)(85426001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR03MB2353; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; PTR:InfoDomainNonexistent; A:1; MX:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD037; 1:nhVP22QD1y4vLJKwFcR2laTyHzUfJNRJUjrj5itQ9G5bA95mZ2FllooarfCvo2vmXN7hXCFCNsYaJqstIU+TzKEO7hmPq8R7eMbGvyS8W2SnzacHe4WymXPuIcWy/SCK MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: b15ff86b-1c5f-494e-43ec-08d52100fcf1 X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(4534020)(4628075)(201703131517081)(2017052603199); SRVR:BN3PR03MB2353; X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 3:uhMJNkZcJsSa83eIwiW8UUUs9Y13GhydQU/rLuPlRkupR4BAyBbHf6856G1uyaU/o/ZgSHbppU3sJ1vqXnJEEzQa20hy/TUfUcGwsrxVhcQ9YCvKtrZdTVHoa3jUDp1wRfzmD3DCjNqUgOOYlxakrMNryCYvsU5BfIw9v7UT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XKisxQroTPtYaIkkLWcwow5S9ffD+xgcIWy/ViJj0S9ARmSUaLNWrNkuhmKCaeexiudM8U5R+c5DL1moFc0TKtTAMTW5cp45D X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(2401047)(5005006)(8121501046)(3002001)(100000703101)(100105400095)(3231020)(93006095)(93001095)(10201501046)(6055026)(6096035)(20161123556025)(20161123561025)(20161123565025)(20161123563025)(20161123559100)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:BN3PR03MB2353; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:BN3PR03MB2353; X-Forefront-PRVS: 0478C23FE0 X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BN3PR03MB2353; 23:IyE+kS2KfkUqA8zK/gtlAp3w/McGjSYrH6+gOpJXU?= =?us-ascii?Q?q9zGxI4yoM6ve1BqJVbVhM5irxjwhFxvt+krU2TWdH2M0iangQ6kb8ieXa7z?= =?us-ascii?Q?2VaCyIFEqHkm1Wy12rkWlL7S9drFBTK3ewEGL48MnPwxK1x4Ij8VsI1tiD4o?= =?us-ascii?Q?Q9zTwbhkklp1FRARvjw6yZQtbtJSDbpNXg8YtyHckpAEMaLdRE+doJokM/5s?= =?us-ascii?Q?jxGt3Q0yqvavbkQmzsHVV/B1lHsVfelmvUVAp/s7APkwleaOJLgSSs53GkB8?= =?us-ascii?Q?l+qXv/AXX9a/ispkKKPp79E1mLRRghPG5KCKMJoPmi26J/1+ar1s9SqBBjPo?= =?us-ascii?Q?LF6k1lgttLh2zYKbuCffzxX1+yKPeet5qDnDWlO41hJoOJHgQX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6tHpX8FfEJ/SZ33nhBiCAJ7xeyB7bWxD1tuQ7TCBq+ACfHiId0OwAYRYs4zZA4NiB0BcFo7iSr0vF/ZLLO11M2vV7Rkp4ed44Usiy31mKjoxT8UdfxAFAMGuKb6MOjre3ww5iBBlsFDSnb24qxBoKPQ62ABx9hjtsOGDsTkV4wn74RL2t4H0E+iP7wtStcVjtboCCk0Vk7fVzK86/RKVIY51ZsrR7NidwfaK9LSakN91xpKp90T7C2F/7Y/svuXnDscMmwyb3vByHoRo=; 5:W3Z0SP5eFzItIzGceulwSpKcr5LRXIAoJPMtuDdNF04FfiUH7DuK51kt/tl330Pt5LQt/hcTLMQTjsnL2GjKk1qJEN8bfxgIp+zxNFdLwW9srEB8tcg2o7Cf/mqK+Pbpm6J/+/WeTXuJHocNmpaHHMehna/wdEZXsW8vQ7FEAhM=; 24:0A5lK7nubvPRnlkBddX/LmZobLRj3LmSORdTmMQQhIMxKV7sIC0Sc8lwR9Kys5X6CaE3WGr+FMoLBM5+yAqAhJr5pXzrGDaGvEjDTqDYUtU=; 7:Gb/w+Dd2Ux6HmTmkARqqiN45yBB83HfrPsfNSloKIiFMNaVrpLp2mBfnbRL7njIFPLjclBqmLyt1TxYYvORt1VR+DuJyoJ0+hpUQgLhIpAN5azETX2zkcsVkQ8QamM7LBQEqUvygNGkJQUhFgZuo7caeD60nmspvNBMvLvG3ljsthTsBMuqWVzADfaDuCCOSOVl0NIS0BWfiI2ku7MtcE8M4qW37sbaYp/Mby4AGyX857a9HDm5sthLUWN38BWJN SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Nov 2017 08:17:26.8307 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: b15ff86b-1c5f-494e-43ec-08d52100fcf1 X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR03MB2353 Subject: [dpdk-dev] [PATCH] net/dpaa2: set queues after reconfiguration 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, 01 Nov 2017 08:17:30 -0000 From: Akhil Goyal if dpaa2_dev_tx_queue_setup is called multiple times, the assignment of device->data->tx_queues is not done, as a result tx_queues remain NULL after reconfiguration. This patch sets the tx_queues from the device private data to the usable device tx queues. Fixes: 7ae777d064e8 ("net/dpaa2: add support for congestion notification") Cc: stable@dpdk.org Signed-off-by: Akhil Goyal --- drivers/net/dpaa2/dpaa2_ethdev.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/net/dpaa2/dpaa2_ethdev.c b/drivers/net/dpaa2/dpaa2_ethdev.c index 19c1191..202f84f 100644 --- a/drivers/net/dpaa2/dpaa2_ethdev.c +++ b/drivers/net/dpaa2/dpaa2_ethdev.c @@ -514,8 +514,10 @@ dpaa2_dev_tx_queue_setup(struct rte_eth_dev *dev, PMD_INIT_FUNC_TRACE(); /* Return if queue already configured */ - if (dpaa2_q->flow_id != 0xffff) + if (dpaa2_q->flow_id != 0xffff) { + dev->data->tx_queues[tx_queue_id] = dpaa2_q; return 0; + } memset(&tx_conf_cfg, 0, sizeof(struct dpni_queue)); memset(&tx_flow_cfg, 0, sizeof(struct dpni_queue)); -- 2.7.4