From patchwork Thu Aug 9 12:02:42 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jisheng Zhang X-Patchwork-Id: 10561315 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B880513AC for ; Thu, 9 Aug 2018 12:05:47 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id A2E3C22B1F for ; Thu, 9 Aug 2018 12:05:47 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 958232AED2; Thu, 9 Aug 2018 12:05:47 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.9 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED,DKIM_VALID,MAILING_LIST_MULTI autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 0CF8522B1F for ; Thu, 9 Aug 2018 12:05:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-ID:Subject:To:From :Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=CsyI3hLgSbxF58IfnRmi4RqxkkLtI/RklhLXfbvwSNw=; b=rmxtu2KK9MrjPf CdQdqIB8s8+7jutmtcr1Edv80tjg0AkJXnxPhul5PEe4nPaOfcXcurAKCXiw4SUeIRrGW/f2sOT6f Vtm08NrCwZ9K9pQd0qvU/1GdXuo67VzEVhy1gemiQVFbsxQaBUajZrjX+Tjk71oPSF+Z2H09lUog4 9Chr44ENBWNVeOtPJGadpwvVqHhHgQBc/BBhwzf6MgGMzQb5hCZ8HCwq+Ui9wP2vE86FHRZwXn6y9 HogSfsFjFNDO7ixYRIU07f6J+Ra6Bm7Of2ufcOx6bjhKB0horzNGOiaIZTvkRIJsD5JPYCxYS63C+ hidcR+AcQf2NDyB4g2Mw==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnjhI-0003Ga-OD; Thu, 09 Aug 2018 12:05:44 +0000 Received: from mail-eopbgr710044.outbound.protection.outlook.com ([40.107.71.44] helo=NAM05-BY2-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.90_1 #2 (Red Hat Linux)) id 1fnjhF-0003E1-DN for linux-arm-kernel@lists.infradead.org; Thu, 09 Aug 2018 12:05:42 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Synaptics.onmicrosoft.com; s=selector1-synaptics-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/msNgZMfI36Qqu4xI3k2DbtsISHakXYY+w4oscGsr9g=; b=GysAszejDVmkNBNKUHqsbdxGyouzg0moxumewEb7myGm3mdJlYrFN0gQDzXnvLCotdDjApb3EUGDZea9DeZcHxliSF8lpcp4pWnHeIGuZ0uvkCGlgUARXXFToyqHnS0t+shl+mjuyA8wOuCBhN3FkeNwOKFl77xSKLrPxBBmWDs= Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=Jisheng.Zhang@synaptics.com; Received: from xhacker.debian (124.74.246.114) by BLUPR0301MB1571.namprd03.prod.outlook.com (2a01:111:e400:52a9::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1038.22; Thu, 9 Aug 2018 12:05:24 +0000 Date: Thu, 9 Aug 2018 20:02:42 +0800 From: Jisheng Zhang To: Thomas Petazzoni , "David S. Miller" Subject: [PATCH] net: mvneta: use the correct napi pointer Message-ID: <20180809200242.1166f86c@xhacker.debian> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; x86_64-pc-linux-gnu) MIME-Version: 1.0 X-Originating-IP: [124.74.246.114] X-ClientProxiedBy: HK0PR03CA0058.apcprd03.prod.outlook.com (2603:1096:203:52::22) To BLUPR0301MB1571.namprd03.prod.outlook.com (2a01:111:e400:52a9::17) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: c9ede5fb-395d-4340-edaf-08d5fdf065e7 X-Microsoft-Antispam: BCL:0; PCL:0; RULEID:(7020095)(4652040)(8989117)(4534165)(4627221)(201703031133081)(201702281549075)(8990107)(5600074)(711020)(2017052603328)(7153060)(7193020); SRVR:BLUPR0301MB1571; X-Microsoft-Exchange-Diagnostics: 1; BLUPR0301MB1571; 3:7fbn0TQzpEEAgbDGNHmrQN7YQjpnWIGcG9tzJk4vjapBVVYCx1uTGruoBCdfw2E3Bw6vOsBvAG73TB50Ttfc6XaRy/MnYSD03m66YfTg2RE2gDvDwxFH0VL7+qTeARJqFrHP8h88dVSnooPNrGLPh6RAAj8XcOkc/D8bAzWxKGOCInaT6Y70usgzunbj6dNFLvz7Qz+149x5tWSA7ENKYWvegJcgHPopC7IW11+TSmk7b3wieUHE+klPh0X8Rp9J; 25:eaH1B8HwEisc3krCHw25UZ3RsMz0hLf3i3C8Kc+TkInOsMSvab7wnSVR5QCSMkwv0uIopoqdgAW601yYfVvJSkxlQTSdCFIPCx70NwaLikFk1cCu1ljEws8zzV3GA3etxOdItnzkCNSk4xt9vQF2zKxrzWJaPchHDiRHaEsOEU45L/yL9qcPu/0yvgNHdiNJskMNRj4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2cObPS+Sn4lpjXu6kfusNLzXv+/LEIroA7lniqvuXBRfMHzkWFZoWNlVuAxfGybuKUiNxSjChNHGwTAcPHNoilLQB9VP5CcVngJGdKJqgypCBQfZUU97Iy3TWYBhDbBC2L/PqVZ7kQlwxNoLDeh5lv4TPs4nHh+BjWekXnR2n7hkQ== X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-MS-Exchange-SenderADCheck: 1 X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6040522)(2401047)(5005006)(8121501046)(3002001)(10201501046)(3231311)(944501410)(52105095)(93006095)(93001095)(149027)(150027)(6041310)(20161123564045)(20161123562045)(20161123558120)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(6072148)(201708071742011)(7699016); SRVR:BLUPR0301MB1571; BCL:0; PCL:0; RULEID:; SRVR:BLUPR0301MB1571; X-Forefront-PRVS: 0759F7A50A X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10009020)(39860400002)(396003)(366004)(376002)(346002)(136003)(189003)(199004)(5660300001)(14444005)(52116002)(7696005)(33896004)(476003)(50466002)(6666003)(53936002)(68736007)(50226002)(26005)(72206003)(55016002)(6506007)(386003)(66066001)(8936002)(316002)(54906003)(110136005)(486006)(478600001)(9686003)(956004)(47776003)(8676002)(23726003)(4326008)(97736004)(230700001)(25786009)(81166006)(81156014)(106356001)(305945005)(7736002)(105586002)(6116002)(16526019)(1857600001)(3846002)(1076002)(2906002)(86362001)(186003)(39210200001); DIR:OUT; SFP:1101; SCL:1; SRVR:BLUPR0301MB1571; H:xhacker.debian; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; Received-SPF: None (protection.outlook.com: synaptics.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; BLUPR0301MB1571; 23:tp73AH1x0jQqZ3sad39nl9l+3I+cC1dasnPPM5S?= COkaV8V7IU6gJ8yN+lk6T3Yoi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ddimjQx/YGGLj00/YMkND3CEujR3pBNzXz/gQgKq76bKtSJx8BvaQGwZXJvxfrnogGvZA/acJjCXHZ2aelEcFVY6g=; 7:fseycEJylONF3mLJlKvVVYhvr/8egIH6+AnSMJVS6SpEOnSSrCW38yyhlLHH7ora84PuOQTsRBiaugwkf8jeW5t2UOTaul3Qnh1bceaX1f/t2Gs5+zXWnUGgBJo4vBY0dOysu+PaUjhBH0CqHdxYW9PEBwLWOuvPb9Qsgl6AhPx6VZBdRANxfhZuFLHQExqbKQJR1a47Fx5BRoe8IwO6Y7sRcsoEqepTcZ55PcEZ9fRdmaEGRivwSZJ8mJQIhHKp SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: synaptics.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 09 Aug 2018 12:05:24.9594 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c9ede5fb-395d-4340-edaf-08d5fdf065e7 X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335d1fbc-2124-4173-9863-17e7051a2a0e X-MS-Exchange-Transport-CrossTenantHeadersStamped: BLUPR0301MB1571 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20180809_050541_460901_6DAAB72A X-CRM114-Status: GOOD ( 11.41 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Andrew Lunn , netdev@vger.kernel.org, Tomas Hlavacek , linux-kernel@vger.kernel.org, Marek =?utf-8?b?QmVow7pu?= , linux-arm-kernel@lists.infradead.org Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP if neta_armada3700 is true, the mvneta_pcpu_port's napi is invalid, we should use pp->napi instead. Fix mvneta_config_rss() with this method. Although we can fix mvneta_rx_hwbm() and mvneta_rx_swbm() in the same manner, the napi parm of mvneta_poll() is always correct, so we can pass the correct napi param to mvneta_rx_hwbm() and mvneta_rx_swbm() Signed-off-by: Jisheng Zhang --- drivers/net/ethernet/marvell/mvneta.c | 55 ++++++++++++++++----------- 1 file changed, 32 insertions(+), 23 deletions(-) diff --git a/drivers/net/ethernet/marvell/mvneta.c b/drivers/net/ethernet/marvell/mvneta.c index 0ad2f3f7da85..74b701fed5ef 100644 --- a/drivers/net/ethernet/marvell/mvneta.c +++ b/drivers/net/ethernet/marvell/mvneta.c @@ -1901,10 +1901,9 @@ static void mvneta_rxq_drop_pkts(struct mvneta_port *pp, } /* Main rx processing when using software buffer management */ -static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo, - struct mvneta_rx_queue *rxq) +static int mvneta_rx_swbm(struct mvneta_port *pp, struct napi_struct *napi, + int rx_todo, struct mvneta_rx_queue *rxq) { - struct mvneta_pcpu_port *port = this_cpu_ptr(pp->ports); struct net_device *dev = pp->dev; int rx_done; u32 rcvd_pkts = 0; @@ -1959,7 +1958,7 @@ static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo, skb->protocol = eth_type_trans(skb, dev); mvneta_rx_csum(pp, rx_status, skb); - napi_gro_receive(&port->napi, skb); + napi_gro_receive(napi, skb); rcvd_pkts++; rcvd_bytes += rx_bytes; @@ -2001,7 +2000,7 @@ static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo, mvneta_rx_csum(pp, rx_status, skb); - napi_gro_receive(&port->napi, skb); + napi_gro_receive(napi, skb); } if (rcvd_pkts) { @@ -2020,10 +2019,9 @@ static int mvneta_rx_swbm(struct mvneta_port *pp, int rx_todo, } /* Main rx processing when using hardware buffer management */ -static int mvneta_rx_hwbm(struct mvneta_port *pp, int rx_todo, - struct mvneta_rx_queue *rxq) +static int mvneta_rx_hwbm(struct mvneta_port *pp, struct napi_struct *napi, + int rx_todo, struct mvneta_rx_queue *rxq) { - struct mvneta_pcpu_port *port = this_cpu_ptr(pp->ports); struct net_device *dev = pp->dev; int rx_done; u32 rcvd_pkts = 0; @@ -2085,7 +2083,7 @@ static int mvneta_rx_hwbm(struct mvneta_port *pp, int rx_todo, skb->protocol = eth_type_trans(skb, dev); mvneta_rx_csum(pp, rx_status, skb); - napi_gro_receive(&port->napi, skb); + napi_gro_receive(napi, skb); rcvd_pkts++; rcvd_bytes += rx_bytes; @@ -2129,7 +2127,7 @@ static int mvneta_rx_hwbm(struct mvneta_port *pp, int rx_todo, mvneta_rx_csum(pp, rx_status, skb); - napi_gro_receive(&port->napi, skb); + napi_gro_receive(napi, skb); } if (rcvd_pkts) { @@ -2722,9 +2720,11 @@ static int mvneta_poll(struct napi_struct *napi, int budget) if (rx_queue) { rx_queue = rx_queue - 1; if (pp->bm_priv) - rx_done = mvneta_rx_hwbm(pp, budget, &pp->rxqs[rx_queue]); + rx_done = mvneta_rx_hwbm(pp, napi, budget, + &pp->rxqs[rx_queue]); else - rx_done = mvneta_rx_swbm(pp, budget, &pp->rxqs[rx_queue]); + rx_done = mvneta_rx_swbm(pp, napi, budget, + &pp->rxqs[rx_queue]); } if (rx_done < budget) { @@ -4018,13 +4018,18 @@ static int mvneta_config_rss(struct mvneta_port *pp) on_each_cpu(mvneta_percpu_mask_interrupt, pp, true); - /* We have to synchronise on the napi of each CPU */ - for_each_online_cpu(cpu) { - struct mvneta_pcpu_port *pcpu_port = - per_cpu_ptr(pp->ports, cpu); + if (!pp->neta_armada3700) { + /* We have to synchronise on the napi of each CPU */ + for_each_online_cpu(cpu) { + struct mvneta_pcpu_port *pcpu_port = + per_cpu_ptr(pp->ports, cpu); - napi_synchronize(&pcpu_port->napi); - napi_disable(&pcpu_port->napi); + napi_synchronize(&pcpu_port->napi); + napi_disable(&pcpu_port->napi); + } + } else { + napi_synchronize(&pp->napi); + napi_disable(&pp->napi); } pp->rxq_def = pp->indir[0]; @@ -4041,12 +4046,16 @@ static int mvneta_config_rss(struct mvneta_port *pp) mvneta_percpu_elect(pp); spin_unlock(&pp->lock); - /* We have to synchronise on the napi of each CPU */ - for_each_online_cpu(cpu) { - struct mvneta_pcpu_port *pcpu_port = - per_cpu_ptr(pp->ports, cpu); + if (!pp->neta_armada3700) { + /* We have to synchronise on the napi of each CPU */ + for_each_online_cpu(cpu) { + struct mvneta_pcpu_port *pcpu_port = + per_cpu_ptr(pp->ports, cpu); - napi_enable(&pcpu_port->napi); + napi_enable(&pcpu_port->napi); + } + } else { + napi_enable(&pp->napi); } netif_tx_start_all_queues(pp->dev);