From patchwork Fri Jul 6 08:10:09 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 141272 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2836192ljj; Fri, 6 Jul 2018 01:14:09 -0700 (PDT) X-Google-Smtp-Source: AAOMgpdGcXUaRbzzXXrjHcbr02ihMD9OQkrf+WWbIbLsSsA0+B3jaIO4gHhqsZU/FpjWZpqVk3ep X-Received: by 2002:a1c:1314:: with SMTP id 20-v6mr5705262wmt.55.1530864848988; Fri, 06 Jul 2018 01:14:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530864848; cv=none; d=google.com; s=arc-20160816; b=SCBjJcvUiTqdJY7ZU+suPveXT6f3uiMbEF0wtJTV/cWiRLX1Fa1RvzjLDcTMUgRCjS ro5EQel0VVNA1Vr+giX/8xLrbFZ9QCTL4I7Pf2P9vayug7Pmo47WlJvSo4EuSf8ZBuXk E/KsPDIjfnCY9v/7EahcZKBRdq371f/uXofu4DTs4AA+hZGLKciJj0hYKKgMebi1xZeu 4DC9hK5yrYghdVhMjOviih2pPACenuNIaLs88LqgRBwx1HHHr0h1ko/BGyfrLrNgHjTK o9wns4zo5nzkulvIk6rFibS/a8b11m/2zoQAmwc/VnUPArkrGdn+WZaRygdcWznppTvM pq4A== 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:references:in-reply-to:message-id :date:cc:to:from:dkim-signature:arc-authentication-results; bh=L/jJtob5CXKogEzC/QC9JU2jwIEySO4TkMfwNGY7mk0=; b=JJwzg3tP4XLokyECuctdT1PlYfV6pKzO1X/kOlqRHJYMmCtXnjd5iMYXnEDG/GN1eZ iDcW3DWevEuvllHbWaae7BD21HL1qF1Hviej8yVn5EvMyJBi7b984vyxSTFEzIkbydgB EwVep5L/m/+DzheB+H54ty14aoCdeqz1Yh3DILSzfc9hF5q7DCEwiJ/dYZPTW9pfzaL+ tWMD/f0F818NjIJL0ikFvt7aNhmO8by3uBO7/5CxNhP/RdU/U2pZk5dJnatsUu0+uC/8 GFS1JoBIKewcT6LiAee+Geurv5djCTaoO80YbOsjUix98yKOYWp6MJQ2NAmbk/d6eYXO 20Aw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=T2ZftC2g; 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: Received: from dpdk.org (dpdk.org. [92.243.14.124]) by mx.google.com with ESMTP id z49-v6si7544609wrb.368.2018.07.06.01.14.08; Fri, 06 Jul 2018 01:14:08 -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; dkim=fail header.i=@nxp.com header.s=selector1 header.b=T2ZftC2g; 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 3A6801C4CA; Fri, 6 Jul 2018 10:12:23 +0200 (CEST) Received: from EUR02-AM5-obe.outbound.protection.outlook.com (mail-eopbgr00087.outbound.protection.outlook.com [40.107.0.87]) by dpdk.org (Postfix) with ESMTP id 42E371C459 for ; Fri, 6 Jul 2018 10:12:14 +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=L/jJtob5CXKogEzC/QC9JU2jwIEySO4TkMfwNGY7mk0=; b=T2ZftC2guvoX5jJ03ig/QvtSfsER3TAPii4ztznI9PzeRrlEz1EYWE4FLTdao9cb/pP4WnlFycBxwtZdAbURjMChXhyinMtbdF6mTzgz2aoS2RdyHO0TBo23TG4TVmTsrT+lA6bxdvUAcnkpCWx2hTdMgsNvQVlGA/h8ytKZLII= 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:10 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: shreyansh.jain@nxp.com, Pavan Nikhilesh Date: Fri, 6 Jul 2018 13:40:09 +0530 Message-Id: <1530864613-11754-12-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 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: 7f3d33ab-cb34-4d58-deef-08d5e3182c9e 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-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tegtKvZjl4H8EFpsPNF19TSLZKT5wi4zbZRmokJAJVg2xGWM2qm/dXmDJWr6KEkc9Au16sbV5Izhv/++rdU2MwGW/84B+zl89ULPjqAFf3mZZL5mpbDOw4yYKcPBFXnWe+ZC26GEVMB9YurkgJdMsgnlqsq8vC7fuWefO4HylXrbTTvCgXSE6N0l2mQ1N+wa4NC9Z8Q1VVovOpjjNK2xHfL22dpktJUs8lBlY5EwJnLeJS6J+LiFP+O9hMHBJP58eF5Mhv7bvintr62xaXXzPVNUn8dLANiJcFGLoeDT+6t+85kZGbQHKfp3VsbiVX7HY/yLApISyH1a7Rwn2heaFxVRQDCVktG6F+LunK1UzuN7chaXaWcQDfXtUjqvawVrE4+c; 4:bh4tOy5Y2oYrWiWAZv7w2b+m+1GT8r4LjY5uwzwFwPcZPQfzBUcXnIJM4gIEVUrmDFgHxEBZvMqemvHuv2jDHSYSniRXvd8vx9XnPWnnSrqKQ4j8lDFmR0yTdi/q+uTdOWY0dAvisUdD26lXSNVpWCUv1QtjpnWi8z7FvtUJX12uJIghlTm98NMssiAUTDLa4Axi4x+KJOtAhaLZE8HYN023b/tYAkX9krpdfgphtcotSLAXfVsQQ7Oj/T+7URxgbgeZ6PDoOfusuU730Z8fse3mR3osTcw9sjSwVu7BUOmEbOy6dMZp8Znn38XHFFuI 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:9MokAPLxBcKIDmRwF+dJIhAuvTi61xsDBjauAKjiU?= Qycp25oOJgpOnBbPXmmHKss9nv/O/HojlvRj7P6m0JAtb4l7E0/JiIbbyr9Rhh22u+sdyntt6lzZV0B9zP+z1Tt0QBnbSTIOSQdjehONQxKcNJDQ17YeMUTHqukYJ70K5uuTkRX+s8FZ1f0ajcgg7nAIabOU0l0eVx+sky6GRipXLIluK6euqI3jVMNkiieSn7rVBjw4y0iJ+fUJoMWeoX4Q35qnBLQe8O8QNRHXD1Fi+YH998SzUtN1EIQp14hwMt0EW20PfEd0z/hnMObmN3DDV9YWFNcu9y6GE4XwAmXqSmm1SXlXFfud9sfssx0TTt6IrpnvDZy+oAfU5RX9BAJTB0WQrHbVGFuskt1sDB1eQ/pljHZhLqjutolZWHd0PNiHz6CC0zlYGWsfFs2Or+YZyXIM668h7omxZonm7lBOK1bCD9Ok+3s9bw5n3LGS7esLD1PNUrOLsuw7ybeLqssdVImK14pYEipHE+7PEjpgA3DpalaLLHqs59m3jRg/BtS6/2r3JqnK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9gySinwa/jym5lCbQCoo5bJf4KrspwBoCTc79WCwPlhesNVIg4uBTCcPmB7Cj7Ye8wYE87bkypB2+x0ZXY= X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 6:w2zKP6pc9VjUviMPjGNTQYvoDO3e39iLkCrf+QOaBfCi36f59W8uUrl53mHuWjHLwT5opCAve007mWdSb88Jr93KrRapQW83B7+xzJGH5vGLH5v9uF6I4T7XoJYkME9VnY7K03GNGY2mIzEWOvRpUc+tj9Q+mfdt5s5JBSxAiSjMkzIexoH/vQ6j2jwxHF9val0sjzUOMlrmfnTPunZMDoXtkFn39EKcPxJFUelYi2MB4zGLkiY7Ps0CuUVAOq8vsLJMpskPl8G8HbkMnbCPk8ZGVq17stNnpbTn9UXu+ZHcsgkhBkj3SXD4fLC3rIc3t0ZELHg6C+uDqa/9bmekEiV4xl6fEs//OfzylIiF6VmDZ5hGOzsy8MFaCUHg/lVbdLmC72a4yHsB0MeJdnj8agCyFWkXYEWlZDsxiIZpip7XyOCx4kCCdaMlaPitmdb5MnJTVXW3ckO6EpdXV3rGXw==; 5:dvyW53Ur/EtbTUtWxhpMpTkbNKTAPk6Q4F+Ijy/0BFnmbUiARL/nF/QaHH0tJHIbvc+8rxdipo1bj0mMvbRtkLo95UH4rJESyjmVYDl8e+SMvGJTvknpknxAoDxisOq5M6SbRy8+wF4duz8tmixeQXQRTjCRTX5jjYakF/W5jk0=; 24:3d7iidTmh/lrRvsTJWUi+lxJ1mWLrFYax+4foKU2EmpkDeMX5WcLEarwZzkuLIzJM7jG8V27hK9s5zzbdLR8URfFzjlKqD5f4g/THoBS8xE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:JBG30QEb8vu4qX/i2YS0Lb+XvARm86yDuaS+RJINGdpYHy1bJu9/JNhiB2Aq+xXiS+h7dKFpC63rRUCL60pHi6+EX1HI7yhUWyvY+VCeW3+bcogXl2nwSyg1hJdbf+5uFirZj4dxZT6d2NLB7Qhg54ADnqzYUIX5c+OvstAiVJQRpXsejVEOzwRNcWyfn10Ntl2I2UjBuvcynJNaATWF2Zr2zMdZcmTX9ST2JXfaj4OKOo+e7J+sm3tWq3r9WQp9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jul 2018 08:12:10.1336 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 7f3d33ab-cb34-4d58-deef-08d5e3182c9e 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 12/16] bus/fslmc: cleanup unnecessary global variables 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Signed-off-by: Pavan Nikhilesh Signed-off-by: Hemant Agrawal --- drivers/bus/fslmc/qbman/qbman_portal.c | 3 +-- drivers/bus/fslmc/qbman/qbman_portal.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) -- 2.7.4 diff --git a/drivers/bus/fslmc/qbman/qbman_portal.c b/drivers/bus/fslmc/qbman/qbman_portal.c index 713ec96..0714500 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.c +++ b/drivers/bus/fslmc/qbman/qbman_portal.c @@ -122,8 +122,7 @@ struct qbman_swp *qbman_swp_init(const struct qbman_swp_desc *d) p->vdq.valid_bit = QB_VALID_BIT; p->dqrr.next_idx = 0; p->dqrr.valid_bit = QB_VALID_BIT; - qman_version = p->desc.qman_version; - if ((qman_version & 0xFFFF0000) < QMAN_REV_4100) { + if ((p->desc.qman_version & 0xFFFF0000) < QMAN_REV_4100) { p->dqrr.dqrr_size = 4; p->dqrr.reset_bug = 1; } else { diff --git a/drivers/bus/fslmc/qbman/qbman_portal.h b/drivers/bus/fslmc/qbman/qbman_portal.h index 8bff0b4..dbea22a 100644 --- a/drivers/bus/fslmc/qbman/qbman_portal.h +++ b/drivers/bus/fslmc/qbman/qbman_portal.h @@ -7,7 +7,6 @@ #include "qbman_sys.h" #include -uint32_t qman_version; #define QMAN_REV_4000 0x04000000 #define QMAN_REV_4100 0x04010000 #define QMAN_REV_4101 0x04010001