Received: by 2002:a05:6a10:17d3:0:0:0:0 with SMTP id hz19csp2673567pxb; Mon, 19 Apr 2021 10:57:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4a+RiQpswCpYDlZy6TWYnvS1v973US5oN3viyUmqC3LIPwqmXUBbJ5hux/ZA8pHQnamX9 X-Received: by 2002:a17:902:8202:b029:ec:b398:6d73 with SMTP id x2-20020a1709028202b02900ecb3986d73mr1061809pln.37.1618855026909; Mon, 19 Apr 2021 10:57:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1618855026; cv=none; d=google.com; s=arc-20160816; b=ATvELDeYKx0frjdgIvs/VSaPq++2GqrRyxp/QkrbWTzKHt6tfQtKrEwtD/Nm3n0enz NWvZJVbSDXfLU8ZOOMDa/MxoOZ5wr2sI0USHPUX1cs0r+jaGflgqD4ZPlHhlihVVkK5G /NAZXpx2M9g8klORl1PXzQR/SM513hnmFiVuBvJPRknaDmLz8eu/EeWIhKAHPk2/JKSq Mp/wQ0xe36xr2Sm4+aUNIK36/ubQJt/Xher4ild0OQmOpfSC/vFohOVq/DfX1qj9Jrxr NF/8HRv6+NReupNKnP3Y5VTDlyRqqmTUFavq6u+1ija6T9rezfKDXg1/fpnFhaZ3Cfxf vIeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=ZigypJE9E8zz0eCjoXS1GUbX7+BAgOihB8mSDX1D4Rc=; b=YgJHI36a5hv1nWIAsHthDVeb0f5uo1RbvLW0e0KEy+eVnGuDbnyfYwbi/bJgHAOTRL KEXn+tAXO3GJoNev7q7QwdHLNlhaPmpQH31DxNQe1PoGCekJs65r7LflU4fXwhQ1swnS ddY8A9m6siYRP7yX+HD7KcM921mHRRLHvFz4b1D+9U0RqRusBMqoQfNfqgH7jfJQWQ1H UZY44G1EdptZYYLGfJHvzg9mso6sPphH0m+Re1yAlem5pOy8qyQF3zC/F8hsLDqsawtu qoDzgI0bhNDrJ9i227uge6gDyGI9Qbq+ZR8T3Gi3n6ru9w4XRp3vHAWNNod/+eJEe0Uo +65w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wTAtJl3z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h3si1869952pgr.442.2021.04.19.10.56.54; Mon, 19 Apr 2021 10:57:06 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=wTAtJl3z; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243054AbhDSNab (ORCPT + 99 others); Mon, 19 Apr 2021 09:30:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:55332 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240896AbhDSNVb (ORCPT ); Mon, 19 Apr 2021 09:21:31 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2C47E610CC; Mon, 19 Apr 2021 13:17:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1618838277; bh=lHiwJSBTaKrJ/EFOtOeG6dxonXEQKWn19knfHbGpWxs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=wTAtJl3zZt1E15D5hw2kc5vYXbQ4jOApUSTTOvsUQcXKNKGACFGppxfCWQi8FNnHc SabpLkX8Ak7qLH16FUaR0phtFH7jJGasXLyYpYDPPQtLryzpkGC1FW2jV7uLjanW4q KlQg8c7AG/Q+MDXZUpxV/y6DhjZHzBopZHI78Ig0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Lijun Pan , "David S. Miller" Subject: [PATCH 5.10 080/103] ibmvnic: remove duplicate napi_schedule call in open function Date: Mon, 19 Apr 2021 15:06:31 +0200 Message-Id: <20210419130530.553160919@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210419130527.791982064@linuxfoundation.org> References: <20210419130527.791982064@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Lijun Pan commit 7c451f3ef676c805a4b77a743a01a5c21a250a73 upstream. Remove the unnecessary napi_schedule() call in __ibmvnic_open() since interrupt_rx() calls napi_schedule_prep/__napi_schedule during every receive interrupt. Fixes: ed651a10875f ("ibmvnic: Updated reset handling") Signed-off-by: Lijun Pan Signed-off-by: David S. Miller Signed-off-by: Greg Kroah-Hartman --- drivers/net/ethernet/ibm/ibmvnic.c | 5 ----- 1 file changed, 5 deletions(-) --- a/drivers/net/ethernet/ibm/ibmvnic.c +++ b/drivers/net/ethernet/ibm/ibmvnic.c @@ -1166,11 +1166,6 @@ static int __ibmvnic_open(struct net_dev netif_tx_start_all_queues(netdev); - if (prev_state == VNIC_CLOSED) { - for (i = 0; i < adapter->req_rx_queues; i++) - napi_schedule(&adapter->napi[i]); - } - adapter->state = VNIC_OPEN; return rc; }