Message ID | 1509524201-5952-1-git-send-email-hemant.agrawal@nxp.com |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.22.164 with SMTP id 33csp584569qgn; Wed, 1 Nov 2017 01:17:32 -0700 (PDT) X-Google-Smtp-Source: ABhQp+QPpUwepo0MS91uWGYasAwwMrWTRWqF6oe4PAz2XlHJdMlHz6e+hUClNVjQM0zzfqQUIvba X-Received: by 10.28.4.150 with SMTP id 144mr4069860wme.79.1509524252814; Wed, 01 Nov 2017 01:17:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1509524252; cv=none; d=google.com; s=arc-20160816; b=QeAnq5a66/umw3Jb+2HC0RNh9PSAGgV7gZiBPg6GYXtlv7o4GuuzEEDrNfBapOe3DR qFTf2ICU3lOoGxXW2e+4iW08GKWINAEyxQBBYcV0iEKlyf32zaVw/0bVaom4nxpHoE4E 3O98bWqstnIZAOw/noHcb3oC4OrMxzBifSJzKE25yS9IQuBS62UI44xs+MU0PP397zwI szgfX3gQ82FeBnL1pSZfkvaJ0WB0VVQwnP8MQ2az9zepTJObJ5+vu507++BRHfUVHXZw Me17PVqhIj6vhS2KwSZz0auwflFUCeY2H/jITFBbbVFNRFQt/jJ3dMKAljQx3jUW1e/l Kb6g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:subject:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:cc:to:from :arc-authentication-results; bh=sKCdi7maJManJDCgdvUUdhwvBkewu3alVPvAYf5qDE8=; b=BVOiaC5J/oWW3I45KACnO2T2mJqdXKdLhwhgr/DqZoQ5Prs3PQPffmqbEmr/VbAqnO eU6O5Xr3xq8Fbvbfg2+zcL8ToOs5wc2cxWGA7/NRwt/dV3wWvcjPOY2Te80gHPGMstTL V075sZ59xwDBDsgP0pE5fbHb+1U0hDDhYccZfnStm5j+CfDINkIL7WG0633hYKczUvdq whJwyaAps7wJaP1M781eu3bVdGb+9dG27yxXCv6gvMiO8XW3eZ12ssAbuUC61zSiKuGs LTT1oazc61buR6dSZKSCdKGbEWkoOVWEAKOiXFBOu1OT4oAAohKaZCldgF+Wq9/RYIoH X4qQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Return-Path: <dev-bounces@dpdk.org> Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id w51si17898wrc.335.2017.11.01.01.17.32; Wed, 01 Nov 2017 01:17:32 -0700 (PDT) Received-SPF: pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) client-ip=92.243.14.124; Authentication-Results: mx.google.com; spf=pass (google.com: domain of dev-bounces@dpdk.org designates 92.243.14.124 as permitted sender) smtp.mailfrom=dev-bounces@dpdk.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=nxp.com Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id D6A101B2B7; Wed, 1 Nov 2017 09:17:31 +0100 (CET) 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 <hemant.agrawal@nxp.com> To: <ferruh.yigit@intel.com> CC: <dev@dpdk.org>, Akhil Goyal <akhil.goyal@nxp.com>, <stable@dpdk.org> 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/TUfUcGwsrxVhcQ9YCvKtrZdTVHoa3jUDp1wRfzmD3DCjNqUgOOYlxakrMNryCYvsU5BfIw9v7UTnpPdFJD+FU0ZpBq2QHMsrFeKVnTOTXBuvGZQPg19QgbRSU0L69llAftj7ZLBVtbW80uMNqk9ay0OgoJ8TYDJQEb1nKcavI18rPKf8BCbTPtpmbNCdZeg9r8g4KKhjqEGfu3gdS3Zzw51CWdY1sT+NbrD/sAx2BbKUrm24xv4zRcJsT0XRbzAA7PxssmMBqlJqHI=; 25:0aYbAFx56wQrw78UTw9StUjYtXKn+E/o2BAbt2Qm0Whe3a8BHpbI00tt8WAaqN/Nwy35jqOGjRinnMe3On97XNsjbtHmhB6REH3MGRRN9SXdYrlgpOUyezDkn3/cquaog/ietTqdOT4PFPUOmBXPSdcqb3x0wCfE4o8P123lC6ZUJEknBs7uVRMtOrV1PNQxla9k1/m729SfkFsVVGzEW5ilv6Tg2qm4b80biTt8zlS468/Gh4MpsH2h3796wDDc6n37AL5dFJrgcPp4j28xutDlSWVANxxUawz0qBR1tO0tMWt2mZLOK6t8DhMOX7b3PeLz9pZhOTtQ3oIGGF3/YA== X-MS-TrafficTypeDiagnostic: BN3PR03MB2353: X-Microsoft-Exchange-Diagnostics: 1; BN3PR03MB2353; 31:0LNWdoEi+7rfhvC47dUbHI2cCq1LsaI8kaWeXjnjAiGz8/ZnWqe6vDeQGEehkVwmefiAx2H2WPdHhdMLaS7tWQ4EhrKehEyDOIXJ8pacIGcqg7gI7U65yZi8qCxsiGR1c4LnEqdHwogV9j/ZwwHc25w0/Yg7HqQUDUjBL8LY2WBbo3BuB9z1/kFx1ewfwbF3pLqxfUZHjRquqaykJmJafo/Y3qqa5DBAHRdZ8TMCFqk=; 4:3d+KC/yxP/THxchIc5Rl99iAFYO/mesS5TaKZfz0Jb3HVY9mCeCIyfPuIsgs9OH3qi9yWenIoZrBiebKpVa2KrjqXeZGvin4K5PpmVvYhHLr+hxuhvk4sWFf4mGNupJ8uV3Ewye1GDuwRaWWpLtZTvRZalg2pkJw29WltisOYgvNEEzf8s+vo4jbl715etjAKhNbwTew/0bNAuGyNraXlElgNxL+KWmXKisxQroTPtYaIkkLWcwow5S9ffD+xgcIWy/ViJj0S9ARmSUaLNWrNkuhmKCaeexiudM8U5R+c5DL1moFc0TKtTAMTW5cp45D X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Microsoft-Antispam-PRVS: <BN3PR03MB2353F05E895D77624053B945895F0@BN3PR03MB2353.namprd03.prod.outlook.com> 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?= q9zGxI4yoM6ve1BqJVbVhM5irxjwhFxvt+krU2TWdH2M0iangQ6kb8ieXa7z2VaCyIFEqHkm1Wy12rkWlL7S9drFBTK3ewEGL48MnPwxK1x4Ij8VsI1tiD4oQ9zTwbhkklp1FRARvjw6yZQtbtJSDbpNXg8YtyHckpAEMaLdRE+doJokM/5sjxGt3Q0yqvavbkQmzsHVV/B1lHsVfelmvUVAp/s7APkwleaOJLgSSs53GkB8l+qXv/AXX9a/ispkKKPp79E1mLRRghPG5KCKMJoPmi26J/1+ar1s9SqBBjPoLF6k1lgttLh2zYKbuCffzxX1+yKPeet5qDnDWlO41hJoOJHgQX7/f8Bm3YQJZKwzglm8jhJbn8Mok7Dan1vty4YbKzp/RGW1dAjDtGNvFrk8wwDkMJ8dC+ALIgAxES73JYNqeRgSmRuwthECeJz5nhAaouug4nC22Wtc6KcptQR245Qi3Wjnx01Sh2f4SA3H9v30pUrgvdprLDxFmbpIPZAkqK/3oshCKnsW1ySf6inZiCyCel0PqsvqMejaO30qqckTWyKRVIkaL2e3DN1ItHAtSdlCsvb5f3Osti2EPKvml9YpZXQ0npHd7rk2xM3tDLXKZscXjnGapqUQLjFaXvjYua7SVsnfgGX43BllAEyh1Yes6Y1ImFw4CZ01SvlksgpH+aR1sp1jF2OTySWEYaCFaOqfKUOSVqOBGNL/8HdJEfN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DTqDYUtU=; 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 <dev.dpdk.org> List-Unsubscribe: <http://dpdk.org/ml/options/dev>, <mailto:dev-request@dpdk.org?subject=unsubscribe> List-Archive: <http://dpdk.org/ml/archives/dev/> List-Post: <mailto:dev@dpdk.org> List-Help: <mailto:dev-request@dpdk.org?subject=help> List-Subscribe: <http://dpdk.org/ml/listinfo/dev>, <mailto:dev-request@dpdk.org?subject=subscribe> Errors-To: dev-bounces@dpdk.org Sender: "dev" <dev-bounces@dpdk.org> |
Series |
net/dpaa2: set queues after reconfiguration
|
expand
|
On 11/1/2017 1:16 AM, Hemant Agrawal wrote: > From: Akhil Goyal <akhil.goyal@nxp.com> > > 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 <akhil.goyal@nxp.com> Acked-by: Hemant Agrawal <hemant.agrawal@nxp.com> Applied to dpdk-next-net/master, thanks. (Since patch sent by Hemant, I assume Hemant is agree with the patch and added an explicit Ack from him.)
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));