Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1020647imm; Fri, 29 Jun 2018 10:01:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKLLEP3V+sSbnkaNfrDVafuvPleWHxtYoKN9kSnfGrZCOCKdpnqdkZDtKrbGV5U0lhOLSnYs X-Received: by 2002:a17:902:c6b:: with SMTP id 98-v6mr15632931pls.37.1530291698463; Fri, 29 Jun 2018 10:01:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530291698; cv=none; d=google.com; s=arc-20160816; b=qpKn7duu3jDuE1Gu4kFqOpSaShMVhwJZSTrmsV9ga4HF7ae3B6pfCVC5ghePcYyrXw uAw/ri8wX1FQybduvSkUB4d/8RZ8TG16Pur3v/5e3tCeFph4I+WbeE7hygUjt7aUP9g0 /6qcPf/2C8Degu50JJG4EJlJgbVJLWVvMVRVrA5hxfEA72WV6YCXU4itNQfr9HJ63nHq Nst5MCJtghy8UovY2qGTZUdM1UPjOGbQ4Hp8KVeosfNesjxwyUghtMG+b/bfJPO/Y0dY 8S/SAEStWsJTitIdqesblssgEMmfeaHT5rNHPE6a2SZ24JCFWNt7elFmjIkimhr+uTgR DiBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:spamdiagnosticmetadata :spamdiagnosticoutput:mime-version:message-id:date:subject:cc:to :from:dkim-signature:arc-authentication-results; bh=ar8hEruV4TgI5Xyc9PtT3hYmn6PpKXaE7+6lAeJmiT0=; b=Mt0f0rJePlJHcVR4AZP0Jh2ceNsKJHv8WxTcDOjPFJ3dYe6B8USSYoJQaC0KGh1Zzv m582kdcJSA9cx9uU/F+DMdq9A9FnKs0vKrTckKHCZ/kZQZSUl76CmfmMTwmZcKRgEo9S 1//D6CgBcwCPzgJqcBItivihMn/jbyTt2JJnS9k7VODSNEJuCBGlGKFJ0gRYgflmrBRa m8hNWM+ZZd1vUcyaQ/MtNF4S+JegOBS6aZlqvOFabvQYH2ntf4SGBMQfnTg12d1jcGqW jJUQQe0wFq85wO5kIaNEKt7bO3dCACn9r8Oa9IFZATzy6u4DeXnjRru+stL/9Wjz/Yfi H65A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=iVwvD97Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q63-v6si2616617pfb.309.2018.06.29.10.01.22; Fri, 29 Jun 2018 10:01:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@xilinx.onmicrosoft.com header.s=selector1-xilinx-com header.b=iVwvD97Q; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965208AbeF2Pbj (ORCPT + 99 others); Fri, 29 Jun 2018 11:31:39 -0400 Received: from mail-eopbgr700055.outbound.protection.outlook.com ([40.107.70.55]:50144 "EHLO NAM04-SN1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751899AbeF2Pbe (ORCPT ); Fri, 29 Jun 2018 11:31:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=xilinx.onmicrosoft.com; s=selector1-xilinx-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=ar8hEruV4TgI5Xyc9PtT3hYmn6PpKXaE7+6lAeJmiT0=; b=iVwvD97Qky+hHgtpXpS8rEX8C/aban25+slJ02Y8gakz0Q/4pnl4RKVW0Zxpo6dBwPRlZMP8OZbJCIi0ef023xtGqRs5RFvuLMEd9dD3XACe3dHqjbWKbQ78LFSzq6MQzcIkN72vgBwTC+sYBx5hJZ0+bBxJcG+I8bSB2BnbUkE= Received: from MWHPR02CA0028.namprd02.prod.outlook.com (2603:10b6:301:60::17) by CO1PR02MB175.namprd02.prod.outlook.com (2a01:111:e400:101e::23) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.906.20; Fri, 29 Jun 2018 15:31:29 +0000 Received: from BL2NAM02FT046.eop-nam02.prod.protection.outlook.com (2a01:111:f400:7e46::209) by MWHPR02CA0028.outlook.office365.com (2603:10b6:301:60::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384) id 15.20.906.20 via Frontend Transport; Fri, 29 Jun 2018 15:31:29 +0000 Authentication-Results: spf=pass (sender IP is 149.199.60.100) smtp.mailfrom=xilinx.com; microchip.com; dkim=none (message not signed) header.d=none;microchip.com; dmarc=bestguesspass action=none header.from=xilinx.com; Received-SPF: Pass (protection.outlook.com: domain of xilinx.com designates 149.199.60.100 as permitted sender) receiver=protection.outlook.com; client-ip=149.199.60.100; helo=xsj-pvapsmtpgw02; Received: from xsj-pvapsmtpgw02 (149.199.60.100) by BL2NAM02FT046.mail.protection.outlook.com (10.152.76.118) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.20.906.15 via Frontend Transport; Fri, 29 Jun 2018 15:31:28 +0000 Received: from unknown-38-66.xilinx.com ([149.199.38.66]:54518 helo=xsj-pvapsmtp01) by xsj-pvapsmtpgw02 with esmtp (Exim 4.63) (envelope-from ) id 1fYvMt-0007T0-OR; Fri, 29 Jun 2018 08:31:27 -0700 Received: from [127.0.0.1] (helo=localhost) by xsj-pvapsmtp01 with smtp (Exim 4.63) (envelope-from ) id 1fYvMo-0002SW-Lh; Fri, 29 Jun 2018 08:31:22 -0700 Received: from [172.23.37.92] (helo=xhdharinik40.xilinx.com) by xsj-pvapsmtp01 with esmtp (Exim 4.63) (envelope-from ) id 1fYvMg-0002Qz-8v; Fri, 29 Jun 2018 08:31:14 -0700 From: Harini Katakam To: , CC: , , , , Subject: [RFC PATCH 1/2] net: macb: Free RX ring for all queues Date: Fri, 29 Jun 2018 21:01:08 +0530 Message-ID: <1530286269-32235-1-git-send-email-harini.katakam@xilinx.com> X-Mailer: git-send-email 2.7.4 X-TM-AS-Product-Ver: IMSS-7.1.0.1224-8.2.0.1013-23620.005 X-TM-AS-User-Approved-Sender: Yes;Yes X-EOPAttributedMessage: 0 X-MS-Office365-Filtering-HT: Tenant X-Forefront-Antispam-Report: CIP:149.199.60.100;IPV:NLI;CTRY:US;EFV:NLI;SFV:NSPM;SFS:(10009020)(376002)(39860400002)(396003)(346002)(136003)(2980300002)(438002)(189003)(199004)(16586007)(81166006)(305945005)(8676002)(81156014)(110136005)(316002)(48376002)(9786002)(54906003)(8936002)(426003)(36756003)(478600001)(106002)(47776003)(6666003)(77096007)(50466002)(26005)(186003)(336012)(2906002)(50226002)(39060400002)(2616005)(36386004)(4326008)(107886003)(476003)(106466001)(126002)(51416003)(63266004)(44832011)(7696005)(356003)(5660300001)(486006)(107986001)(5001870100001)(217873001);DIR:OUT;SFP:1101;SCL:1;SRVR:CO1PR02MB175;H:xsj-pvapsmtpgw02;FPR:;SPF:Pass;LANG:en;PTR:xapps1.xilinx.com,unknown-60-100.xilinx.com;MX:1;A:1; X-Microsoft-Exchange-Diagnostics: 1;BL2NAM02FT046;1:hL8P2+w5trWfZ6R4HZirQCZrByj0UroxXLbR1pNvhrhaT2PRcf/aNKiYh7PNli5IUe7s9NKM71OOiv71Vx7df7t6lfFBLQ3pCZc3FsvYVVykeaEyze1m7UU/9dCH7Jjf MIME-Version: 1.0 Content-Type: text/plain X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ebb9dbe1-c69a-4045-93be-08d5ddd56206 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600026)(711020)(4608076)(2017052603328)(7153060);SRVR:CO1PR02MB175; X-Microsoft-Exchange-Diagnostics: 1;CO1PR02MB175;3:aOREuaKgl/Gi+j2o6n/AAViXOoqPQcJ3I6AadNRZ517X5kZ/81/VcHwHF73gFqVoovcxV+qBRsq+bRW4sTieBrV8SfD+tw+9j/EpJCuiAdNqzMmIxxb+yW/5XqHBiBZDZVbFKN4fYDhB4v7Nvw5alL7wrGVpsXlMFy07xChXAoIbyBysto0Tso/cl9/AR2NY7PMl2WR0S8ZL43P0aIyp5u2PpltX3wQHmwjLJNeVDlroKzoYcO73fnwkDlZOmGtyxM5gepopSWDT6zkVDnQSygSjUvmoTYW0RtXDKMPytCY78BZxluhg0ct1I9+BYCknMlbWh8Php7oadxw8abw0QwjPupZfYqy5BWnuhrk5Xd4=;25:Ak/f3lRegX8HASADiHUbL6mn4KYMvKFm0T7Uf1nTmkFKzwVwfbIYm1NMNzSx5vbMfG2/IjB/vzIzFR8PRhfGrfIlTQBl33mG2sXJvXx/E8AqK3I99/2uYC4gUJCLwrlyOsTso+csFLx+zZkqtoIF2fOhNiA5NpK6tV9cPnKEHVAEf9Wq5gAP86YhlirqqWnMb4CDqwKTx3naFrQ/hOafUk9bE9oPIqy6odEgmk9SIr8eoKhxOJR68AlUi6q3Fqj9zeUqPtXENUuqgMsB8tH57Mv0gCLRNT/72gNmJkp1gtzZZ1n87DPGBa4MIbMhoqht7Iv9Bt5DTn+YqtQC8DWivQ== X-MS-TrafficTypeDiagnostic: CO1PR02MB175: X-Microsoft-Exchange-Diagnostics: 1;CO1PR02MB175;31:uAioOQ05gppoOoe0P9uBA2KygD8MzIlH6/ROMS2Xs+RKAH5EinnbH1oPpEH+QzYSrqB43omv/HECs5PXU610ANH1Ze276eJfexL6Dj79exsoM5oeddejxEkuMkZ5sP9kAdLmZLWU/DZQ+rac7ESWdZ0RM5WbisLRWYSbeSxEm/F+DFdHkge0VrrgS0rFPMtJisDCBRpsW/QIek/sQx3/PXHuJC7m2rme4CaeRfzhEZs=;20:zyB4Ol8ATqSH07F+IZfSUHF0ZLa3DR3Ixo3kvzzqEybrvH6zz8dfuTC/eRRi4cEnTQqtntCQI6rKQ52mueehlePb6JdGAgwEi5wKOcgtY/r01u5tyUJ0OlOhhD0XjTVg7OABm9hv84AaGIviVqexoXvhJnVRyR3XajiVHRQ+KtRjuPjDFU+hYaqLOOK/G9klAPrcGY002Ghrny3Amj8QrEq3OM6Sn50g/gBCNBrWrthVrgVwPIel+DY5EZaLmiVe7GRpYKCrhfMP5fF2zQ1pfnV7eC4g8QdgqmfIrM1EdVyASNiLjb6kkZ4VrC9qL3do2ha/mbunS9FgDUaYtWonq623OyeO5OT1wsoq5sZzaWqQiy6bGbKrkoQkEolc5kpUW6JnOIp0r68I/mAt7DN+LQrfSXqazgrGjy6eugBd2ObpyR3cuXIqibo2G97hNTxfhzZ5RcWty7//dcWoOI192lvHlbWc0hx7VjSeg+vxfkZLMWnGSb0yPHYcIXT19DAm X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(192813158149592); X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(93006095)(93004095)(3231254)(944501410)(52105095)(6055026)(149027)(150027)(6041310)(20161123560045)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123558120)(20161123562045)(6072148)(201708071742011)(7699016);SRVR:CO1PR02MB175;BCL:0;PCL:0;RULEID:;SRVR:CO1PR02MB175; X-Microsoft-Exchange-Diagnostics: 1;CO1PR02MB175;4:Og9v3qXBOg87BsZBhauJXzVKuN4gRJ41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X-Microsoft-Exchange-Diagnostics: 1;CO1PR02MB175;6:GuouXtsxD2mRgjmK26Nnen3GbqLhcElk3isqLdYv2Kso2jCQjl18c2MQ2S28UiN/6aQP+hBHg76oTwA6hUI83e7p61naaET97UL4/IS2p6zNQGyNGc4mrytUlv3rzY5GxD++UzTVBiWq58nPMc8VgrO/3/eHVyYFC/4Jk+g1K7nx5Q5uJAsJkDSK2yWVNCado2LhyfyD61h8wFPg03XXM+1u0tXgw8S5UBPggFeG+k11W8miGnIwwuk6F6GuCF/75X702ZPDuYRTP3uqzns2lS5sJOcSbOnS8OGBspjXB+aFOo35YrGgFuEYe3Msz32Sfij7Nf7apUwmhri7eAOhb4OQuOZqLr6k06UTQnjkyOvT33p0oKcfEt0X7b3ddd2uTBVuXg/4YeeyAwWqRoXlngRytTHnd9dVyvNDUH0s9quVd1F9wvFftOfb65Rz3D5Bl/DA4OmT9CM1H+VMYGPJPA==;5:sGL4aW0EWrICW91vHhn9spTM8Et+StuudGUBnjtqS5gcLRXHotorNXKEjHkpQInGY4kqsWp+Pe9t4q2Rj6wAU103c5+JXTwMAAqGb/sA6YEu9nGkGfsmkuCMLzKISKVh/Vp1/JVg49qT+dfA6jDsAHhK0anaIDlXNk6L6fEVQFU=;24:UiY6YyTARGwGSAaJRjV/u65eaC8YcWzLSEMm9g1nfjGiJpKBna9WQDuubR5O8Y1Cu3YXkTzwliHp5MZIZrHJDNnPa+ik8zdz+nXTLdm1zbc= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1;CO1PR02MB175;7:kFWPcLl4DNBDiA3brFZ+/YCrl2OLxigA92Ahtrl7meJ/PSI6VLx1plSGpvRdg5U5tiXBmmodccAGagsvGs9AQ2Q3P5rHhKf6Da6tIbKuTz08H2YZoBRE/5wv49HLp7eX9x8q0XZFeBsEBRmRa8E0m9US9XGJV8+nqx7jNm7kHI7YKwAjJGTXv5n0DbCMjAjGINsEvws17vPz/tBlf6UNHtrbBJVkeahu3rP52tTwIm/SpILxRwq/4KBzgVsRqFm+ X-OriginatorOrg: xilinx.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Jun 2018 15:31:28.3445 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: ebb9dbe1-c69a-4045-93be-08d5ddd56206 X-MS-Exchange-CrossTenant-Id: 657af505-d5df-48d0-8300-c31994686c5c X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=657af505-d5df-48d0-8300-c31994686c5c;Ip=[149.199.60.100];Helo=[xsj-pvapsmtpgw02] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CO1PR02MB175 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org rx ring is allocated for all queues in macb_alloc_consistent. Free the same for all queues instead of just Q0. Signed-off-by: Harini Katakam --- drivers/net/ethernet/cadence/macb_main.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/net/ethernet/cadence/macb_main.c b/drivers/net/ethernet/cadence/macb_main.c index 3e93df5..e56ffa9 100644 --- a/drivers/net/ethernet/cadence/macb_main.c +++ b/drivers/net/ethernet/cadence/macb_main.c @@ -1812,13 +1812,7 @@ static void macb_free_consistent(struct macb *bp) struct macb_queue *queue; unsigned int q; - queue = &bp->queues[0]; bp->macbgem_ops.mog_free_rx_buffers(bp); - if (queue->rx_ring) { - dma_free_coherent(&bp->pdev->dev, RX_RING_BYTES(bp), - queue->rx_ring, queue->rx_ring_dma); - queue->rx_ring = NULL; - } for (q = 0, queue = bp->queues; q < bp->num_queues; ++q, ++queue) { kfree(queue->tx_skb); @@ -1828,6 +1822,11 @@ static void macb_free_consistent(struct macb *bp) queue->tx_ring, queue->tx_ring_dma); queue->tx_ring = NULL; } + if (queue->rx_ring) { + dma_free_coherent(&bp->pdev->dev, RX_RING_BYTES(bp), + queue->rx_ring, queue->rx_ring_dma); + queue->rx_ring = NULL; + } } } -- 2.7.4