From patchwork Thu Jun 21 09:43:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139512 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1845859lji; Thu, 21 Jun 2018 02:45:45 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLxu06TjlnhXXSVmkVe+/d+E4aWl9bkhXSI1G3RTi2dTTx9I5MZoHaih+u453JHZjVkQe9J X-Received: by 2002:a1c:8cc8:: with SMTP id o191-v6mr4537595wmd.75.1529574345689; Thu, 21 Jun 2018 02:45:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574345; cv=none; d=google.com; s=arc-20160816; b=dqtPvI7yYz7U0gZzN7kadZh9GukCLv76O7J79Zq8LXtNri9olRC16M459TAxwG/FX+ eywmm6HtTKJQQk3ybert1HtzmAkpVJw6znLeLTYVbIY0C/VLX6AXeHww9s9RIMTF5lgM ZVLN9YMTDxjvPeuBZ7Y4kEk/uPvDj0ywc2i+lQ5O0IImXKherIf7CCp5TOuxhcvO6dTe IHT0LJ1WSJpTTvJqSyzvKr1tx+cUGi5yfBZ92qdKe5lug4d7MbACDSGNcNMGLXH1CRO7 AEYbOKyhWswWniww/u1TnP7QC0EglhK/t1m9xQ/iiBaQvCcTYjdTrZ/j1ChF+XBCMa45 /cTw== 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 :dkim-signature:arc-authentication-results; bh=oDLQcWHeu9ZqOfzO0AEGeOi4gUOKHLaEPg9SYPpbTVs=; b=lIiGrpeuiv4ccIpW70QDopInZaXyL8QqBOc+7UVmDM3zAep2WQafXt3KxUY+R5HFTX +jiRy8hYhpGxxzFBq/2HzHAxGN63IkH1eUe9okeL3CEc/WUWjboVOIlDoGZJaEEApeaG upTzEHWBpzr6uX60HI3uSqr8KRd6+GcXw/IKG8smxD4SS+7L/97qqiYoQZE8oNC42YSO bUqsIkgt4C7g/zLpyD5dpkl+YAzZGCK+FqBsVSlYsn1BRmOX6pF7R+mCuUaeUjVGCK64 goqrEMVL2W6k7slC3pbv1SqDsBzVEoER6bE4/4U1gGBhao1BjqR4OH64CW1mL4wRF8YV 2OUg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=gl16Xiid; 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 d131-v6si4091109wmc.196.2018.06.21.02.45.45; Thu, 21 Jun 2018 02:45:45 -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=gl16Xiid; 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 59AE01BB9D; Thu, 21 Jun 2018 11:45:44 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20055.outbound.protection.outlook.com [40.107.2.55]) by dpdk.org (Postfix) with ESMTP id 985011BB92; Thu, 21 Jun 2018 11:45:43 +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=oDLQcWHeu9ZqOfzO0AEGeOi4gUOKHLaEPg9SYPpbTVs=; b=gl16Xiid5TXp9Aw5PBO+FSXXegcBm32Kct8yR8LYg59abi4loVXiufF+H/HVchlAPRkt/xoOZo7W6DidF3mCxmt03TdI9u4KIcF2pNdFDUfPRPiDZOdueeIa+gMX9Sa4DUFOIS2NYT5uinpWZ0G8k2tpNFPLgfBuSGjpbsRf/DE= 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.863.16; Thu, 21 Jun 2018 09:45:40 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Alok Makhariya , Shreyansh Jain , stable@dpdk.org Date: Thu, 21 Jun 2018 15:13:55 +0530 Message-Id: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 89323fc5-e25c-4f6b-85a0-08d5d75bc094 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:m6oxCfQVyLjnvX2Go9iXYxs34ETLTGRPC8tDY8xRwQ4C4eaJLtCvNG7n25cpYB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XNAA9jYQ5am/0DTYoZupL6YSPo41V/mQbN69XMtkSrIjFjmjc18RwdmMjSdmIO69+Yr2c2Cphj/VjXO34ecRvoLMKeBB3DI3zWDJQU96noDGGXrCPghmuAN/o1diLzsPlnQatM8ZYpClq+swz8xYELoUH9xbpJZocsY2bXvIUnc9Dj7R8wH7i74MQu0llbS5Vg34J24yWX78QSLJckmUMj6f/jqccjACtwgvhV1Za5ViE5VI+0aBohIQojBa8LXnocNJTys7UsttFxm3i239tLqG4kx; 4:Ge2NNC1jqHk0yV6xlzbnxmhJnPVrUQAugYsqpBB3/Wd0pWDSZVZfZjn7Uf+/2xVo5Ld/eyB8eLvQrM31iFjIbT4nfYhR93tjfutx5+K5Xgl7EnVL5tnEMbmwPujO6udcwP22UrAdDnD9R+YaYWSAD+yeDSA5A4mImtTobCv6ylHB6TEkGWCWD0c7XIB42n1VzOM3DI+zvu8q2R7/KBeHw5YK91bFnisEhS0HRmjiejgYYylDHGkWl5Aypv0uKqoEuJcKn2h5dl2EmX8DZVA3WXz8sbSh8E56eKGcJ6IrRFoSKdpxaoU9hJhzoS7scDnr 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)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(97736004)(2351001)(5009440100003)(386003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(54906003)(25786009)(5660300001)(316002)(6666003)(66066001)(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:AkHVEwRV5WXbxb6F59tQ2Qxo8rM5PTHhW6TryEGKB?= avwl5T0+ECD/GUp57ikrFYFarPPlnT4Xxna+Qb/kLSASFudG4kKa/C0JuE0sfORK4IvATskxDcAIQrvc07N6/7+GF6pzKVzZuM4Q+dO0upghHmS5g42odu0cFegbrb3XK3eUh7oMLQ6NaEf0lSYnuKubi+a42oYcK7OnN9IjpP26by6SwevZ4Yw2u+qTcxN0cssSpIfIue+TvDnM/J9OfRzZ7dkmerPVMhAJWY3txtEIM2qfHXEiCUB4KfXo6L2vR9ircUge6g/l9NGRwH0lGPhlCAhuoVmQCtybNKY3yEmP8n4uZq57sT1EaPPlVdDErwkFUB7SyJthV6eUe7qBwBhTpTuvdPk1bYPh+VooJSfBChn8BmHOT+ENQiIyX23k+eCUxJppYSv2MZKCT78NLjIT2ILkbblxJqcph8oWdwHjVS63Ib6QMwjYGKRtGK0TgXhRe7/8n1+4dQySFeU1NFtnf2r5jnXPqpDct1O2svSQFZWH0t9G9DUFN9yR5hjrMX428RCOVdK6mcI3XfoCgdkYLOS+4v5a7p34GtWYBb1YseFpcg9IeCB0CXdSjS9lrvjtxO7BBnjUwcVNQM0+0rRI9cUq0EUgb6fIaCZt12ZpC+gz6WQHHYgmOjEjq3Ar+N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F7UNgFPLUM92yFqYl68wKyquqOUO4k0T4lWWhzwll43OWBNpXdn57vTyficHBzKqfVuL0h6xpV6RKmAYld6wMIz2CdWROA4YMYF202FtoP4kDJz51Hw1gQF7ZoFt/j6T66F0Tja5+L6CmwWzTJlDktKLPMQgcnSyUoaUWsIQyDsWgskGr1uEiFVIdddgT+vsANeRN7F3kM7K1Jh+/knsmlY1PldscSM6ptPjyTKqRukFcELjkbbZmF0J+O2/W8jPOqA1V0pKwvAd7g3+TBmPMIPck4hMKtJpz/G4B2YpRtwHFebZ+0L1HeUrXrin/A1nqxtQzxSJJG+z1h1lZnG+BXkSK0FiTNkBJv3uKuEX0r0IyppeEoKCZ8ZFzxCN+mV/0INR8nj2WMqV7rgdBnDbQ==; 5:hQtQc8yuxZMa0Iqja6UFIFPgJ75I6XEFZshMs2k99un6GpMFytqtrJGIDCXE1dYe2Y0eEiuDyY4R0Ggz5KayO/gu7ktKdQoa02tLVhP3M2VkYfMst6F3TQdNSmYQPjr6CWdabKPhymoMX5lEZFfM67s5tIZVe/R1Ixnhxt++Xds=; 24:as5caMleyNpSt3iqpJeSwwp3WQbooX/NEsBOSWMD/mS++RPkomTImR6kS6MOtRf90R5rqRI3JVIA+k9Kq7QfxBxOaisBbsLNeGGxTYkY1Vs= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:Symri7mKzYnc3lPaTGXC22cGeYgwBbzKF5xiM2VYUOsWFi/KkjllpSEoXlow47VD+YAeIfZTUlgRfPKqQi2iZn+clFUQUPz83OfYoFixD3PdqegJKT+yTGULcHR2F2qVz73ID4ZD23seIOWgnlSrQM3BODNF5SEMjtt0uDl2XvwVMIjRijZ/iLycM9C6ceRi0YkNly7miFmyasHatfCft0xUYd3FgOV+bx2AQym709A1yzNsINfaArYKHcjjOQU9 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:40.4228 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 89323fc5-e25c-4f6b-85a0-08d5d75bc094 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 01/10] bus/dpaa: fix phandle support for kernel 4.16 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" From: Alok Makhariya Fixes: 2183c6f69d7e ("bus/dpaa: add OF parser for device scanning") Cc: Shreyansh Jain Cc: stable@dpdk.org Signed-off-by: Alok Makhariya --- drivers/bus/dpaa/base/fman/of.c | 5 +++++ 1 file changed, 5 insertions(+) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/fman/of.c b/drivers/bus/dpaa/base/fman/of.c index 1b2dbe2..eb55cb9 100644 --- a/drivers/bus/dpaa/base/fman/of.c +++ b/drivers/bus/dpaa/base/fman/of.c @@ -182,6 +182,11 @@ linear_dir(struct dt_dir *d) DPAA_BUS_LOG(DEBUG, "Duplicate lphandle in %s", d->node.node.full_name); d->lphandle = f; + } else if (!strcmp(f->node.node.name, "phandle")) { + if (d->lphandle) + DPAA_BUS_LOG(DEBUG, "Duplicate lphandle in %s", + d->node.node.full_name); + d->lphandle = f; } else if (!strcmp(f->node.node.name, "#address-cells")) { if (d->a_cells) DPAA_BUS_LOG(DEBUG, "Duplicate a_cells in %s", From patchwork Thu Jun 21 09:43:56 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139513 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1845993lji; Thu, 21 Jun 2018 02:45:52 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLfFnHUzBRKb4LIUHUSr+BzO/PSMDRoOEnteT1txJtVZXh57C3UVB7BZsmwDUGC7R9zEGQI X-Received: by 2002:a1c:4a9d:: with SMTP id n29-v6mr4178588wmi.46.1529574352747; Thu, 21 Jun 2018 02:45:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574352; cv=none; d=google.com; s=arc-20160816; b=mGhU156KsUy7uDKoFlNeCcLgtLHBHb3OS9sYrWSIqbQ7dcgTCSgvGvJOWb07cwtFHu TuD8gCIz8rBySooJn6Uq5UWBN87jmqegtMo5IvMCn6u2FErwcNkeyI7cLVGmodtyjGN2 hdmfBfIOWbhKHuQnkM6ohZtxu+vYZSEFnEtgwhc4PGKyz5OlOvaOaHhsGS4FdL8+u8xb 7NF4D+tbw40M8RfbH9GMqzcbI+N0t9XKUyyBFXyvLeL+nmP0oydzq/tx2KJhFP+iNm71 vprdbXJ3+dB1QH921UGg6g/wy1Rc6oyjtXWS3ZjXnWGS9ni3dzz55immM5gJLSR0Pkt+ hq5A== 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=6KI8FBcsRl8o9LxpK9jAQv24safcM0wyg+kPy56T44s=; b=ZkIb18JroQo7F3xGJadhHAz7ba6/pMegpSJo/8V4jIsXhvSe72GgnHQM3RB1yvsPRM hesj3rm/MBgfzSfFOE08hvIed6esb1Q9nJVniWpdSVYAk4dKnuszafz5veEngpvY1cq2 FGz1kH0+I8/6ZDgPcJynG3K9IxguGDV41z7DxXoU89MvQn3EExCPT8RmSd71aPDcUw3T FfydM6C01ln2FTG7exqGkNtnk4fsAZ4K/t4cRkslc36EOKurquBNufdb0YnBUr/PdSN/ /aJzXQI//YVVNBEhY3DIWNMJotAntZLC5LeiF+hw6+CkHSdYrlN8dxIkL5PKZ0QOROut cC5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=JbC63Exp; 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 f6-v6si4089928wrh.263.2018.06.21.02.45.52; Thu, 21 Jun 2018 02:45:52 -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=JbC63Exp; 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 A32D81BDD1; Thu, 21 Jun 2018 11:45:46 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20043.outbound.protection.outlook.com [40.107.2.43]) by dpdk.org (Postfix) with ESMTP id DE96C1BBB4; Thu, 21 Jun 2018 11:45:44 +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=6KI8FBcsRl8o9LxpK9jAQv24safcM0wyg+kPy56T44s=; b=JbC63ExpU+BUvTJyaJtKbN/k3Bq7HupRYi6/JZQrI71/f8sQonNAcdXBHR0n0IaF/lcVG6N2lfGGX+QRvSnAr2euqX1zZfuobqqTBHwEWKVLsWznBLDAR9qNycMnkaeR687YJdOmFW8XlV7r41MVzXE6vhJgGBz8F5SZPv/+5H4= 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.863.16; Thu, 21 Jun 2018 09:45:42 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, stable@dpdk.org Date: Thu, 21 Jun 2018 15:13:56 +0530 Message-Id: <1529574244-18997-2-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 28475aad-32e0-4cdc-aaf9-08d5d75bc159 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:6f6VUvy8E6dAytjUdO65/6HbbvJHXQsgZrsVL5Ph0kzliI6ARYiWGQloRJkcO1ZV5xKbnyJLy0ZucdgHejpRbQ/6VFc9l8H+emoUEp68zk98LiYMlZqoStCM6wPWUqzZL/VKs41jgLkeL9+xp0Q/UI8nWS65D5ClVgCcXBwYI4VS2fGVOY8hVJ4zpMgXjIJ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ParZ6M/hPSHnWw7M+OdMnwFd5m2px2wXz5CjIZtsLbNzhfEPxBgQlS3PZtZAKVcq0x2fkhA2paCG4kDZmdKkOqq9ZmBEFf2ChhSd2IOgwFQgJ82Kl2Q4qQJko3UJDQM4cxgWk2cnGezw4OeMjbAq1wWHLy2KuGMz9B8yXRKo; 4:2RuZ9lMHMGuOvXG7v8vjUyRmX4DkbFDZaOaGkTYsmp2/pNxWvbRE8SHAlsjKrUDdkadMQiC+TXZzzhUscwvHYcLnJz2y+n1XOA0Mu/XjGNHoYeMkK54iN8mLYJ+4O6S3IB27yDtOmPOP+OGNjQzoR2CRM3Qd54H+Tgoczdbcr3tS/sNPkTx/OCg7XRwLCpQtGxx5N9xEMyc4Ep82dV/YfPZlszEcfiBNNAz7B7JBJbD2KyYLsHe80exlupF0vqoXYeYHFGmQVfThexQwVwJbRlv9HwawFFk3mApwnYD6ylyaiQuiGE0eeBeGuWTIhPcF 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)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(59450400001)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(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:ktdepMM5AVrTJCDjJ8/WEYYaqBxKrGAadN/eLphmy?= mrkemjpkNwdODrngv6fmuj3TMyu2oXfisZzp9vRxGtlijS+dIIPj9hPEPdUrYNddESBbuicHQnEDGPM7SsALOzIOyDZch3R2B5IOp/bdzQtD4xowZ5l9hSiRH5kSOr+oGJWnTmwjLIZGfAOKW81N51oI1GnZ63T2cwpc23D49zQufEuXMwrr1NpEJThWg5bHRWzzC/EL/gKaTgEyIuHUVQQfdPqcHoYLGpOKhSYekfLYkfMzU5sEOQ1Hi1+kRBigOXM8ixEhp6MdUCZWcAQcE0va+pTdhywnw5IxEjgIpzrFwI7fbhhOb2UsQdNwNw6wjsUFhduYnxPFYyLO8LpZqjnzUfFHPOsePZ0diHpQVIQsFDcHSgb1Ue0x829zhth2cFxh/qNLjr9DlXDGp9e/ETV1TXFzk6yr9ELYwk0oFE5r/BO1cUx0W+vIczeLJpsGDSHjnm8zRF9J4qwqrOVlwUkb826nwdXpPMwx8xan/HntN+pz/K0vsIzjwXIlobC4OKTaCoLOS7SCPX5iT0gOg0mkbdQtEvHMX8lPykgGswUt7U1Suwp+mncf/43tLJdJ0V7VY35psb+MV7kG2MhtMXvRIDM2Jss21WfVCv6YpG0NIaNLNiVEWTdvnRzBB1KwNLLVk2zPEalvu3HS+hjwd9fvjTiGRWqYmaDYMdihsn85rTG4g3m1BqU+FBnxKAU6qbLN5Eug0BU2FVl959wkTZWoPpbJwLmGiHQecQoUkn29pXIOKWjgnNpuPcl7xfhq3bMQLopFk0vVrpb8K5c9fTy22Ccp8c6hSDhbR6+mxsAsz35Ro5KGkOYNRTGlub9ivdFsKg1dnqyF/Ptj1e4oujjpMrBeaQQtCbku5Fa0el6Y8KenD+VOVeMgFuGIud7+4G6Fj8hRhy85oHF3ZZ2Y3OSL6xEaiXFK7MElnidDREZGOUWAtzcAc0o2ZMsjE4/jTH3fzs9uaEKh7CfBG5hF81MU6H6W1k762vsL69d1SI/mtwt5ezBZpLH+fd6Yrx46M4SaWXbwBr0sLfSLtjKogw0yG2kI16VbQDOnxcP2DzhVLwtcE39zxS5E9P0EaWWe18Jd91iuiF+KKKvcP0M2J/FLD/waGWVw+25vujgGYZFVkFx8NP7gjh+Gaju8DixF+rso01GXruhWGNYIeKhlBWXyLws7lMXAn4RAudEWPcya1WLahpbBfrdpnN22F5z2cCun2wvnWktBOeUNqmUutWntvcKcC4XKAWafCJk9UoB2/3wiPfgXaMvZu3IIV04AaqrX/hxEGVkVuPgiAgc6SCw X-Microsoft-Antispam-Message-Info: A7gvX5PMwypX+0LTyIRSjriky2p1/VJHzqBlc8LdaXD8UawLzq8t4Um7Nr65VS324jegXHUVzq2Rkpw/apPQNIaIdamgpBbPacwFavar66+2pyAAWUPuIE+hByp3JI8Wl+z61eUP7LQFupApNYDIGGrm4NxOoM6VsgP5aK9mUKs2wj/TPHahgAOL6qtdvQCv2RN7OIxZsoJ0MtIXydEGh4tC2juwsknSewmqMcn58s3nDh4o2HwtmySE5FUF3R8J7Sj9x2K9utxzucQmAiKNa/p6rAdjNYBwqkZV0FQQ/sJpB/XEaUpVei8QAalRONr/K/3QVlscrtm5s4p/aX4Q1w== X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 6:apwd7nQfuqqju7OpuOYphx8yDxyUqIyiZwUcopYW+xuuCPkcv91ZCURwIj3GZRLWkCytnNvxLIo09+4lGvdPA/APX2yyppwMgluaO62z4fztoDauDKcfnPsCCSkLQz1DhTo0WS4gozlGhw62Ffy+Dt4EHcheMcIEL7XRw2wBEaqvDTYNKvxi9gl8gLfMhM5mzfKGj1MZ7RowYma2WgvapjSf8uvobrLufDewROvoGxWOn2g8IzMlEF+Ik4W+MaXQ4TRvbNs8fqmYk3jSxJ+CbUDD9J8vpdTqfaW1bbB/jkGwfWEwxHUSieAmhjI54/yXJWF51IPhVVnpgsPfpQWUOy+JLC2Yb8O+NIfZwG0L8FDLnbyu3ZdCVODgol07hFhifnDWUefEcVkSjGbiigSiJFxiM8Ck+isgrKuVYBGAeWASMaPHJv6jDhf/1voUe4mo/+rGbpjC+MoBPadpi1wIEA==; 5:cY1HTLzTyIub0v0su0PzZFmP5HzOItMsXrIxz8/F9xFyRxCq0u9cf/QWOeoCSMsQoPMRsslDjDJJKtgmieMArwH6WhLwhWn4N3QciEw+4/6bVqiKIWeTFSvVVdvwY7iql+uRRGA2FoSWme5ygIK7/660PlLECti/rMPfbuKdUvQ=; 24:JIboWUNsdRS8q4tC0QAaH8Leg29OPT1zL+Oimd9B8qmstl7zWPdorpbu3L0ujAHh3tsifm9U/7vqGNR8wxgo9VwkL4YhF1fncT818xiSAZ4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:D3iiXTI1HamHYanft45dQqJS2fvJB8XY3ZLpEQLh06mKOQ8OwXlTGMJhYlICASuM1xWH3kJHeuih5OiZh94HYo8bx6/ABY+ysQ7HVYVUNdxRajGekc6dJvvudS/YBfwTksjDXPwhiZiLDt7BYA/2UeQfzoPnrbawxCp/6ljvUkeggBQeNSykHcPQeJDK+BVmatJZYEZN8PtJF58ww+3mQ6KI5Oyo151naDNRHDIRTb8X7zKeTowKrLZogfnURYUp X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:42.0051 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 28475aad-32e0-4cdc-aaf9-08d5d75bc159 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 02/10] bus/dpaa: fix svr id fetch location 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" Otherwise the SVR may not be avilable for dpaa init. Fixes: 3b59b73dea08 ("bus/dpaa: update platform SoC value register routines") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/dpaa_bus.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 2046206..7956bd0 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -539,6 +539,13 @@ rte_dpaa_bus_probe(void) unsigned int svr_ver; int probe_all = rte_dpaa_bus.bus.conf.scan_mode != RTE_BUS_SCAN_WHITELIST; + svr_file = fopen(DPAA_SOC_ID_FILE, "r"); + if (svr_file) { + if (fscanf(svr_file, "svr:%x", &svr_ver) > 0) + dpaa_svr_family = svr_ver & SVR_MASK; + fclose(svr_file); + } + /* For each registered driver, and device, call the driver->probe */ TAILQ_FOREACH(dev, &rte_dpaa_bus.device_list, next) { TAILQ_FOREACH(drv, &rte_dpaa_bus.driver_list, next) { @@ -569,13 +576,6 @@ rte_dpaa_bus_probe(void) if (!TAILQ_EMPTY(&rte_dpaa_bus.device_list)) rte_mbuf_set_platform_mempool_ops(DPAA_MEMPOOL_OPS_NAME); - svr_file = fopen(DPAA_SOC_ID_FILE, "r"); - if (svr_file) { - if (fscanf(svr_file, "svr:%x", &svr_ver) > 0) - dpaa_svr_family = svr_ver & SVR_MASK; - fclose(svr_file); - } - return 0; } From patchwork Thu Jun 21 09:43:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139514 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1846135lji; Thu, 21 Jun 2018 02:46:01 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKm+2eRf5f5PK0sIz+7BCext0IxCti/qRfvS3SkzxgnXhSmMh1wgp2YpYeqiqkINQZ07nab X-Received: by 2002:a1c:e594:: with SMTP id c142-v6mr4573953wmh.161.1529574361705; Thu, 21 Jun 2018 02:46:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574361; cv=none; d=google.com; s=arc-20160816; b=RG4m2WUZk4V7MFoEGmxdIdpZTxKa0N+cx1+vIn4CmTIcMIy0axQ0RJN029xxJEyD4O ImJ/qzZoPPnTsbcX9LlxOSUcLP/w5sz2fNN9jH2j9Q/Ra7FgqC6Yq89z5V4CSrOX7exm OfgKpRDf+PDneTtj89FJ6ZgFJrBZoCbUUyjh5AWjwjWUfUNuXclT80qyuBoljt0nv9Tv 3ESzvKkZ1JGYf2paZy6X9vYDzcsGJIdnO5MELIcwtvJes/qtLpJo1wBYWAILYAFBm313 DCwFI64T1DSrWrhOuxDgkmLRQlrab5CkDVRiFsI/iN5MaZ5T5U44g29x9IHXdSy9L+XZ eD5Q== 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=jTYFYMgVgx25W5ScxRyWoFCanS/M94HrBBZYJRb4wFU=; b=SQsauo17onUku5EYceJtEBf5r2uUaefsYyrQEPGaVLtsPZMNzAOQ/U1mSD3ynBlQIF t0xO9lyjbjnf+Cg09KAaZTOGt1eaO+if62pNVvb0lnJhV3kbDlFNSqqME2ivECCvEXB3 8+yryrG7YOf6nwcMi6AjiZfs1xGcm4WShTgsieUTsRiU9t7JtBtQrX+vA8JARhBVsDhB h25PfV7NKmFEhCFaI5NbfIb2QdG/hthdDY/OB2/MqZwxIlEeHS7I+zjfdhNKuZuP2hwI zS9sSMhpYazksUnaf07OxNcNmLmk9AXfjBISYOxMBpuYJLrz51xC6wfKSfeTCZWsxd9W XZ+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=fwqx0bsw; 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 30-v6si552965wrt.327.2018.06.21.02.46.01; Thu, 21 Jun 2018 02:46:01 -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=fwqx0bsw; 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 B6FE11BDD7; Thu, 21 Jun 2018 11:45:49 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20063.outbound.protection.outlook.com [40.107.2.63]) by dpdk.org (Postfix) with ESMTP id 133531BDCC for ; Thu, 21 Jun 2018 11:45:46 +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=jTYFYMgVgx25W5ScxRyWoFCanS/M94HrBBZYJRb4wFU=; b=fwqx0bswPAHIJl2iWRw3WVvgUm/4CqdKFKKWzUuResPDDAbOnMTHKSZMAvlEZyr+/ViFTaYvj/YUJedUu2ZFpL3Ye1+MfQ27hO8sl/62/Qel9+JLoHw365cr2Q2rS+xuu0Z6+186yUthcNzh8F/3LoAo/g5TOlBp/7y+AaTiS+Q= 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.863.16; Thu, 21 Jun 2018 09:45:43 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Sunil Kumar Kori Date: Thu, 21 Jun 2018 15:13:57 +0530 Message-Id: <1529574244-18997-3-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ab7a44dd-9c6e-4228-de3c-08d5d75bc221 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:BFVgjn9+xPBBKRRB4AmLwx754xhlEaf7OcrjL/cTneA7l46HVTkDPx+90B5OJC1ktN8q3LVTW1YdntyCKbYW9On4WkphW/JS0eOgPJx2VFTBok+dkGPjvjiuYqLjSnXFu+A4WE4zUdYQR3nygcQCj1ggmhBIf41jofDjLYju9e4C7sK1xy4if6zGAWlDBjmhQYACewje+WAbi+F96yPWJNTWHcvNy+2/7mcX5GVF/7f5Sx1jEpIWdBanITx6HPWn; 25:4OL1wu0l5ch21Bh8HRcx6ha6soUxOC5YwgPfOklNL7j+lp1B7qVn4EN/uloruWd/eQN9ycvyn5H/fVTc/hZkFlVAuegdM+Gau4pHq1nEZKGWIMv4S+JQv8clcQvLGK/mKOSHLsYhuVYU7EAZ3vB+QZu/XEjKiMDoVAcjJwN5ueJ1aawZ53/AYuNqRmGYBQSaRpBOKIOyF552LVazjUIU9mkEeL6CPMhJbd8RRxMf2IaBw8JefHj7oQwOkzncPln2K956z60KJe3BWMqswAem8nfsZyhe1kdwOzKTMle1oW5Q2B+C40bnUK70aafx+gi3KISIvBDxTbJ+1mohQtjx9Q==; 31:KBqWF0wCBCsPfCcGYG08ZBYrLBa13mjqAHg+9/Qq7BHDfgAQIV9rHp5BBNDEKDQIlIUbT9npGTElfOpJM7QxT2MPPloiU2Mhc2D8LCRfhLDV9Di9vbxVRvajs2mmOGbLxY3qW2xJ6Zd7U0QR/q5kXJhL5fZnzXpDAMPGQP91aQ6ESowlXG196inAXnsX2CUcpNO4OcwVJdg/SRPwcoe/EfcJxKfrjQWtkJp9I8qcaWs= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:XfBTJ+0aQ3qOYsDk2M95TGYnhjYbS6NW6h+ydC+evZMjN5LmjUL48ZSWJsmvO6uaysh5IKwuTwov3qOu3OFLNFMgq5yMmv7Wu7Yc5ucS1g+Ovv0zwwE+BOqsdTBMgI5UU2e2Agxlwd2P608ZU9YNVwFPg1L+pynOYY3edZGzPzplevM7z47Jht1AHtHKMTJL158lI47h/XaGsERQar2RQWCHdYwtMWgQUKGIh9aKDaDwWxAxui1nD/ey0THABz2A7Z7qPCnR/nNFAc8mu9HMG4gdQMAX8lZZc+JLJwu2EejCgFYz4K13SB1Qy/NDIj6hhw/LAxHYAbBQyDp/FBYRBJUm4/38jcTvHoUO0eD0BlBPVfkyWqTR4hAcw/2vg1z85LK3hGFZMTREuGhHmRIvmBjaoW8noBVlz2e/qPI5Mf8zceAAHCiimRtRjCFvu3OeOZPBXchUKnitoiPtzyNIcKCjyf63g/i7wM6KyqrboH71dtcTHClPnrVpU7mSnIz2; 4:0v4ahZwbskbTnYP1ir+iLesdcVTAowbjOqjkERIad6yzw+hG1w7WQ+e1ydnCrtlaGkt3/zIOBZboCQcfusgX7yPn5URQJMNn2P0wiT3K2lk/gnC0PQi1ntZgpSzTWV4rs246Iop0PaqRN+IA4L03/La0yzj1HQc4TaC1rmG0KUNJ/8q31CYILjJZTbXOqCFlPaWwHh9Mjo8DWzFwgvbdMMkvltXJAMzMG7tKbSyZ2FrjneiuqIefM7vTKUvcOE715Ef15pao5V4ej5vMNNoNDoTUrJdKoPNt1IIubdA6uZ1XPLzpnCsNfqU+YxKaeWS3 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)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(59450400001)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(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:xytLdzaj83pGNHjqPrk6wuHAHy4PMJrwQXLMF8LQM?= 37aIxdWiBCt/8BIkLDD2JddLSBwpuhTaDl8kbSm4zL0/HJB7DKr/xB93SAu5BiTRxxVKqGxvhV7mIuXJB1y0CW0eSd+4Zb0+LUoKrvpsNU4st+MY5qyOH9TkQfXPamEEkBOXtju/ljQUL7iN5nYICH8wi7Gmmc83V24xH4ZFLbZZGNu4LN4PssQsKbsTSSIi8BkipQWtGHsaKpXHzw+yFOn+6pvscfN9+dkcuhPNPyILo7vsKqt9er6M6wpM5s6CQlxBcr2J7FoOiUPKawrPkDIR3Z7EcqDy2O4h32YS6J/41vjaYdQ3wksKr4zlpG8HfiEhr38CelNm6ZGmRLCMVS79kc2r0B6MXF8fGrHMHASAoBP5vx7PNUTwhxuYyivDl1shvaL2qo4pLR1qHXGZxx7t9OiGo0pp5EC1TCH4aYUpFUJTXqQ10BLDGzrhPZRm0Pk0Vl2g1M9hfxoiqef1mQX0BcU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BjjuGPD/wRRBdb5InJBbAn6vsjzV7T9VEnju9/LhDTzLha6cWU7tiLx2FFG9peWTd0HBoYHYt+IqlUHUsJMVReJR/qt5ac50TSXwkGTrsE9nYnKCKWENIRxTaQaS02unOrS4Kus5xLQkMlNdueRcJjzxfQXC/oab5SjsqU5 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:43.3121 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ab7a44dd-9c6e-4228-de3c-08d5d75bc221 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 03/10] bus/dpaa: optimize the fq callback routine 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" Avoid array of fq as packets are dq only from a single q. Signed-off-by: Sunil Kumar Kori Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/qbman/qman.c | 15 +++++++-------- drivers/net/dpaa/dpaa_rxtx.c | 2 +- 2 files changed, 8 insertions(+), 9 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 27d98cc..13c4315 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -1058,7 +1058,7 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, struct qm_portal *portal = &p->p; register struct qm_dqrr *dqrr = &portal->dqrr; struct qm_dqrr_entry *dq[QM_DQRR_SIZE], *shadow[QM_DQRR_SIZE]; - struct qman_fq *fq[QM_DQRR_SIZE]; + struct qman_fq *fq; unsigned int limit = 0, rx_number = 0; uint32_t consume = 0; @@ -1092,14 +1092,13 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, /* SDQCR: context_b points to the FQ */ #ifdef CONFIG_FSL_QMAN_FQ_LOOKUP - fq[rx_number] = qman_fq_lookup_table[be32_to_cpu( - dq[rx_number]->contextB)]; + fq = qman_fq_lookup_table[be32_to_cpu(dq[rx_number]->contextB)]; #else - fq[rx_number] = (void *)be32_to_cpu( - dq[rx_number]->contextB); + fq = (void *)be32_to_cpu(dq[rx_number]->contextB); #endif - fq[rx_number]->cb.dqrr_prepare(shadow[rx_number], - &bufs[rx_number]); + if (fq->cb.dqrr_prepare) + fq->cb.dqrr_prepare(shadow[rx_number], + &bufs[rx_number]); consume |= (1 << (31 - DQRR_PTR2IDX(shadow[rx_number]))); rx_number++; @@ -1107,7 +1106,7 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, } while (++limit < poll_limit); if (rx_number) - fq[0]->cb.dqrr_dpdk_pull_cb(fq, shadow, bufs, rx_number); + fq->cb.dqrr_dpdk_pull_cb(&fq, shadow, bufs, rx_number); /* Consume all the DQRR enries together */ qm_out(DQRR_DCAP, (1 << 8) | consume); diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 1316d2a..805bc30 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -431,7 +431,7 @@ dpaa_rx_cb(struct qman_fq **fq, struct qm_dqrr_entry **dqrr, } fd = &dqrr[i]->fd; - dpaa_intf = fq[i]->dpaa_intf; + dpaa_intf = fq[0]->dpaa_intf; format = (fd->opaque & DPAA_FD_FORMAT_MASK) >> DPAA_FD_FORMAT_SHIFT; From patchwork Thu Jun 21 09:43:58 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139515 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1846326lji; Thu, 21 Jun 2018 02:46:12 -0700 (PDT) X-Google-Smtp-Source: ADUXVKISxQlyiG/NVa5Zei6kuo67LKn6bSA1ysay6CblK15TUtE5xR+KXy9y666ZTvBo0PLlCZEg X-Received: by 2002:a1c:7ce:: with SMTP id 197-v6mr4376446wmh.134.1529574372396; Thu, 21 Jun 2018 02:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574372; cv=none; d=google.com; s=arc-20160816; b=LYSkaYc1DdaTTAeIRSur9ghXhL+MeNGcCeBDNHIrHb6q0IaK2AXhHW5N3RCw1TfgBv aZD4DyR8IztlRWi2TMzZT6YE+GRwZ0K5lQBv1lfaIiJeQh3qzSVStSfmjk0Z7GF2nntJ LsnRw06U2p6JuVMLwCOAZ5b4qoTMcBblDNs4PP+KgxSei6VN+GQKsRRCZKCaOGXDmnX7 IpaO0akXYqh6CzeXQOiewozHLMcZhDD+FJXmDIj/DyCPk4MK5mHLRv8ZBLE3kDnrqLpR X+ipO4lo/IibSTq4SNCTcq85k5hDUGyhMf+uxjYlY+aa7+EHxIBqUQ1ayyhwUG+f39CY g62w== 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=+Xigs0/pycWk/Bxzn6lQFDgCQg7JbKx5lbTLF7QyEIk=; b=KroMG7P2YcOEBtuVCDq+PDceA7KMpnYE7jt9vkvr76mNObSBnXYaZV8L4/fY1nABqw 1qR8OFURyeDStY6+454doAatqnBXGZ77Qbr5/MNo2T+xyxJ2BAzjL8NioDiTPUprnl/F qc4jz9AyospaBg6m1fCV2tqUI814vbXPf4T/LdLj/QPbK6TmeBV53NNuFC5CTKGpHXXS F8uhloRjgouwNVLcecjwvn1VBH63ha2HHI8YiuZWKTKFeQuuphWwrjkgdP7xtScikUM2 QTHDasGtkjIlfQFeY7Om4Co1nSMWkZm3vIYsEbrpDVOsZpFyLkFxIccPhNDDVYn2TTWb aHgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=JashanxP; 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 s26-v6si860321wrs.459.2018.06.21.02.46.12; Thu, 21 Jun 2018 02:46:12 -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=JashanxP; 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 9F68D1BDD4; Thu, 21 Jun 2018 11:45:51 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20087.outbound.protection.outlook.com [40.107.2.87]) by dpdk.org (Postfix) with ESMTP id 2011E1BDD4 for ; Thu, 21 Jun 2018 11:45:47 +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=+Xigs0/pycWk/Bxzn6lQFDgCQg7JbKx5lbTLF7QyEIk=; b=JashanxP3yPph9wV3b81JnqF+qF/ppcRVsg+0NdIW8heintFtbg0tkWI0FpskjzL9+2Md49408X5GVAmH9LTvdo3iZaAT/XYYq0C0+Un/VTtQaEq3YeJ4oLtri2ZmJRK+WCl5lXWFWTJBAnnaoEScrPkhtP4p4Rev29vQeCgngY= 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.863.16; Thu, 21 Jun 2018 09:45:44 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Akhil Goyal Date: Thu, 21 Jun 2018 15:13:58 +0530 Message-Id: <1529574244-18997-4-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 608672fe-679f-4b0e-a14a-08d5d75bc2dc X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:Wcmi+KA7znm1HfZNzmdDA+97VuP84lItintI0exAG3DmKquo//zMXPGEYwEPMRjwjxDM5EgYPdwMJ3nFW6ysq2tqM0lbmFNUiJpCNVG6gMrikwLww6zg39gRXOx9OHXVqnp+E26Aojx+zbOZwyW/s2dhreVXo8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z5NGmrtdhfrVIdsh/l2E9XP22cEUMY84tURbODPvVjcpYmZ3hb8vw83uRWNjLAIKXA2v0DT3cU1IqHrqCX4UkRhCnp+zCkpISfGBAdX/ChXEqDpK024LSrE8uXocnFBt0xfvZXV/YnPxzcXntRbvcao6HwkV2Cj2giwC1nJDGOqT3zQ6NcPxE6z7B78hIs0ECqYbp3h8e7; 4:zXSdVRNd4Ily56i7aFewNoxhCjxLqTR3aAro2RQyytYMG7oSJzX3223GX9O9/Qlrywg+IuZeC0GJainG7C9Kg9SHYikDRHL1C7Ceohu91lsINyzkLzk/OgzpaFJX0x/8Z/6XVHBbHLaoHJtQSLwfRi1jUlRNcM+1ZK/iAnVbxtHbryoq/faMvp26f7DO1KhMK8Ln8RkITiIdAvPxiypN7CATZNqeOAIPxRo36eION0t9vmm8RcRTobxNxPOi823Dty9mW1Bl2i4CDTtg1OCYJRaWYo4YF2N6hp0LtlKphQRT0p4l2HjfT89AUXaDzxz2 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)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(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:nGQvn3b4XY1Xa9MjOLqF1njIHFBCvC37sNMn3URhy?= u1PtQ2FRwmKf6iDBI/aYN78HNe9/OtBUz/2O7V4OYOLS/ng0OAPdjle/nPMBCvAtTMcFipqNRZXw4K/The9SH3PiwwSTGvtRmGHmntZw2x+oenf0tl12VS3wg5PF7UMQkTig5uGdpxpAooBNaw1vezBQMosnHl/94uWVvtjuaF9buY1Rj84hYCvR++5b94KifeYwj73iZeqR1LKoIQ6MW0I0a9c/39QThyjN6LpbfgLoesFZ3GrNfHlcaPoX/sCzicFSYoYUm92iozypR7sWueL/rFCtv/rPwazbdQXvren7g1rqwskGn/c3fo+1paPcRTztc9cKuSC4d9AiEuS9YrbX3PH39gbEeOPegrNA3LRZs06N24gHby6tiIzR7QekdzTWPQQK2ymrdQcIz6V8rNx1sNnvakxm6gVp4E2gbMuM/5/7XLYBmYIf5F11LGLucQChctpnBs0fb9bRRGpYI8qR/Gd2Ae1UMvHPu6Y94GMgedYq4wlu/nbruofzw307AWDX6iSJUVO/tge3CRJSxxgQq6WJmbxu8OKriaU2IG+xYs3T1ZyvZ8dR7aDntZQ19RzXNvZvw0IxNpb/P1XFfbecsaaOzFeV9U/InCprGWyyfhgdAcaJM30Zy9ftyxUajHxfqp8l17tH5yGKUQl5HaPV6gzEVzLkxPUiBIqcNHcdn81cJzzCSdbx/HN9BI21ebwcI31xryk6va7HRnuK8AxEqOuQMPs0PPzr3ZU829x9keoN2e055VmbpxpXGT9iwXJ5cxxaxeZFBXGtCNWR04WqL2/U4Wj/BZpateGPD2mT0pczFx/j1nlaKxtPADD/bXrv9i/GLJB/QTeOMZpsn0CPB5oi/PS9mLLlDlxoymlktk8fxitut5ghRdWgEOVCAMV5DdYKv2vCdvyOzodPh2jR9HQUlXBoIvCAGFzRdBeMWnTCz8tpSj5hbp/UEnv4LWVB/gTNkbNUwcxSTgOQV+7gFur2dmLZylQQreGcpsMnQs3xMFExSJE1d6G8zgGxnzpPaWezuOxdRoIhCyUDNN22WWZlvpHdC2AvdGLNb4slDdsfAiIqT06sLYsjelnbX6I9FExRUPwxoj+KyhThKHppM5ItGMXCPqIkti/1p9z/ciLqxkVoUlLWppN00cabywMuIgF+lf4GRBD0ddbudUdY/oM25dt3rOPmokC5UG0bmeBQQmmvfqtZh4my+uoER5JyntmTSGNtfLM5POIspDdXSpVHweYLvZWsoJuGz7eIcp2rC8lqYomsn7y2jNOA14= X-Microsoft-Antispam-Message-Info: ynOvNF/cLoo8dVisqRsIK7hD7Xm/37ecK3IL+eweQrZGMBWlorAPOoylV2yejeLONrCpTifB2B5Xnv3499iyJcgo6O0Vv1KEklo6pWBCsGPSng3ehNjmH/lNJabDRxPDjv07CyJNLwj8V+b/DL1k1KS9NnswTIW3hwScHNMwuPoM4yK46IrOUrIAphGrTVy9AQymCQYOoVLUWD9MCm2zm0AN37D83uTM9Iz8AhlvFqV0KY0hRDmyE2ZUsSnOcuveUU/RdCqNFGSxUft5GA4as/oigG1mdD8lF7eHcGLKzgkSv6rRgjsUVtZMF/9MbW4OqxyfTbnSeETqKzCW9gbmow== X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 6:7G1czOWBmGZphI/IdABQBLogUmjIbIPXimfXgodpCnx2zWF6UUIUMHLilyvfoqg/m/2z0xB4yOApa5v+FQP6gjd4E40sm/W6YErZwns98ucVh9IM/61uD3zGMBheb9AJYYZHedQ46I7AIMiXIvHV7WgsZx5nLpa/06QZahtsTvFMwhPDOAzn1WIfulcNCqnGdagdwRgXYbetZlYji45CKc42cnE5kOdawO6ltfhe7xuIsAPB6RoS3P4lmD2Pj9NK/pBwJffca6k2ohSWUbj+Uh7JQrjPg7NiaDvTdz0IIAPpUQqybpdf5ou4XXBPwy0pfPPOzmfRHiE5pwNdg720/h+mWyCjVMfv72Hg1XTYhSktolMLZo32lrg/Whq+0La1jzFIT8HFFIv8+q34WZA8Ed+2oAQy3ErDTda3qVeXmTO/Te/kWwVhxvd2McZH0JXIwHgBoh8EE5Zf70S44EIkzA==; 5:0ZOW1DjpjyC8qNkDm5LFfRk4oc/GBQ77rxADtqRMRuyhdXAvuYW0/GnBzOyQT04KlgRcHCxVASiC/OXYFVsTnaSEJUg7VuCd1EeaZz2NC0IPgafzJhqzGIpinsZoZqoiVhrFKM/yAokbrZ+bYQJ43rJeSXhFih3K4JhP4AgrT9g=; 24:qQ9kJhxkKNZM9hseoLh3Do4coCbajw9tGwzcLSyc5I0BGnx4/cYAmX7ADValYu8flB+FoprgcsJbN4IqqWNTWTbOwZXmSU8FioFujn0xP8Y= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:my0SUM3whjbMAr2taB4++daOe8LrbWLQkkNQNpGpuCtppVOspPj3uvUAZp0kYtz7ms9pjJGz7TtUayB4S3Q0EvilaUgs0amCLBoCCzQ7ZyD4upRHa6N+ZqVY32CzUJ27DvAONN1kdtPK33HRxvk2Qqq5zXGCNf5t5fv6dYPSUVkKXnwQXmcPNs7UVw0AJZo5JhRXDW4nIlrQFRQQPv+WUSYJMsNn3EZylYcxs8o8kz0fsC4f5ZSsKl4Si6NSE+6P X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:44.5261 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 608672fe-679f-4b0e-a14a-08d5d75bc2dc 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 04/10] bus/dpaa: implement new of API to get MAC address 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" From: Akhil Goyal Signed-off-by: Akhil Goyal --- drivers/bus/dpaa/base/fman/of.c | 39 +++++++++++++++++++++++++++++++ drivers/bus/dpaa/include/of.h | 2 ++ drivers/bus/dpaa/rte_bus_dpaa_version.map | 8 +++++++ 3 files changed, 49 insertions(+) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/fman/of.c b/drivers/bus/dpaa/base/fman/of.c index eb55cb9..a7f3174 100644 --- a/drivers/bus/dpaa/base/fman/of.c +++ b/drivers/bus/dpaa/base/fman/of.c @@ -546,3 +546,42 @@ of_device_is_compatible(const struct device_node *dev_node, return true; return false; } + +static const void *of_get_mac_addr(const struct device_node *np, + const char *name) +{ + return of_get_property(np, name, NULL); +} + +/** + * Search the device tree for the best MAC address to use. 'mac-address' is + * checked first, because that is supposed to contain to "most recent" MAC + * address. If that isn't set, then 'local-mac-address' is checked next, + * because that is the default address. If that isn't set, then the obsolete + * 'address' is checked, just in case we're using an old device tree. + * + * Note that the 'address' property is supposed to contain a virtual address of + * the register set, but some DTS files have redefined that property to be the + * MAC address. + * + * All-zero MAC addresses are rejected, because those could be properties that + * exist in the device tree, but were not set by U-Boot. For example, the + * DTS could define 'mac-address' and 'local-mac-address', with zero MAC + * addresses. Some older U-Boots only initialized 'local-mac-address'. In + * this case, the real MAC is in 'local-mac-address', and 'mac-address' exists + * but is all zeros. + */ +const void *of_get_mac_address(const struct device_node *np) +{ + const void *addr; + + addr = of_get_mac_addr(np, "mac-address"); + if (addr) + return addr; + + addr = of_get_mac_addr(np, "local-mac-address"); + if (addr) + return addr; + + return of_get_mac_addr(np, "address"); +} diff --git a/drivers/bus/dpaa/include/of.h b/drivers/bus/dpaa/include/of.h index 151be5a..7ea7608 100644 --- a/drivers/bus/dpaa/include/of.h +++ b/drivers/bus/dpaa/include/of.h @@ -109,6 +109,8 @@ const struct device_node *of_get_parent(const struct device_node *dev_node); const struct device_node *of_get_next_child(const struct device_node *dev_node, const struct device_node *prev); +const void *of_get_mac_address(const struct device_node *np); + #define for_each_child_node(parent, child) \ for (child = of_get_next_child(parent, NULL); child != NULL; \ child = of_get_next_child(parent, child)) diff --git a/drivers/bus/dpaa/rte_bus_dpaa_version.map b/drivers/bus/dpaa/rte_bus_dpaa_version.map index 8d90285..e00c911 100644 --- a/drivers/bus/dpaa/rte_bus_dpaa_version.map +++ b/drivers/bus/dpaa/rte_bus_dpaa_version.map @@ -92,3 +92,11 @@ DPDK_18.02 { local: *; } DPDK_17.11; + +DPDK_18.08 { + global: + + of_get_mac_address; + + local: *; +} DPDK_18.02; From patchwork Thu Jun 21 09:43:59 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139516 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1846509lji; Thu, 21 Jun 2018 02:46:26 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIhPMzXjL2GHhzVlb4niSlbNOzcCpF4TtKZmlZA2+1kqS3+2D+VTRz6vocU5zpkUtwkAOfS X-Received: by 2002:a1c:9514:: with SMTP id x20-v6mr4806370wmd.76.1529574386020; Thu, 21 Jun 2018 02:46:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574386; cv=none; d=google.com; s=arc-20160816; b=SAKY8WiFFOy8riVWcEXYxinUDl0xxW1L+IozFsYuyV0U/HWY2RpeUBVi06qoKlbQQL vbV5UXRrUKMOyLAny2peB3bnDHS1ntrYSXhrvLNikmhPRd7mA6yaCw9Hmw2BZsOG+qCl weHouE440qoiUKjCgE2MBhVlINx+50hwbWswvoE8O7+zVd1s0+bCy0KSJHhhmPxkuOGq OlHV9HRKdRO1ASoMK9pONkV/fM6b90YbVBxSnEcuqd9aVt5PmRn4XELtPVJUPScpqcuB 0EfyswTyYtT7uZwjpeJkkZBM7Cn7sxTtcRJgNRkJqguHuFV2EHgNPzBbpXDNdA8nb+Eq MqiA== 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=osO80at3KwZiplIAhS0bQYzWNJz+a0hkztBldgU2HIY=; b=g2GkeXAjgnM4QSgL9NImr3LrltkpSTGGYVjgPbcGIufdWKCVMdwYZ9HvITJaM4ZcBY 25gH7+pzkeBayHLdFNOSakWV0YozXjDZD5mkPC3FQMzwmimzkHDD5itBkiBVtzcTzIZI rRZ/PBK7bnIwF20mSK9lkNV6ncWbMX5DL4tWBwPjKNvw38kF0maqTQ/XQuynXLoXimuk xU8aC2EKDi8MidMmHS4msrEG/6OOz4Q0Y0/NWq6EOmZ8/2v/1brVyFcgskuDMtXiZBxr VOz2D8flgOIZaeCsE0QkrfWxSnnGovXBnIjcEeq8l7TTFdVxzluIGYCGA0il6QmZ8Zd7 taQA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=tyD0A4Zw; 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 v18-v6si1555500wrd.421.2018.06.21.02.46.25; Thu, 21 Jun 2018 02:46:26 -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=tyD0A4Zw; 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 7BD0C1BDE5; Thu, 21 Jun 2018 11:45:53 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20077.outbound.protection.outlook.com [40.107.2.77]) by dpdk.org (Postfix) with ESMTP id E43361BDD7 for ; Thu, 21 Jun 2018 11:45:48 +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=osO80at3KwZiplIAhS0bQYzWNJz+a0hkztBldgU2HIY=; b=tyD0A4ZwdcZvOkvT1W1xHZ+rC0IAfjlcevmsyJTNigvYJaHxIMwbZREMThDGdRTGLcForKtrSeMC1xWflNV9hu7jwWb8Z0e3RNRceif58dHkrODThEDy2cW3sw19YyYLSZSewdwZrLlbws02WfPf50/OtggQQOVunPtNTvyQjzM= 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.863.16; Thu, 21 Jun 2018 09:45:45 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Nipun Gupta Date: Thu, 21 Jun 2018 15:13:59 +0530 Message-Id: <1529574244-18997-5-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ed949c94-641e-4098-c41e-08d5d75bc398 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:vb/h0vIKxpC6a0D8zUiTddtU5XLzqjLRwefXy8TiUkmxw6VWhRxZe9tJhbYxWYnp/TB99yFQqD1yyeDOMdDC51U3RV7cu8oUn5qcuAvcViNHQja59km7PctbS6wzEIjol45jNIq9lHWz6FXcrE/ciJBj3tFgDv37beXlKcWMA3uSDdxZOoqTrxyiWrRS8PXaoe5xBK4u+qqaUiBvFd9Y/e3WiYtnglO2d70Gk9tQmRBALwMJ7AvRDTdrFq1TSl6E; 25:4FaErcAcMKt3XKMPfbco8e4fYwn6pGy/UAZyssprdwD6iHXjmjAwlE+xK/c8v5SGv+daCYAAcCCvH9OrFdo1uoqjgUKd2tRXHS3dldxyQkUg17H4Ahd+stBrbmi7ZTZFW2aWeBoLROnmVTGYWx9YQ+crEWt3/clNvYEbaxwGQ7F6JUnuRBiJEfx9xies8JgYXlNRqzkGc+6V1lPSnjMpCraGaHoiqTTEzyZFS+4Z+IGWLxe+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tnsj/5moJ2JIquXPfAMKN6+QP3RnF8ZKP0TZvMP/75GQxqZRnUGnvtQOk4fxTfqgRr1u8kuUHEJT6MOTIgYW21Gxspqg3uDCIuzeDJ+QVaVsa9IrDAmzRQi6m1X2nkmU3G0ZJ/jZsBFR0RVRVSqzVLx4HERVKwwXsLZHPEtG 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)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(59450400001)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(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:lbOHOBS2oiLlN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kmmlMqbOpKJdvhEa5G/E+AKC2FJwsSWHbiZQ6064V9AfRfmfQ==; 5:WSXBQ8UFuaoIJK8zQz3uaHm/kSGIwA3BKpeCqV4vVZnJAGvVyrfYeAQC/Iq23bJwcYSYSqRv0rSLEzsoMS8F/wlhao+gcCiVbLaGsroyVylptCsIjC5TzXMCM2LEy0G62EWMcujpVqXzvnP6il8Mel401hetZkGRT3agJcMXByk=; 24:mqmZXm8hcbKny+/uHoleK49CytDiBiNSXOIMNB8bTfJ8YAgG4u0tuTSx1lay12Sel0ssyXjxZzbuyB/a5LmAdQrUb5Dkq7CSJnX0uRif0bw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:vRR9gUngEoR2tsTpqQPqzjSeayzFaaJsHOagDvk1RRQKchUTXhb5wU+b8eTWn9RCgJ/+CqDpIg0V/4t/0+R82GW9iHPLASoJxVY/wfEQWNI04yAxdMC4ghc1SGcLXCxi46W+kC0xIXVJ2gS1B9/OkynSrhiVuJvesU6NZsdLgNLStt+4R7X2I0pFnNUYT0VJdh6/WGzk3q1rgQAQddRzEPYO8U+HfOk/hl8Qb1oOx2jQIYuURc1rIUIbzzI2uOfA X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:45.7590 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ed949c94-641e-4098-c41e-08d5d75bc398 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 05/10] bus/dpaa: make vdqcr configurable 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" From: Nipun Gupta This patch add support for configurable vdqcr exact flag. This boost the performance, however this can give side effects for some extra packet fetch. Which has been taken care in the patch as well. Signed-off-by: Nipun Gupta --- drivers/bus/dpaa/base/qbman/qman.c | 4 ++-- drivers/bus/dpaa/include/fsl_qman.h | 3 ++- drivers/crypto/dpaa_sec/dpaa_sec.c | 19 ++++++++++++++++--- drivers/net/dpaa/dpaa_rxtx.c | 18 +++++++++++++++--- 4 files changed, 35 insertions(+), 9 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index 13c4315..f5fe5ef 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -2002,13 +2002,13 @@ int qman_query_congestion(struct qm_mcr_querycongestion *congestion) return 0; } -int qman_set_vdq(struct qman_fq *fq, u16 num) +int qman_set_vdq(struct qman_fq *fq, u16 num, uint32_t vdqcr_flags) { struct qman_portal *p = get_affine_portal(); uint32_t vdqcr; int ret = -EBUSY; - vdqcr = QM_VDQCR_EXACT; + vdqcr = vdqcr_flags; vdqcr |= QM_VDQCR_NUMFRAMES_SET(num); if ((fq->state != qman_fq_state_parked) && diff --git a/drivers/bus/dpaa/include/fsl_qman.h b/drivers/bus/dpaa/include/fsl_qman.h index e4ad7ae..b18cf03 100644 --- a/drivers/bus/dpaa/include/fsl_qman.h +++ b/drivers/bus/dpaa/include/fsl_qman.h @@ -1332,10 +1332,11 @@ unsigned int qman_portal_poll_rx(unsigned int poll_limit, * qman_set_vdq - Issue a volatile dequeue command * @fq: Frame Queue on which the volatile dequeue command is issued * @num: Number of Frames requested for volatile dequeue + * @vdqcr_flags: QM_VDQCR_EXACT flag to for VDQCR command * * This function will issue a volatile dequeue command to the QMAN. */ -int qman_set_vdq(struct qman_fq *fq, u16 num); +int qman_set_vdq(struct qman_fq *fq, u16 num, uint32_t vdqcr_flags); /** * qman_dequeue - Get the DQRR entry after volatile dequeue command diff --git a/drivers/crypto/dpaa_sec/dpaa_sec.c b/drivers/crypto/dpaa_sec/dpaa_sec.c index 06f7e43..a07869f 100644 --- a/drivers/crypto/dpaa_sec/dpaa_sec.c +++ b/drivers/crypto/dpaa_sec/dpaa_sec.c @@ -526,12 +526,25 @@ dpaa_sec_deq(struct dpaa_sec_qp *qp, struct rte_crypto_op **ops, int nb_ops) { struct qman_fq *fq; unsigned int pkts = 0; - int ret; + int num_rx_bufs, ret; struct qm_dqrr_entry *dq; + uint32_t vdqcr_flags = 0; fq = &qp->outq; - ret = qman_set_vdq(fq, (nb_ops > DPAA_MAX_DEQUEUE_NUM_FRAMES) ? - DPAA_MAX_DEQUEUE_NUM_FRAMES : nb_ops); + /* + * Until request for four buffers, we provide exact number of buffers. + * Otherwise we do not set the QM_VDQCR_EXACT flag. + * Not setting QM_VDQCR_EXACT flag can provide two more buffers than + * requested, so we request two less in this case. + */ + if (nb_ops < 4) { + vdqcr_flags = QM_VDQCR_EXACT; + num_rx_bufs = nb_ops; + } else { + num_rx_bufs = nb_ops > DPAA_MAX_DEQUEUE_NUM_FRAMES ? + (DPAA_MAX_DEQUEUE_NUM_FRAMES - 2) : (nb_ops - 2); + } + ret = qman_set_vdq(fq, num_rx_bufs, vdqcr_flags); if (ret) return 0; diff --git a/drivers/net/dpaa/dpaa_rxtx.c b/drivers/net/dpaa/dpaa_rxtx.c index 805bc30..168b77e 100644 --- a/drivers/net/dpaa/dpaa_rxtx.c +++ b/drivers/net/dpaa/dpaa_rxtx.c @@ -560,7 +560,8 @@ uint16_t dpaa_eth_queue_rx(void *q, struct qman_fq *fq = q; struct qm_dqrr_entry *dq; uint32_t num_rx = 0, ifid = ((struct dpaa_if *)fq->dpaa_intf)->ifid; - int ret; + int num_rx_bufs, ret; + uint32_t vdqcr_flags = 0; if (likely(fq->is_static)) return dpaa_eth_queue_portal_rx(fq, bufs, nb_bufs); @@ -573,8 +574,19 @@ uint16_t dpaa_eth_queue_rx(void *q, } } - ret = qman_set_vdq(fq, (nb_bufs > DPAA_MAX_DEQUEUE_NUM_FRAMES) ? - DPAA_MAX_DEQUEUE_NUM_FRAMES : nb_bufs); + /* Until request for four buffers, we provide exact number of buffers. + * Otherwise we do not set the QM_VDQCR_EXACT flag. + * Not setting QM_VDQCR_EXACT flag can provide two more buffers than + * requested, so we request two less in this case. + */ + if (nb_bufs < 4) { + vdqcr_flags = QM_VDQCR_EXACT; + num_rx_bufs = nb_bufs; + } else { + num_rx_bufs = nb_bufs > DPAA_MAX_DEQUEUE_NUM_FRAMES ? + (DPAA_MAX_DEQUEUE_NUM_FRAMES - 2) : (nb_bufs - 2); + } + ret = qman_set_vdq(fq, num_rx_bufs, vdqcr_flags); if (ret) return 0; From patchwork Thu Jun 21 09:44:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139517 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1846643lji; Thu, 21 Jun 2018 02:46:35 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJaQjXypJeBFx6Rj4KMGOdalJqHtuv29uUuHmxSWuA4vCidUyX78A/uFDM/Bex3d8mmhHNm X-Received: by 2002:adf:e20b:: with SMTP id j11-v6mr21331770wri.205.1529574395079; Thu, 21 Jun 2018 02:46:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574395; cv=none; d=google.com; s=arc-20160816; b=eH5ppPRcV/cRi4QmhdQ+oXRZxq3FVa6jwG2lVahJJFEkxJqkhUZOPryZbvGocqZmZ5 ByNMOdXc+VUKmD/jhJd+56HyvJAYlLnqVzfDxU96CXcbdtIajMkjEyorSVsMtk2p1Hbe qm1dQ/LK2MiGcmV7fHE28c8DY5d3aT5DTS220wSHOQstO65ZhX3iGgFvJJfK7HS1pZsy ij0+q3252O/P0ivEGes7/NO1upH3gqQUNk9hpuHTc3LL/Om/6dCdGgCXT8YqVBGgAGOp lF49FhOCV6Plp9B23hjWpPTUgyDEZ3MAIRnzfrOOSqEPWS9+f7LsZEEHTITBGQS02vU4 ZVDQ== 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=7N/KPdEWO51AJZX/Q++JYfWhSkA+gu8/eQTXbDBNIoA=; b=VpzdjtfSQTXOh9ATHoEC45nLruik5UrhajJkXeYEoAdC3x/krrtEBeCvHZJDnmr2ee IV0bdSpbfUPxTc1MofPuf/GWDk5nxQSMAtb4QVFzIygztR+FLmIQQ6/rauZhZuwcJY0U Jmr7dtrhkcwV7qGnBMbm8WhDh2zXicKV1ZQW5X+ycoL1rmYVHl7EubKKuuIbCUoQpSWz 0WQg2UK/kV0m3uvpjI4ElhlRG/nLorSRFdkC+TMDtJ85mJZM4RWDqEIZNzId8PUQVcKD qUu2tostRNnB2Ga4BA9Pc5HSLkKNKQquhR0j/ttEz2h6SixgqKTi4dpajWGQTY1eSFaP dBVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=U+ZBq3Lm; 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 w4-v6si279773wrn.76.2018.06.21.02.46.34; Thu, 21 Jun 2018 02:46:35 -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=U+ZBq3Lm; 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 5C52A1BDEC; Thu, 21 Jun 2018 11:45:55 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20042.outbound.protection.outlook.com [40.107.2.42]) by dpdk.org (Postfix) with ESMTP id 85C0A1BDCD for ; Thu, 21 Jun 2018 11:45:49 +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=7N/KPdEWO51AJZX/Q++JYfWhSkA+gu8/eQTXbDBNIoA=; b=U+ZBq3LmtOO1pVQWGJVryiiu2qltO34wI/3j/D5ajFwGgvrnCG4tGFgcP+uov8YjNC8lbLhOznq2Bez5S2KdQI3nYN0wlnxfBdMBZXuu2jaCfr7O1t+xwE8SmxFKOc9vwc8LSOFjXQK6tX1jP3XD8FMVzGU+dQTlAZP9C/aWxcQ= 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.863.16; Thu, 21 Jun 2018 09:45:47 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Thu, 21 Jun 2018 15:14:00 +0530 Message-Id: <1529574244-18997-6-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 0f517316-2335-4065-84a6-08d5d75bc44a X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:Q50VmUrUxpbUR9BgqaoJz6XwXd4YScbZa155CL6OxPvjKRhJHxKJwbWExWCkaRN50/54Et5J3/g6VCQGqPGP9r0LI0uMjLIXYrZbf3XM4oPbsaiDz1xw3UzzSdaE7UO6N891e3zqm4nEM+pOTatFy+KnYHWxAHrDgYOW3LNcJNDaWTHc2lri1TwauoN+vUmKaR7oWj65wMiGi7+fePe07f28BSgnldstwkG+nyaDyzrx4usM04DKgCqrrB7dgnhB; 25:kgcKB5K+fB5Pd0IIiy328YYgJFe6giKM3hj/FXVkYiGIWzEm/cQoc2SUj+EvXJnqHA1SQEdeDI639+/MNu0u59AdwJIuveWwEMHKexeX8yx7x7J7o57DEDVT8X57uvXdt+mbKDkZBA0Wp14HxA82dMiAjSPjF7AaEjYtXzezctcBbyDuIdHlHhy6rfmwdLRu9GYWtiXoX1fDlfk2pkibwP2r0bTcnsgG6TjrBhr6EWI3z5/aYDelC0Hs54hOzArLtl73M24yedcjxFKfrsQFhHRXnkZThBInbkk7yBZEB6eAGLcLFRqMZZSF7TI01fvoord0cQ6wz7QSlL6urbGrTg==; 31:om35WF9cg+Oi7VXYi6JH2zom4okgA99u1DxCYSFKOqhJaS8Ma89wl4KHVRtt/AtqeD0E67eRdgLjF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7A/Uq8++uv9xWG8cQs6YVmfMGq3x42m/7ybI= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(59450400001)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(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:KbAD/laiYP+svaf8O7Lxz9A26GWFeogq358qh4Jah?= Tj/oyN7PPjsvIchsZwcRH46/Jwb42AihEbptzXZVpo84q0Il9+tilxCrXwLP+oCMBWRyyq2+2LIs3p6AUnWru3cNin81pP+Im3QuVjKU3Habx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p9xvvGfx9upCMg7bZMuQRpW6/2tHX5NV5UF7bRipagur2jHPbL5lJt41NcgCfKTruNAWebQJ97L+OR68=; 24:zxDOrhkxjLvhhtEYkUl4xEmfUuHYGqgLKtJrZ6mcJ8JoLMCgINv58UwolJwToj9CFxrJw1Fe1EKcjtwDW/gDSpiji/qC2wExk/e8xKWZ+0o= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:7emCNpInonmqHbs6zqxkyFoiMvgAOeXb1Yg4RMhlBT1be1M/ip4nsFBQplllOMRE1wVRa4s9NRUnVP57cP0Bof/f+5GMMf6ErBF/xLhHgprI/Yas5leGaPcwuZDhalQ11DSKQrWzUwaVmIruRzG3VNdWkv4/jWsdQeyjmhtKCJ96ezH7Npe1IjQS1VYKwDeXWNplzxHf9Efb3RyegJZfzWysYukTAxctZITcZE69u8ZXYt0kIf7BIF5g7M3R3H3/ X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:47.0781 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 0f517316-2335-4065-84a6-08d5d75bc44a 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 06/10] net/dpaa: support default queue mode 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" In case DPAA FMAN configuration tool (FMC) is not available. System can still work with default queue. (1 queue per port). Signed-off-by: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.c | 43 +++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index d014a11..cf07d25 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -74,6 +74,7 @@ static uint64_t dev_tx_offloads_nodis = /* Keep track of whether QMAN and BMAN have been globally initialized */ static int is_global_init; +static int default_q; /* use default queue - FMC is not executed*/ /* At present we only allow up to 4 push mode queues as default - as each of * this queue need dedicated portal and we are short of portals. */ @@ -516,7 +517,8 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, PMD_INIT_FUNC_TRACE(); - DPAA_PMD_INFO("Rx queue setup for queue index: %d", queue_idx); + DPAA_PMD_INFO("Rx queue setup for queue index: %d fq_id (0x%x)", + queue_idx, rxq->fqid); if (!dpaa_intf->bp_info || dpaa_intf->bp_info->mp != mp) { struct fman_if_ic_params icp; @@ -715,7 +717,8 @@ int dpaa_eth_tx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, PMD_INIT_FUNC_TRACE(); - DPAA_PMD_INFO("Tx queue setup for queue index: %d", queue_idx); + DPAA_PMD_INFO("Tx queue setup for queue index: %d fq_id (0x%x)", + queue_idx, dpaa_intf->tx_queues[queue_idx].fqid); dev->data->tx_queues[queue_idx] = &dpaa_intf->tx_queues[queue_idx]; return 0; } @@ -1008,12 +1011,12 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, ret = qman_reserve_fqid(fqid); if (ret) { - DPAA_PMD_ERR("reserve rx fqid %d failed with ret: %d", + DPAA_PMD_ERR("reserve rx fqid 0x%x failed with ret: %d", fqid, ret); return -EINVAL; } - DPAA_PMD_DEBUG("creating rx fq %p, fqid %d", fq, fqid); + DPAA_PMD_DEBUG("creating rx fq %p, fqid 0x%x", fq, fqid); ret = qman_create_fq(fqid, QMAN_FQ_FLAG_NO_ENQUEUE, fq); if (ret) { DPAA_PMD_ERR("create rx fqid %d failed with ret: %d", @@ -1032,7 +1035,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, &cgr_opts); if (ret) { DPAA_PMD_WARN( - "rx taildrop init fail on rx fqid %d (ret=%d)", + "rx taildrop init fail on rx fqid 0x%x(ret=%d)", fqid, ret); goto without_cgr; } @@ -1043,7 +1046,7 @@ static int dpaa_rx_queue_init(struct qman_fq *fq, struct qman_cgr *cgr_rx, without_cgr: ret = qman_init_fq(fq, flags, &opts); if (ret) - DPAA_PMD_ERR("init rx fqid %d failed with ret: %d", fqid, ret); + DPAA_PMD_ERR("init rx fqid 0x%x failed with ret:%d", fqid, ret); return ret; } @@ -1071,10 +1074,10 @@ static int dpaa_tx_queue_init(struct qman_fq *fq, /* no tx-confirmation */ opts.fqd.context_a.hi = 0x80000000 | fman_dealloc_bufs_mask_hi; opts.fqd.context_a.lo = 0 | fman_dealloc_bufs_mask_lo; - DPAA_PMD_DEBUG("init tx fq %p, fqid %d", fq, fq->fqid); + DPAA_PMD_DEBUG("init tx fq %p, fqid 0x%x", fq, fq->fqid); ret = qman_init_fq(fq, QMAN_INITFQ_FLAG_SCHED, &opts); if (ret) - DPAA_PMD_ERR("init tx fqid %d failed %d", fq->fqid, ret); + DPAA_PMD_ERR("init tx fqid 0x%x failed %d", fq->fqid, ret); return ret; } @@ -1145,10 +1148,15 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev) dpaa_intf->cfg = cfg; /* Initialize Rx FQ's */ - if (getenv("DPAA_NUM_RX_QUEUES")) - num_rx_fqs = atoi(getenv("DPAA_NUM_RX_QUEUES")); - else + if (default_q) { num_rx_fqs = DPAA_DEFAULT_NUM_PCD_QUEUES; + } else { + if (getenv("DPAA_NUM_RX_QUEUES")) + num_rx_fqs = atoi(getenv("DPAA_NUM_RX_QUEUES")); + else + num_rx_fqs = DPAA_DEFAULT_NUM_PCD_QUEUES; + } + /* if push mode queues to be enabled. Currenly we are allowing only * one queue per thread. @@ -1196,8 +1204,11 @@ dpaa_dev_init(struct rte_eth_dev *eth_dev) } for (loop = 0; loop < num_rx_fqs; loop++) { - fqid = DPAA_PCD_FQID_START + dpaa_intf->ifid * - DPAA_PCD_FQID_MULTIPLIER + loop; + if (default_q) + fqid = cfg->rx_def; + else + fqid = DPAA_PCD_FQID_START + dpaa_intf->ifid * + DPAA_PCD_FQID_MULTIPLIER + loop; if (dpaa_intf->cgr_rx) dpaa_intf->cgr_rx[loop].cgrid = cgrid[loop]; @@ -1391,6 +1402,12 @@ rte_dpaa_probe(struct rte_dpaa_driver *dpaa_drv, return ret; } + if (access("/tmp/fmc.bin", F_OK) == -1) { + RTE_LOG(INFO, PMD, + "* FMC not configured.Enabling default mode\n"); + default_q = 1; + } + is_global_init = 1; } From patchwork Thu Jun 21 09:44:01 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139518 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1846781lji; Thu, 21 Jun 2018 02:46:46 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIuG9fHMFf0zjMAlSqaMtpghLTjVLZPNILAUbfEMsgmMqG6hrgMbuSXvkRthTRU62XRuA43 X-Received: by 2002:adf:f344:: with SMTP id e4-v6mr20888568wrp.161.1529574406364; Thu, 21 Jun 2018 02:46:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574406; cv=none; d=google.com; s=arc-20160816; b=q+ls8BSK7couL+OsFp1bYbKI+xuQTWt88nf1zku7z/cK1db7MQ8QfyGYS5bdig5uqO D+XnHRMNY+xqRsMVqFCaCYpz+YTWZwVZE/FhfbJfXX5+MCCQQ3mDeo2ESxahyKuBlMW2 2tV00ckkMQwYXGk7eipfsS2/FfEGvF/De0pukvemslI/R9L7oaLKlU9uVBgExBNSjTVD tHzlBf7KImAKDyJPMKBIDoCChyilIwMSqoVpycZ8aKyQIDt1QB/31/35E66TJSViokmt nBZonkIqqnccNymqms2o6c1xfC50/BZF+frkwAgngGTZ9nHdMnBtZ8gLYjQg7cSOfa+i K7ZQ== 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=OtCRM+cdU5A3OUt2DrGvEZfaBzpN2bxAi6w5tY3DbJI=; b=gHc4zad51LLXFD/6I/xYWnaQp+GMT1iTmAM8FEWa0C9TeaCNgwjagc1xOiiLSPwm4F mkyQwfwT2jjyEk5wpfUy0ZDcCbUc4wfcpYzrNFWiKqfP8y8FlIHtAIlk/Tgzd3kQ++qq WyZfFlxDSjX4SVqD2w82WqGwYZfJi7prH4xCbaQ8TE9Q7jMEO1wURXMXaW0NPTsivnfI MM1CcnA04hdG1H4hUnT52rUSjIO0w04wqLdsKjpaQbgX7ABDnqBgqFCUkGq52WOaAl++ 0Rr8GSmoPnbJdn04RggjcFfi085OkX62BheRRNTAq69k2YKoHgX8nRWL3KQRY0o74+vh zRmQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=QCRTzSlU; 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 f1-v6si3663040wmc.222.2018.06.21.02.46.46; Thu, 21 Jun 2018 02:46:46 -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=QCRTzSlU; 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 CEAE11BDF2; Thu, 21 Jun 2018 11:45:56 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20084.outbound.protection.outlook.com [40.107.2.84]) by dpdk.org (Postfix) with ESMTP id 7EDB21BDD6 for ; Thu, 21 Jun 2018 11:45:50 +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=OtCRM+cdU5A3OUt2DrGvEZfaBzpN2bxAi6w5tY3DbJI=; b=QCRTzSlUTXR7TAyvICF22tQXedkBcD+zZTgY4ZUKBQxXKWa4vb5DRUZ1CaskDfO576lX7y+SelVnLH/C42eP4N8qIUWDQSGvbpnM6mhwc1EUJyEP8z+SPUX6gs48D7rXQOihSUfWNDCMNjAWpqK/FuQyfdenxo7vcMsbMRbQXGI= 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.863.16; Thu, 21 Jun 2018 09:45:48 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com Date: Thu, 21 Jun 2018 15:14:01 +0530 Message-Id: <1529574244-18997-7-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4ede595a-eff7-4487-d8c9-08d5d75bc4ec X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:mEuLyfkJpDjYtyTnaHS0VdIWDL2ztBARfVd4Q333CfWIHjJh3QI3WRx0AaEqaui9Sk/gELVsuBQ0e6qfXHhdwj59R62Novvy0I9+6C+oZHdJNEh1pkLQFT3Wx0BiWB3Zlr0mR/af4FK+40QzFezkmL+LczH9xJsXD13STKhU6urwOn4LV7kIw98h9dB4wUGTViMUA5Hoi8cGH+y8moMhi6/hNlR5mqTGdjlRgCpjf4D57c4enj48hWwFA1I5xrQx; 25:JtOlWTx5Abf2n1jgD0AJcjjBLdQNetNHupL2eJEkgc+QT1Czy1dLO3iwcaOAlGNnfvWRY+UyO6AFGt6ex29P4WhUhsdAsqVZTgPBEiMCwEqrZuu7cDit1CmTpnJRPlVN+SVSd60+pj0sGXRmLSm5wneWhVeFQQofc5CAsiXZLVx2KoVJKpgILLisBS4x5GSolJiG+ZpzU/2j1Tx2BD7+IQxYBB/q6j3d5FQm/1DCoEbBL5mSdsbZvfJmd1jV00KP4ZqZfcKv1i9L4lp7deIwSuVu8IXulSkHi0hIcj8CHeXxoQRRJhXx32wvzyAVcQ03itql8R9KBJTigM0CiVD++Q==; 31:CZFb4q/c7pA3kkJ6pkf8w0O+eAjF5YKINbfC7GDa/LcRqsSA/BwvJRrcE7S5+LMv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Jh5sqRwW+fg 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)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(979002)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(59450400001)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(5890100001)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(110426005)(969003)(989001)(999001)(1009001)(1019001); 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:nSSQ8pWEfs+uXPMrdtTi4J4OQMlXLqIqRxyHjXHjk?= Mjx5GhzXNcotxghEwcijrF1kP/zQzO7Ud7o6ym1uZawSR7JktYl34SH+OyE8JlxSH9DYjagKKMa3K5WSrx2YH/2VhCBvJgJeLC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m3JYQ88rGTbooD17qDemF2Vj7+JipR2QzXIA==; 5:144hpNkOu/grxEIcL+D0GXvKI0DI7MK8myRkuN9g6E6gOh9k26RdVGqqWiieq7IV4PiVewTPGwQn7sEXUyA9ftHfq/xXp/+b7UaosesQZYF6E3F64vH3VIUD4mNCQLhQ5S5Sqlx0jhCPnrR0c2u9aEDDjF0dRsf/7UX5hsdwTdY=; 24:EbZ9gN6NO3PyKr/P7MtUp9uccJl3izbqvyjeKD5J40tj3jclG7KK/gyvDNNBwbNZHDZ0aoAK2POwXWAAB39f7qYdhxPQPlHGNQmScgoRZJE= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:+pvoUt7PuRG10668e/gd9YGnVM8dfpt50APShGEC/4Uaq5CBksZakQEfGj2ka7wKGdslPkYG6vjHG6KltoDiOFFvZDUPL6q4Qba0eg9gqOp/41rgQC6bxHaaq2R4/O1v/rnZGNrQTvyXw7jkfhueJBDf8AOsXXk60bIQp6al+cBWgapcnBPzZRcMCf+x6DTDCVwDMnlUJVllQXCivrofCaWLuc6lf0nLcZKmYPfp8rGtWa4gcf67lqt+Jut1BRi6 X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:48.1409 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4ede595a-eff7-4487-d8c9-08d5d75bc4ec 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 07/10] net/dpaa: remove experimental tag from PMD APIs 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: Hemant Agrawal --- drivers/net/dpaa/dpaa_ethdev.c | 6 +++--- drivers/net/dpaa/dpaa_ethdev.h | 8 +++++--- drivers/net/dpaa/rte_pmd_dpaa.h | 5 +---- drivers/net/dpaa/rte_pmd_dpaa_version.map | 4 ++-- 4 files changed, 11 insertions(+), 12 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa/dpaa_ethdev.c b/drivers/net/dpaa/dpaa_ethdev.c index cf07d25..ba269a8 100644 --- a/drivers/net/dpaa/dpaa_ethdev.c +++ b/drivers/net/dpaa/dpaa_ethdev.c @@ -608,7 +608,7 @@ int dpaa_eth_rx_queue_setup(struct rte_eth_dev *dev, uint16_t queue_idx, return 0; } -int __rte_experimental +int dpaa_eth_eventq_attach(const struct rte_eth_dev *dev, int eth_rx_queue_id, u16 ch_id, @@ -671,7 +671,7 @@ dpaa_eth_eventq_attach(const struct rte_eth_dev *dev, return ret; } -int __rte_experimental +int dpaa_eth_eventq_detach(const struct rte_eth_dev *dev, int eth_rx_queue_id) { @@ -940,7 +940,7 @@ is_dpaa_supported(struct rte_eth_dev *dev) return is_device_supported(dev, &rte_dpaa_pmd); } -int __rte_experimental +int rte_pmd_dpaa_set_tx_loopback(uint8_t port, uint8_t on) { struct rte_eth_dev *dev; diff --git a/drivers/net/dpaa/dpaa_ethdev.h b/drivers/net/dpaa/dpaa_ethdev.h index 1897b9e..c79b9f8 100644 --- a/drivers/net/dpaa/dpaa_ethdev.h +++ b/drivers/net/dpaa/dpaa_ethdev.h @@ -160,12 +160,14 @@ struct dpaa_if_stats { uint64_t tund; /** /** - * @warning - * @b EXPERIMENTAL: this API may change, or be removed, without prior notice - * * Enable/Disable TX loopback * * @param port @@ -33,7 +30,7 @@ * - (-ENODEV) if *port* invalid. * - (-EINVAL) if bad parameter. */ -int __rte_experimental +int rte_pmd_dpaa_set_tx_loopback(uint8_t port, uint8_t on); #endif /* _PMD_DPAA_H_ */ diff --git a/drivers/net/dpaa/rte_pmd_dpaa_version.map b/drivers/net/dpaa/rte_pmd_dpaa_version.map index c7ad403..8cb4500 100644 --- a/drivers/net/dpaa/rte_pmd_dpaa_version.map +++ b/drivers/net/dpaa/rte_pmd_dpaa_version.map @@ -3,10 +3,10 @@ DPDK_17.11 { local: *; }; -EXPERIMENTAL { +DPDK_18.08 { global: dpaa_eth_eventq_attach; dpaa_eth_eventq_detach; rte_pmd_dpaa_set_tx_loopback; -}; +} DPDK_17.11; From patchwork Thu Jun 21 09:44:02 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139519 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1847015lji; Thu, 21 Jun 2018 02:47:02 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJEl13oRPy6KjiCxHgAY3DmGtIjFslqJQAmmNcf+Ssgb+A3oBl4zGRxx4+KY7w7OA/M1j0l X-Received: by 2002:adf:cf0d:: with SMTP id o13-v6mr20381101wrj.112.1529574422514; Thu, 21 Jun 2018 02:47:02 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574422; cv=none; d=google.com; s=arc-20160816; b=LJK8inYAf91CtinNQwn0dYvNOuY3B1INJUPP8PDaBW+ZTkqLFsWxYgayDk423VDyG3 sAl0NRRZaqsSibt/JcMfJAuWH/CzX2hw0BWqgLWj621hbm3GTY7n8+KzL4Fij7V55nF4 eSxounG9WcmLUKHV0hEl+nGb2B9e+w/MODbRda9AtiU/HtLD86XPHgiFv5hTI9qSEZCO Q4IOkMjJDcxKV3vN1v/7dBIqHx1qg92OrwoXIE/d2O5ejl3dnE+COovfVoEg2FTH2oYJ p7gIP+CG9T+A4PNpiXufGu9HruVaTJJOoueRRw+NybOollDRsBuv9/Q1+Z9E4pul/IPG 58pw== 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=pZ2GAnx77W/FRW6xRRiWNQx3G3XSFb3aJGvlEkuvzy8=; b=UNadhgJxjkI9qIu19cobt8MIl1vPYBvvU+v9ZJ3YZAwXkkedI1OTkVM3ZIbeVTBQfP uR+LJZHKaN5tGOut1F7FH9Iva+61ft4yUvLoQ+kshww1guojYA76jMCRrUYuUayBV2wA XekcRAlJR3AroL/gPyplBMEGSlafseCQWYkkAAF81Mp8TRjD01QJroVyWjeMIcYsMO5c 5lQ2ZaEFHE8jPdoze2Mnrpv97nMAAkWd1obj+mI61EVcTSIUvLyqlBkzmKGU2t1DoTgl AqyyM+ZUFN6+jTOaKXHXx9iGqHQdlx92iU8XrQHQqfmaDV3UsusOji5cbwJPQmqVNBak jUww== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=HI6u9Rpj; 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 z6-v6si4628815wrn.224.2018.06.21.02.47.02; Thu, 21 Jun 2018 02:47:02 -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=HI6u9Rpj; 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 8542C1BDFC; Thu, 21 Jun 2018 11:45:59 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20080.outbound.protection.outlook.com [40.107.2.80]) by dpdk.org (Postfix) with ESMTP id 059F61BDDE; Thu, 21 Jun 2018 11:45:52 +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=pZ2GAnx77W/FRW6xRRiWNQx3G3XSFb3aJGvlEkuvzy8=; b=HI6u9Rpjm1TSGA4Df6lVugfdKAtl7AJfkqdU0D3ocsY+b7rXUg0Ou1O0eKVAV/g4ChaxFME2EFe0p0EvHe5cST9543NC/5SjCFfIJkzsi5Lm2FOugWxnIcvJ3lnvlqVIB9CahDNPXpa+SE5qTax0MetA+vRPCkam5ghoPasXlNw= 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.863.16; Thu, 21 Jun 2018 09:45:49 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, stable@dpdk.org Date: Thu, 21 Jun 2018 15:14:02 +0530 Message-Id: <1529574244-18997-8-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 4c6333d1-758d-4812-d854-08d5d75bc5a6 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:jmbyigMTUUiiGfZi0bHkmPasoCLK290DfsrGs4dxLiT8ncTiGhD8OrhD5WgkhHJ9fRfgpbur3Shf64MFPJR7nSGORPM2ZRGMzKhoLK8nD0WjpoCEGsAjbQgSNCm+XdHzP+6sBt84l2pk9E/ZGiIQ3OhU1rKZQKy4uNIctvFX1RVwwwrzCFFcNYaXAaIsvp+ZiwvGIvuUB/XII/AUD29WGoJfpFYQJI0h4Y53MLaKmtuOjvOqcf2ou7Gqpns6/Vnh; 25:vtZPn8o1CkQF3blsa2JskEcUjbQv7gFONxAAtP1Q+Ix5PnmD6dJtXiCdBPsAn/5lOZ2YodhTFgjtR/WgshFCojNCHKyuT1XaKuMXGibBE+t8PIP1GNHhk0jL9dc6K7mjFLgGGdOpCtQ5QsFUS5dkGySIog1FVb39upA2lj1QsyoHZK0sJhqoNYdFoxMmM9MYr9BLKCvlVbD6i7kx0EbSiasklFWWZLivnInJ177KVaO419rB3vDB9A1jJhEYx004L4htnli2fZl3XyOFHPHiOHS0rZnCVqej2AdPoBsVX5p0s+hrrcQEFinoDgxozY4tqRFIKt4iqE62hWicaFKj4w==; 31:2Iz10DrfdGSPQAmhFIxzJ1s36LZfLgVRD02Xa/NENj7LUhWPSz/5POSTX3ilkXiZo81j9ngZWi9i0cauC4VjH+hh+ehreWEYGgvHqk4jp4kVz4OddGKMI9PUtBPCRK+h820aq300QhQ+ypoZytP/iw1Ghy0s1xLZyqWObD3IUb8xJdQi2V9EseED/12LJMQRF66IocHdXeucvcKCYsTi9z7p+YgcoyMh2plX/AKruWU= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:F9/idkCAGbwtVjWLxOXOv1tkHAGG1VSG7CnUvhuskg3MEMvGK+EwzWJ1KNHJVj+kSXFwVcnHn9WGC284PmrIYJGHD6MP7cZhPISogxj/oZfwkVwsRg606x1Z0LYqezh5VW3wz/2n178FbazIkuGj+FchExE6mKimujd8MuErweeiuCzFGORqdQ/tEOdx74GlRnQmmkNQGkCV6ZNkZaKKz7op8Ciq1+J3izCrxTS86H+f7YkALfKrbL+wLG+CDTfsvraQmJHsBRxfn2FmdSFRfijPr4hqn7SSp4rx/jx0dz8XwmjXOlaupuCrKvADgKSdjXvOc/XmpTYQ37/DLsfJM5j0oJxQe/oCFLGpr+4cOHXrUHLFgvq2R9CI4JQjkKZqy45+HUtGf5pFAk7Vgv+upVVwhIpthL+ML2WbONQzvIveH98sH7Ai6uuDZti3RLoma6YD2qg/CuV7CVrWawvj6c1ywelbiaPbe8MynNgn+0h8y0WFpIVXT/PsnhmjWC5R; 4:fU3B6O1hmzdQeuRtSgzCrA0RGUIrh0dLt/z7aLz/aOeSpxFgBai8XfnMPC7QLkjZP+3nivr4VpxNnorhI38Y1074MRq0GpOAhyMkryWHfOE4qB8tM0CMbSl8qoNYvTmdLDPARW854NLFhjPRCF55Y1YBpNWwVilHH7ea/neCUbtF4inzSLCAXLVZmNX9+c3OYH0HUA0tvR/twpUaji+GPB4zALNImOwlybZFywA605UaFbQY/sFkHQlk12SCAEH0BssH+TCVVSA+Q+SQ39e0QH+DV0zZDTPFGTMDe2NmVfLVfTI6lGzleAA64pOUZqFd 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)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(59450400001)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(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:g0XHz50EW2P1barwIIYHzsE5qmEKlG+hFOd1fpBQS?= dhgKNauPWiAGZGtVMaGiyMEEq7WsQ1763ywbuOHtMAlZ8oWh4o+OxKcjne/Wi+BxxxRHHBxZFdxxcW1l2/jlDYZ1tmCdzfV/gK31v0nWBs4aNHCKxUiyzJuwwqeU/EmfSCQNbG/fN1jZWhvrK6LDPiZUa6+OuDbxg/nBa0tMDy/WYR0ExfJSg/bxnJvbY5hPSZ4bBqN2DKXjQ10zNZBhBaFkOEGgyzVn/97S9iy02kcVhr7BH85k+E5dGeG6VRH1x0jWtme7jI5VdVqGZ9YNC/7/xo7VLgtt1lK9dCnICYthxGEmCZxYd1iONBR9RI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iagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:NKaYXqO5/19pIWa13z/JjFA7pwVFCL9Y7R4V9Y42Rv82luOjF9aS0/dNAoSRBFrdyQ4JCyWg9YJxtRaTZ93sXutOtBoO1WC8d87KL5Ll6FU1mLESXJHPhGohyUPpRNwOXnQiOY00VlHcygy1jxW+/PM/Ltprr4FSjul3Y8HBEQDEVK/xG9m1jYcxX/Z1iN5fKAMl8Q+d9pQv0iO4DD0Sa8GdOxcXH10RuSpyOFRkd4Kpm9c/BET3n7uKNL18bEXy X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:49.2118 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4c6333d1-758d-4812-d854-08d5d75bc5a6 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 08/10] net/dpaa2: fix the prefetch Rx to honor nb pkts 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" This patch fix the prefetch rx routine to set the next prefetch request to the size of nb_pkts. This will assume that next request will ideally will be of same size. Fixes: 4bc5ab88dbd6 ("net/dpaa2: fix Tx only mode") Cc: stable@dpdk.org Signed-off-by: Hemant Agrawal --- drivers/net/dpaa2/dpaa2_rxtx.c | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) -- 2.7.4 diff --git a/drivers/net/dpaa2/dpaa2_rxtx.c b/drivers/net/dpaa2/dpaa2_rxtx.c index dac086d..311861c 100644 --- a/drivers/net/dpaa2/dpaa2_rxtx.c +++ b/drivers/net/dpaa2/dpaa2_rxtx.c @@ -447,6 +447,12 @@ eth_copy_mbuf_to_fd(struct rte_mbuf *mbuf, return 0; } +/* This function assumes that you will be keeping the same value for nb_pkts + * across calls per queue, if that is not the case, better use non-prefetch + * version of rx call. + * It will return the packets as request in the previous call without honoring + * the current nb_pkts or bufs space. + */ uint16_t dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) { @@ -454,7 +460,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) struct dpaa2_queue *dpaa2_q = (struct dpaa2_queue *)queue; struct qbman_result *dq_storage, *dq_storage1 = NULL; uint32_t fqid = dpaa2_q->fqid; - int ret, num_rx = 0; + int ret, num_rx = 0, pull_size; uint8_t pending, status; struct qbman_swp *swp; const struct qbman_fd *fd, *next_fd; @@ -470,12 +476,12 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) } } swp = DPAA2_PER_LCORE_ETHRX_PORTAL; - + pull_size = (nb_pkts > DPAA2_DQRR_RING_SIZE) ? + DPAA2_DQRR_RING_SIZE : nb_pkts; if (unlikely(!q_storage->active_dqs)) { q_storage->toggle = 0; dq_storage = q_storage->dq_storage[q_storage->toggle]; - q_storage->last_num_pkts = (nb_pkts > DPAA2_DQRR_RING_SIZE) ? - DPAA2_DQRR_RING_SIZE : nb_pkts; + q_storage->last_num_pkts = pull_size; qbman_pull_desc_clear(&pulldesc); qbman_pull_desc_set_numframes(&pulldesc, q_storage->last_num_pkts); @@ -514,7 +520,7 @@ dpaa2_dev_prefetch_rx(void *queue, struct rte_mbuf **bufs, uint16_t nb_pkts) q_storage->toggle ^= 1; dq_storage1 = q_storage->dq_storage[q_storage->toggle]; qbman_pull_desc_clear(&pulldesc); - qbman_pull_desc_set_numframes(&pulldesc, DPAA2_DQRR_RING_SIZE); + qbman_pull_desc_set_numframes(&pulldesc, pull_size); qbman_pull_desc_set_fq(&pulldesc, fqid); qbman_pull_desc_set_storage(&pulldesc, dq_storage1, (uint64_t)(DPAA2_VADDR_TO_IOVA(dq_storage1)), 1); From patchwork Thu Jun 21 09:44:03 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139520 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1847141lji; Thu, 21 Jun 2018 02:47:13 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIVoRaEa8SydNio2vgMbhDvHVmiF34OPZKcVWTUSXfaiFufcavnwb6ZeNUq6FWR5gSR1pBn X-Received: by 2002:a1c:8cd:: with SMTP id 196-v6mr4793400wmi.46.1529574432972; Thu, 21 Jun 2018 02:47:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574432; cv=none; d=google.com; s=arc-20160816; b=dGa8w7jyqr6CGyeSXaw5llZkoO34WWmlcHPAkDFwc1jpGf+k3Z6HV6v9iWpfXNrgW+ 5pMUGYCyNkFutuZtP7ft+VBSUavDENFzG52M80qCqR5AWZVGo/q9pMC51otDvo6pwlYd rj/c4sXcSWUZbJJFClvbiKExQIET+2WyGZ5xKyJIfh4Ky0lTdv/JyRt8gDvFPAKn+Wh2 xrJ+d711yESVM6+y4gY8NOpqqK2vn+KNlE+oGZ/IMulgmDcUfZy6p41Pcyr59ks4F9ST wCkhtgc+6eebLEJhzYGopDdOJEkKrgQLPBP+YiHngacvNDCYH/Q9JxjbwXZZCaTnRtn2 bFLw== 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=DoMIZs2eX5RH1Grvprfh3Z+pf+X8dcErySbnJWwOk0A=; b=RjmLDvJgDi6G8HQYMclnmoRcSiLdcGXA+5/KfFxiPu902JmIYjsrPTgluevL8Myhow 4jBbUvhAuK9DLtHswxO5U6BTEiWziH0ItRom1ONXrZ38LcE3pvfaNPa6AJcmtOPca7ih Z+UF5CB5EOgVrwr3eFHb5FivWDfoGRS0lFumdHFUXedYILJXFwA0m8Tq84sMvI+ze1/u P76S0PJ6+sLdxUo44YHGNAp+rEWODCA3fx5Gzs1XSpHvzKXYnpxOz8JLsYKFufsIi6py yXvt09NBgp5EHMTL42urMl8rPe6BPPZlAhaEGarhg+gF/09RMZcv8DoFmqpU6y9pBbmh 14Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=REBJWo2K; 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 3-v6si4791780wrb.266.2018.06.21.02.47.12; Thu, 21 Jun 2018 02:47:12 -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=REBJWo2K; 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 650F31BE03; Thu, 21 Jun 2018 11:46:01 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20077.outbound.protection.outlook.com [40.107.2.77]) by dpdk.org (Postfix) with ESMTP id 0950A1BDDF for ; Thu, 21 Jun 2018 11:45:53 +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=DoMIZs2eX5RH1Grvprfh3Z+pf+X8dcErySbnJWwOk0A=; b=REBJWo2KZXaDjQJJJAVf8k5o35V1h269Pwba1+eQXAxJpC4T0Si8YAwJiTixjYt51fvXWhr19CUIP6swS4m9lcK4ZEP9EO8ZKxUd6QOQs7ePpNpZHlivO9zKnsbPfvTJ3MrWfzKROFbL+YJFt/syic46ijs50GKvyrlLWPpE6so= 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.863.16; Thu, 21 Jun 2018 09:45:50 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Pavan Nikhilesh Date: Thu, 21 Jun 2018 15:14:03 +0530 Message-Id: <1529574244-18997-9-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: e82e161c-1737-4d97-24cb-08d5d75bc66c X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:FoS+xSA5Ebh83vd12LoiaZAqJFy/xqUwB8U1qNT4J3pjOkIUd/5Fcv4mBBRsXsz7wnhOEtP2Si7q5etYpuykzcZyq34IHnhXJUUCpE5iYJdoOagaokEu/uaodxD38JH2o8NZXR+BVY1GhN//1A3YlVlIXOXWnNpzvRdqHsCozMdAoYyDFt/sL0HM2llkwJLkzJPv4Ps/P2EfgQq1N4yAqaDy2Dcxosh1MRMD5xDlbT3rq4aagTOD7DezH6Ik1ENs; 25:zua21+0+giAS8oFPdsMfbHU7cDaR4aHha84c6ChnH+XNBIJAVh42+E4u+ddnB/kupvTtcGX6sOcB9OIcfEqRU/isrWSrDNHLQsc5sliEyp3AVy51vyjSkeK22ow/CmNzEaQtR3qfiMGgf/TT+nr4f6Wql3JjLVQk8WvMSTj2h/ChglP+k5Iw7CIvt+Tuc0Ocntezc6tuZujj0jAituaCKCuCmlzVPptvuwzyY3nIegif72MqfyDnnDpynatUhM9oKmCkykHdJuQ7NuWNtI7US0Hy86UAyqx0ycvvBlcqELY3eBMO5XuEVLn5ySBq8FHKRwlvW6ddIm9xJe3Mf20AGw==; 31:6QEYYXLLXH0WGU6IzV6kI2yssevxFyCoLPMgW7sReARRwhrTact0oMe4yhuEF2IWwu+qsqBOAsnO4ZyT39GTVC0X4LuYzT3rMXA7UCDzqDuXvuDHBlZszT80BitevhTfZLn1HmRV7EohHi9gt4IixSrs4tw+ckQWxPgq4t4yYsIq3+oFPT/uqn1a6taCAB1+8R4zJMYUSWTfcsSs9ak+rGWgPtBW3Ys4Zj5c646qbi0= X-MS-TrafficTypeDiagnostic: AM2PR04MB0755: X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 20:sCWvAtjL9s2mH3jt7UOsJoTeVvp4s5JyZtYKIdOGN8D/RIHF90nUfng7jOEYYIr1na62nUxGL+6GqKUQeMLINJuHUZZuVq4ThS/XhoyFzFQZAEfO1wAMrQNA3h55L0zHNfImV9MLd+nllcT2zgP7dcDlIVJZkZPDqIxFyqgVXGRqO8yrHRQVt3G+XxtVevs6dsJeBH4F3CtUCIC8kShoSSjAqxf7IF8oZRAfm7JSRuVUztw0Zf9yHRKO+dqYpD2wClUojWEiIvJvjbO9OXv8hD+paRuIHZv9gDDyfdfeXxdIHmu9WYMroHUWBmzqnr/2eZRrxtcmaQ4jiw1wx2GVbv2D0lZtz/aW8KP8EddofjiqppU5DlX96IhX7Xk/SiEQ4u0ZMwL8efUFQfzachE824HU+liSaQVixywbJMgRH0m7UjCS63t9GNgLTEas/pZRwp9y60ZR/4r0EuxT6kcHbaZbO4+PnCSE165uyI342OTWcbq6aLTRTSk+s7E5rRgv; 4:t+ovaYVVD7oSEF1KA/hWblm+KA2D9HKOYyV1FrCRYS62PUu1nDUW8EqB+qrVwUZHMLEmlKEmqTTIPopx4k0GTiNVu01gX6FKBwHtbkSKD/W679cVFYR5DcKMVxLFDMRDghMboCa7KjHE16sXp7zCQCaeV4EEAW86WQa+IC3BX3DbP40Rln39WLVtPzzKlUEAbXWTvO50TEnjwfTz+77mg2nU/3J9qRUFzqWBBeM91ftIQ00oFtdovxebJfxZiu21EweLpdfCTZK1v0eOLDPETtsVAYXoJQX1Z/5qfPJuCda+0rbM/Lke2Y3tl4dY/GtFiAufkEAxiN4qn/Ds8ZXh/887kRrJeSJo/nu3v8td0uA= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197)(275809806118684); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(5005006)(8121501046)(3231254)(944501410)(52105095)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(59450400001)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(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:jZrnTqx2DnTjlkBCnPHZtnsK5b0QttlB2l8ZCaqyD?= KKFe4dwMdfqsVN6tF6QUe3u/P/0F4iq4jzkRe9R0LSoNbBDP6QlPyqHwmHUwS0GsxKLZ71bPisG0Dy6DKhKBzN6YEiF0qHurNncxBpPKXfReK6IGNlpun2eqdSjb3pPXdLJB0xKZ9wVvGTo0HXBpImt54pDHpTO8s5Y4UJC3ti4NmDtc1b1R44uDquu4dsajglYk3rSFLMKWYl12jNEYeNTQHEsUmfwYsgy3ujZORBMfEe3W2ddXeZemdOkil63IUuKRmCzo0AfLNkcUfL/OaUo3vjrkq2v6rz0J2k7pNWu6a8+TsUwz24NGQz1WAOekQ9Nw+5rD9JcMvJAK/dmNRbHBdyUHmHKPgmQrhTyX8zAwlcn994l7g2BwfKRsm45GwwhfHtrWps6GElIZUjbQWIVy9kdlP4Jah9bQBlqECWWHj+YftIeDrr9IWuyzqqOv8+JqH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d7TuhBDsVw+HfFuK3eF2FrG+ar9iH2Uc9F1Dc5lL1gASuiqbgZxXUnc795KU2H15Cbqg3E5+qa3sNYynPQtI8HgL9WDIRnSQcUzCsaXJVv6lQ5GOVpJ+nHp5+SS8g== X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 6:aqIndcXiq0INcWGfgMKUrOHf5byyRF4tJORBibVg3VCiObPStgh/dgJaitpw7PJlm2xEndZlEWVqnhPbNVAdL4Lk1gDE1FKcLI/Vz0ImlctHXqluLJ6MWZ4fz/ve3bFUY16l//L6WYz1lQxvbCt9NmFahwkUgbBemqaBpgnFoLiOmXSg0srYeNryzUm77UMf64BUsLQFF5uUUKie0gqHlpfiAAMngmpHd9lSHH+i0GofGkBYMFbiTE4pui3MRG2A8TKaBDcoNFU6BC5aHIJLA9H0CxsSpa8TkxlaK4HZYIPDi/0hgzuqkoz/qQ5JOiGweuTGD06MY4SiKeLs+DULChypA078sCBZ6+Je7CP5B4Vvt3W5uE3JUpOjv/4tZabHKF3L390+sshZ3oVGzPZg6TxjPugSrTRkkKdEY2aC+tV6/ciN6R6kw0aaa4ZldowTO1ay3qJGZ1mLry2hxg5DRA==; 5:bwXxSKQ962h/JbdcO2mvhcQlsZDaME4KxhwOEvK5OE9rK1nVe38xbjIguLF+MMcbqT+ePrgzx5vN74m0ZoLaOcgH5+E/54u6il/qkL9xAUVYtARlyli8WM2jiA24+guCVovoadiBmIPDk8BXHk8yegQRiqcT5sJmItB4akb6ISo=; 24:7CzDe52tJ/dnUjpmAxyn08o77WUuhE4RodHpdgPIAzoVAl21FMBTW3fj9c/+VgtskZtDfTBZSg7GfNtBzNVO1KHMqv4Znj6MQOC2a3avIOI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:qEHdTFMrdoS5mZRlfmUYtexA/I+Frv8335pNgz5vcRTznAJyOUFp+M8o6pe2n9mnSQRoIZnL6Vvj0WQGLHLOrmZjwOCzhdnMNTLUYUbISbF7n4dxqxEMHImUHFss6IDakk3or+dNIMGSwn418M4o6hpee/hXrrhelX/c7cO/yGwYR2u1RB9ChhRD0dWh0ybwfa97qg0yaQjlx+QAQX3+hrRAk+elQWfJSjTR1MjPKCxjQ9FSMW+KiVR52odX+VmM X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:50.5078 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: e82e161c-1737-4d97-24cb-08d5d75bc66c 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 09/10] bus/dpaa: 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" Changes originally in the patch "drivers: cleanup unnecessary global variables" by Pavan. Signed-off-by: Pavan Nikhilesh Signed-off-by: Hemant Agrawal --- drivers/bus/dpaa/base/fman/netcfg_layer.c | 5 ----- drivers/bus/dpaa/base/qbman/bman_driver.c | 4 ++-- drivers/bus/dpaa/base/qbman/qman.c | 2 +- drivers/bus/dpaa/base/qbman/qman_driver.c | 4 ++-- drivers/bus/dpaa/base/qbman/qman_priv.h | 1 - drivers/bus/dpaa/dpaa_bus.c | 2 +- 6 files changed, 6 insertions(+), 12 deletions(-) -- 2.7.4 diff --git a/drivers/bus/dpaa/base/fman/netcfg_layer.c b/drivers/bus/dpaa/base/fman/netcfg_layer.c index 3e956ce..031c6f1 100644 --- a/drivers/bus/dpaa/base/fman/netcfg_layer.c +++ b/drivers/bus/dpaa/base/fman/netcfg_layer.c @@ -18,11 +18,6 @@ #include #include -/* Structure contains information about all the interfaces given by user - * on command line. - */ -struct netcfg_interface *netcfg_interface; - /* This data structure contaings all configurations information * related to usages of DPA devices. */ diff --git a/drivers/bus/dpaa/base/qbman/bman_driver.c b/drivers/bus/dpaa/base/qbman/bman_driver.c index 1381da3..b14b590 100644 --- a/drivers/bus/dpaa/base/qbman/bman_driver.c +++ b/drivers/bus/dpaa/base/qbman/bman_driver.c @@ -15,9 +15,9 @@ /* * Global variables of the max portal/pool number this bman version supported */ -u16 bman_ip_rev; +static u16 bman_ip_rev; u16 bman_pool_max; -void *bman_ccsr_map; +static void *bman_ccsr_map; /*****************/ /* Portal driver */ diff --git a/drivers/bus/dpaa/base/qbman/qman.c b/drivers/bus/dpaa/base/qbman/qman.c index f5fe5ef..7c17027 100644 --- a/drivers/bus/dpaa/base/qbman/qman.c +++ b/drivers/bus/dpaa/base/qbman/qman.c @@ -625,7 +625,7 @@ struct qman_portal *qman_create_portal( #define MAX_GLOBAL_PORTALS 8 static struct qman_portal global_portals[MAX_GLOBAL_PORTALS]; -rte_atomic16_t global_portals_used[MAX_GLOBAL_PORTALS]; +static rte_atomic16_t global_portals_used[MAX_GLOBAL_PORTALS]; static struct qman_portal * qman_alloc_global_portal(void) diff --git a/drivers/bus/dpaa/base/qbman/qman_driver.c b/drivers/bus/dpaa/base/qbman/qman_driver.c index 07b29d5..f6ecd6b 100644 --- a/drivers/bus/dpaa/base/qbman/qman_driver.c +++ b/drivers/bus/dpaa/base/qbman/qman_driver.c @@ -20,9 +20,9 @@ u16 qm_channel_caam = QMAN_CHANNEL_CAAM; u16 qm_channel_pme = QMAN_CHANNEL_PME; /* Ccsr map address to access ccsrbased register */ -void *qman_ccsr_map; +static void *qman_ccsr_map; /* The qman clock frequency */ -u32 qman_clk; +static u32 qman_clk; static __thread int qmfd = -1; static __thread struct qm_portal_config qpcfg; diff --git a/drivers/bus/dpaa/base/qbman/qman_priv.h b/drivers/bus/dpaa/base/qbman/qman_priv.h index 9e4471e..02f6301 100644 --- a/drivers/bus/dpaa/base/qbman/qman_priv.h +++ b/drivers/bus/dpaa/base/qbman/qman_priv.h @@ -139,7 +139,6 @@ struct qm_portal_config { #define QMAN_REV31 0x0301 #define QMAN_REV32 0x0302 extern u16 qman_ip_rev; /* 0 if uninitialised, otherwise QMAN_REVx */ -extern u32 qman_clk; int qm_set_wpm(int wpm); int qm_get_wpm(int *wpm); diff --git a/drivers/bus/dpaa/dpaa_bus.c b/drivers/bus/dpaa/dpaa_bus.c index 7956bd0..5ba3d28 100644 --- a/drivers/bus/dpaa/dpaa_bus.c +++ b/drivers/bus/dpaa/dpaa_bus.c @@ -50,7 +50,7 @@ struct rte_dpaa_bus rte_dpaa_bus; struct netcfg_info *dpaa_netcfg; /* define a variable to hold the portal_key, once created.*/ -pthread_key_t dpaa_portal_key; +static pthread_key_t dpaa_portal_key; unsigned int dpaa_svr_family; From patchwork Thu Jun 21 09:44:04 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hemant Agrawal X-Patchwork-Id: 139521 Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp1847278lji; Thu, 21 Jun 2018 02:47:25 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIplrxB3EJN2Ct+62IbfDk5Y3f0UugDqDBZnTCU2KHyKVtV3OxjAvPQeuVEtZdcGorMh+Bj X-Received: by 2002:a1c:4252:: with SMTP id p79-v6mr4387240wma.119.1529574445113; Thu, 21 Jun 2018 02:47:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529574445; cv=none; d=google.com; s=arc-20160816; b=TLGyY3qW3egdPQQJiV7QdSM98v7d7ochIyDDD/zFwuRDE7UFGKk0XiLXiS1ljCoFxp sAUvR8x11pbMmlxPfeCS3mRRq72aB7yFezVQwlJ+vYQylwzW/bRw7l7cPXe1y7y5aM1s Kp6pdSX4/OOWKKosT5r+7nyiLx9o/7SfH0W1A91UdrS4qAk7sb04fvZYLAPstKTYTwse ELnhW+FHi0TLfEOPOwu1PIQuVQL0oLObFaC28UNSBUdHWlNsX2jfda4+HAaVrWdBRc3x E+U/yYEhzJ40nxBrCdayOSmmWEVXL7xyELBBSxU54mRK2JZKeK8DCGrJ21TDHrtnlN4P tJWA== 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=5ihYnQrMRraQQYHOBkvDo3prICPrk061VT+pWZzETp4=; b=J8fW/WUlcwKq8iCHx6sNdlXh1ZM1BuGeOdB+LTpNy/A40dC0lnjxRnW11VkLv8dlZe Vuv+WiWLumk7ebta6c3mmhlfDvoeQPLUeNjYGOMFDyvnEip/gkhVZbcodVLcglBzmdwN jUjhkoOS1saPTslnY2cCL5qjnWTXkKgE0jRGKmCrS5OPib1WYBJswwsxUJoWRzSHUa1U boKOMlMx1ZNaPN/pqVVVPPzb3fD21k9ETSDRSv91t+0N9tptmhP5T1Mc+AiB6denNSj5 4L1pAq2928uaYwyzynb5lkaqxgiXgK1F8/yPTN630ngS01Q27jO5t7eKDw4ShRSrPRB9 AAIQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@nxp.com header.s=selector1 header.b=IQ5cGAOB; 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 c2-v6si4275164wrr.201.2018.06.21.02.47.24; Thu, 21 Jun 2018 02:47:25 -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=IQ5cGAOB; 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 12E6B1BE0E; Thu, 21 Jun 2018 11:46:03 +0200 (CEST) Received: from EUR02-VE1-obe.outbound.protection.outlook.com (mail-eopbgr20053.outbound.protection.outlook.com [40.107.2.53]) by dpdk.org (Postfix) with ESMTP id 3D3601BDCD for ; Thu, 21 Jun 2018 11:45:54 +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=5ihYnQrMRraQQYHOBkvDo3prICPrk061VT+pWZzETp4=; b=IQ5cGAOBGqbJWqCQo+CrDVsBsnZtl3eSTo9zLjL8MnNcbRKwNk1rs0OsVs3eDmRquVz17wMJrjOgtAi5g+AONTLJFoATLH+7QJ8Wy+K6ewOtNb9NQu3jxfP7oZkv8jGORrlO77jnlRcxqGRaWeCF3aCSegYiyDcq84/ljb3zTfs= 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.863.16; Thu, 21 Jun 2018 09:45:51 +0000 From: Hemant Agrawal To: dev@dpdk.org Cc: ferruh.yigit@intel.com, Pavan Nikhilesh Date: Thu, 21 Jun 2018 15:14:04 +0530 Message-Id: <1529574244-18997-10-git-send-email-hemant.agrawal@nxp.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> References: <1529574244-18997-1-git-send-email-hemant.agrawal@nxp.com> MIME-Version: 1.0 X-Originating-IP: [14.142.187.166] X-ClientProxiedBy: BM1PR0101CA0035.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:1a::21) To AM2PR04MB0755.eurprd04.prod.outlook.com (2a01:111:e400:8411::15) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 88ff4e91-fa94-4907-c484-08d5d75bc724 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(5600026)(711020)(48565401081)(2017052603328)(7153060)(7193020); SRVR:AM2PR04MB0755; X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 3:xomRpbDC+xc9DeyPcn4ZtmjdeSWwsWW9AKKewjzyVwXJH0FQPPTkv6C+FLPhatwTbVI2lCf2rZ4zt2FshYvbUePzlwduypdaUbl/opiAVjgbe/c3KU9+3gBSgCtYi3PJ/o1T45V3z+iMMQgBI6wQ0sB51Jvj5QtzVLXEmu1Ga2692yGPyQj1SBg6AerpQlV36WYhEvQhGtb5fmNUCqxAOg3ka1nyqWyKd6fMvw7iFATkhMCmSPDEBTT+EZSnP25x; 25:4Ntlfe6w2V8BCVpaSnypYE0oOmlOnmD77Tuz8rsHqL4G3ZACWbbBV2l8zOk4r8BXes25Z9bAcoqRpiU0DTuaUiPKmeGMMoI3gwkYFNccRFMb3MlbZCHW5CYLnASgSut8l3SBJL82XoJSHgmRk6F7uW0rMHpWZjOV62uEd+fE1YyAvf+qB8FuBcP1Pg8sEvPeN6uROnQeMGY3U+7ADiJ/zRXGzsk6Rlz/hDNSwcmMbhwlGDAsVTeynKwnbGxKAlbMIR4ek9mAeN6xMHKTB9YAGZArgYgaSjMb2YI5ciSXNpjLhMU5OGsuSx8ARNR1duzEYqGFJWv5NqYCdDYR1VfFdg==; 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XZaqBjbLW5WEaPCvSjEV2YMfFPhfmJgwZIFVLGGOE60VuCovDi4nArwh76lJteDFEGwwWKz76e 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)(10201501046)(93006095)(93001095)(3002001)(6055026)(149027)(150027)(6041310)(20161123564045)(20161123558120)(20161123562045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:AM2PR04MB0755; BCL:0; PCL:0; RULEID:; SRVR:AM2PR04MB0755; X-Forefront-PRVS: 07106EF9B9 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(396003)(376002)(366004)(39860400002)(346002)(39380400002)(199004)(189003)(50466002)(6116002)(6506007)(55236004)(76176011)(2906002)(6512007)(478600001)(51416003)(48376002)(52116002)(3846002)(2361001)(186003)(26005)(16526019)(956004)(11346002)(97736004)(2351001)(5009440100003)(386003)(446003)(4326008)(8936002)(8676002)(476003)(486006)(7736002)(81156014)(81166006)(305945005)(16586007)(575784001)(6916009)(6486002)(105586002)(106356001)(2616005)(47776003)(53936002)(36756003)(50226002)(44832011)(86362001)(68736007)(25786009)(5660300001)(316002)(6666003)(66066001)(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:F1FO8dRuk0CZKH98AS+uHhsNwA8f6as48CaVpuRkK?= kAUEi+qKXpm3C6gX0RuTrdw+//jcIKxbofAYdu6egj9wuYmAzum1EAShjmdVGdhThVS8nzKu/oVwkJ2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/bJcMGUL9e3rT1ktxnUg6Yfatq0cTwkkq8Wj68zgT02rfyMwLPq4jpTuk7M0qoUSNBJfSsarjZu96uRtJ41pB1KEITCY0DL4D3pVI=; 24:Vyol+05OEfRycxOC6EuJQAXghSMSanMEG8+i040WR4z0AkKh6pSaVDbElpcqjujJrVLQdjangeqm8Z+xV1AoN9c5zeAuq1sFTP4wP2Wu7yw= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; AM2PR04MB0755; 7:w0FpGpXdweb7xO7DbrnNLFNa/VYg7u6D06umhNCqUCX0bLxUeqppZLyBHSoohd1DXw2vFNAzLti4F0g8eQ7qTApvTjZ3YF4O+wNoyIROsV/iJYhzTSgXm/X3qWuzX7ug7v1oQw7zkqgu469FbSVx4XjnDlMrv00vA9Thg1CN8VLNYGkTVSbEoCc2LdvFpnPYNLdokWZGZGXpg2/2DSLBtCradQ2HVXqv3uKB2jPMm1Wq0k5+NKp8megfsmr83TLh X-OriginatorOrg: nxp.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 21 Jun 2018 09:45:51.7197 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 88ff4e91-fa94-4907-c484-08d5d75bc724 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 10/10] 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" Changes originally in the patch "drivers: cleanup unnecessary global variables" by Pavan. 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