Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751910AbdFFPDr (ORCPT ); Tue, 6 Jun 2017 11:03:47 -0400 Received: from mail-bn3nam01on0059.outbound.protection.outlook.com ([104.47.33.59]:57835 "EHLO NAM01-BN3-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751427AbdFFPAq (ORCPT ); Tue, 6 Jun 2017 11:00:46 -0400 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; From: Ioana Radulescu To: CC: , , , , , , , , Subject: [PATCH 07/18] staging: fsl-dpaa2/eth: Don't use GFP_DMA Date: Tue, 6 Jun 2017 10:00:30 -0500 Message-ID: <20170606150041.10955-8-ruxandra.radulescu@nxp.com> X-Mailer: git-send-email 2.11.0 In-Reply-To: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> References: <20170606150041.10955-1-ruxandra.radulescu@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131412348447310044;(91ab9b29-cfa4-454e-5278-08d120cd25b8);() X-Forefront-Antispam-Report: CIP:192.88.168.50;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(336005)(39410400002)(39400400002)(39850400002)(39380400002)(39860400002)(39450400003)(39840400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(50466002)(36756003)(54906002)(105606002)(356003)(2906002)(53936002)(8656002)(498600001)(4326008)(77096006)(48376002)(38730400002)(110136004)(2351001)(50986999)(85426001)(5660300001)(76176999)(8936002)(5003940100001)(86362001)(39060400002)(6916009)(2950100002)(104016004)(1076002)(81166006)(47776003)(8676002)(106466001)(7416002)(6666003)(189998001)(50226002)(33646002)(305945005);DIR:OUT;SFP:1101;SCL:1;SRVR:BL2PR03MB162;H:tx30smr01.am.freescale.net;FPR:;SPF:Fail;MLV:ovrnspm;A:1;MX:1;PTR:InfoDomainNonexistent;LANG:en; X-Microsoft-Exchange-Diagnostics: 1;BL2FFO11FD045;1:HZS/JHmbU8Rrf5n6MdIAhZynvHExKR7tx0GxBrrmg5qdOL5h02kHJqNZAoZjbfEu5FAVeCglyLgTNYL2pHiMieTolz80uNwf66IN2LxvoPO9RSQ6qYUa4y9R7NV9Ss5/tEPmvVTt+BD3QwKm7nqrBq3a2ozsvf3hGj4a4zd7v4eM0n24TN9R+Afud6+GhYJ93EnVM4Q1qEBPrWgRRc7yqB21PIHd1Guw4QVu0aon0j2M7iU7qNsrpClCHbkeQ99XhF+xh7PRVAWAZGQexwdnpBc0jqkAJlMc4kDoPrO2jKFv+Xu8ng6mKeIB6vfhg8Ojx6HAShm++pWNRLQTx2NW50cX4BOgC4Ol9cQL2XOMeFk6kkD+asQ6DF1S1Y3iF4r8LIY/XsdfD8IUssoCgGUA9AR23PuNVAzxeJh9zqytPtbYw4lyCjP6j2rf0CcT9rDrdh7IWB3/Xl6T400UbJKizzdbAUGFflc0ut/e3L6YXRsSTpzUC1No3MBdwZ3REG46CD5NeW4RxSx79ZTfymUqugYro+J16GlzIDf/4VbUiC4gqzuUNomB/UIngOgSSt5ZRUb5lhJlfaTUCFZWbF8Q8BUZfE/rAE+1JrBTzXATGGpNmwpbnMmZpG0pENdwhmcsvxGX5Z6yfZZd/tubJX5oEkQ3vpTZm9iX6GaFsjklQfkS34WGjGsDhm0yxQ7VTGVV MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL2PR03MB162: X-MS-Office365-Filtering-Correlation-Id: 19599e19-b8e9-400a-40dc-08d4aceccec4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201703131430075)(201703131517081);SRVR:BL2PR03MB162; X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB162;3:sZTUJJxwraHpW6aXthqwH8Q6rdk/grSAv55qiXlpdAvV7GGFLMD1z/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7qfRa/tny1KJGGKstY5iLNnDyi1VE6zcX+PpatEmz8Yxb5bZLzoSeXV08QBdBinCgWsH05o01gb7wO6ijZVMzvn4wzbPrsFJFE42ZM9RGzsACuoI+qH/D+pfvWNKNDYGlLyn9+7ajA== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6095135)(601004)(2401047)(5005006)(8121501046)(13018025)(13016025)(10201501046)(3002001)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6096035)(20161123559100)(20161123561025)(20161123563025)(20161123556025)(20161123565025)(201703131430075)(201703131441075)(201703131448075)(201703131433075)(201703161259150)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:BL2PR03MB162;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(400006)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:BL2PR03MB162; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR03MB162;4:YH+qJGwSDeIyI9CVZ7NBS9aDi/nodXaJf1ZHps2p+hj?= =?us-ascii?Q?i1jlYpyzFxRsqHwToieqGGHQuptre1ZFeQ8E8AIqqRc0Le/LL2NbWmEgxW7o?= =?us-ascii?Q?3hrpZdVHgNxI2aCoHS7gR0pb4U3UAuqnGG9iYyvDrOWWZ4UNSaCuUbQz6i5h?= =?us-ascii?Q?epq1FxbqLUSMWI7SOkegi/aJOO5xsJlRvPbGqti1eI15MMQk2P/pnIZXE4bQ?= =?us-ascii?Q?s89ZcVo//MA7t1i1CARSgdWprDE2qBXA6F7QNgmPVOBxEIPk0MD12j+WCb95?= =?us-ascii?Q?ZP6fyL2CzIuXlsKt2CWxtUT68g2ih5kS92bIJyPjOb87Ga41ZjuHUfuQ4VSl?= =?us-ascii?Q?Fmfzi2UcPHI/HvHn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= =?us-ascii?Q?hHKgAGr/JrFwuXPewmbNgDUNdUbQJKN/s1eiv?= X-Forefront-PRVS: 033054F29A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;BL2PR03MB162;23:EUkfKpjYI/J5T6GaB+Ljr5U9b183SgWXWsSh9tjLq1?= =?us-ascii?Q?+UVRO99XekoduZcj8UTZUcmxkMde2c3TxXbFUroGpwZOatP9pfOuAgrcOi2Y?= =?us-ascii?Q?JJHBC+c8QPI4Wn5q4n62EPnRZCyspm0hOrgV5ORgFhRxYEwyw2CVHOaN19/C?= =?us-ascii?Q?CqTgr4ruRe3wdv44zlarEdYm2Iq91B6jK1MRuDj+Nd5tmK94Ba77JoD37PJI?= =?us-ascii?Q?yZ1m//ZIXZgqgLP33AoTbsmMCgea0XiZ4Uc1ewkN7XUMt9NqkoPLzVD8PtH2?= =?us-ascii?Q?DnxXB27b8Yf65ZFnBxuYKdGugGe76H1E4ZUkvuWt+dkyn984xZbKQXMM7LL8?= =?us-ascii?Q?yMlCradtcv2ZEYyg72I7rTP11KejjgIcXBdfd4szuD7DnTfSkDo6sL8xtPBg?= =?us-ascii?Q?1rjns11+s88sgAh/mz35pH6U+J+fZE/GNW86tz0ICZ9Up0nDJcn7orayuJGw?= =?us-ascii?Q?sV/lKdGr/OXeM/S6GWKMVoD+0DklK+e0rEPbm+YpY/0AFmaKB1TkujyparjT?= =?us-ascii?Q?fipg9pS2uTtcVZgaPw7uIGsqNCSmMTgUCFI5Dpy8/0+2yaIaDgfDdTDhbSdR?= =?us-ascii?Q?PSD7rWS6H0f9sXFYLM0Y739Q7OyzynasjWyS73Vi0M+9+QncKfKyzgVaeM36?= =?us-ascii?Q?WnrzYO80ZKUDQi+npuQb8MDmOWTn3ATrId8RgFQMp7aWJadvPw4TIidMqRzd?= =?us-ascii?Q?s5yHSaDTO29WejvEYc7QIym/tAkUnv7iicVniS71UiGAA0wNkbtrdMIxcCm6?= =?us-ascii?Q?79szk1pjwShZLUQf/yVGjLM3L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bzzqYAFh7M8zGNdlVeTPWPZUJfkfkImCwMQcoiJbVRfkMr7m7bURsD6Z0EZkInv9ucVUo6O83d1chg4e0GIUMlgv85yvnGI0zEvINDvBJYQo9IYj03/mdrwMYej7T3EDhl4ppbjNwqn4OZqt4kQ== X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB162;5:SqoTAIMUG9dX0c/DUu1D5TQYlmWMnaEDBd1JeMwkZGX2/H3IUS+lZ4t7CgpCPuk0MzFLwsbsZj+Sa18Oyf25GkQ9T7iA9VxR5jarCAJ0T6TFYxGcLuZCGJyFkpMFZkkI9kP6UTFxF/4eS6ny8MGt8AcrtmIOuRmWse+yRanZ5VtCuL7+c+Lk/LzH7rsESVCs4FM34Iz/xL6lIGSqAeuFHO5zb3HiURc/yE71OcIrIik9rgDceWxrjya5x4+qsiRTHChV67uIbh6uQxo1YdE/I/lO8pR7BdIBl+GpCnk8PVwmGTHurAcjD0Zbl4PL5FiwBxLjN7LhPEx6BM10WcEKNCuMbIAtm/ouX+DINSAWMrJMF+2IO3bHgp228+vXlIPCz7sA+w+KVp1QnuW7kgIpBCPxCGJAIc+/oRBG+nhPhFZXtB/E9/RM545XTl4O6rO2Ujo5xjuZ4CdI4jAo5YplZgr0Zoi8I2hBmUQDmcYHvHBiFBlViNRt+E62pzxLwQhqciKk41smQan4O/ME3KcyFA==;24:L+50IO3nHal7Hr6ohL7s355CLv39ANn24KwkLun3MXhE29/P+X6IN4ssJYZtA1B3oYS/y2agTJjcFpbvbeF0jqKZn7hBbSGl04y44E8IgaI= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;BL2PR03MB162;7:EOYtBzEd88gxfyPotuU6wE9tk0iRRhJXh1hkbeVIeV7A0OKw1gjti3UKYTGyhb4DoBiD39GvbvI0QROkPSEGm+ncOX2ey9KRX8+iDoUXaSKfBOEL02G1wKAeWklz9S57pmvaiWHw2eJF+N079dYGem/2NCF2nEIuNyv01t20mqpqSHuBCQpy/SunfUhMfVqsG4TbXNTahRCCIRfgtipTR3rHxPE3qhGWkcGsWtRLCdUiQl4w1WMbznZirstADAIERrYADL50ySdhj4j3ISsnOoa9xbTf9zeaL4c1oBZHz1/3TNbs8dKkkq2FohOPBNm6tYstTowIKuvb347NV8P1dQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Jun 2017 15:00:44.5594 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e;Ip=[192.88.168.50];Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: BL2PR03MB162 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 872 Lines: 23 Don't use GFP_DMA when allocating memory for the hash key, as we don't actually need to allocate from the lowest zone. Signed-off-by: Ioana Radulescu --- drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c index bf6f300affa7..57628cd3ecf2 100644 --- a/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c +++ b/drivers/staging/fsl-dpaa2/ethernet/dpaa2-eth.c @@ -1996,7 +1996,7 @@ static int dpaa2_eth_set_hash(struct net_device *net_dev, u64 flags) priv->rx_hash_fields |= hash_fields[i].rxnfc_field; } - dma_mem = kzalloc(DPAA2_CLASSIFIER_DMA_SIZE, GFP_DMA | GFP_KERNEL); + dma_mem = kzalloc(DPAA2_CLASSIFIER_DMA_SIZE, GFP_KERNEL); if (!dma_mem) return -ENOMEM; -- 2.11.0