Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2938525ybl; Mon, 19 Aug 2019 09:36:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqw+nrOIYX5ISgEsejpvn+qRTnJqXYJ1tSclc2SNYwQhXfedo4+z7kHaFB7oedt4MZHaYJgF X-Received: by 2002:aa7:8611:: with SMTP id p17mr25179734pfn.41.1566232580495; Mon, 19 Aug 2019 09:36:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566232580; cv=none; d=google.com; s=arc-20160816; b=VjLDOTULm94uzOO+PeT9GeY6b6SZP43famEFyY3mQD4jsOWi6gPNRmrSs1MwdZuFWW 6rZQpUP3sljiZWTJelYel4RRB94JbK5lVp/eClRKzAjHc/R+hQV4sbvgRrQ/KiFnuZlt Ukziaq8vUucqttnvscxS7dNqxVOt5D3Us5D3+2pUrsub0ZMj8JCozVP2OYnl7z1POHKx 97soaIEJE8Q+9tLLoUSIqleYO+qbqIJ8PIw0lVgzlaFsJkCqzUjEU7ORI6w6X7y5UyK/ OBh+8bHmSi4idjHt8i3JdW29TgFu+nD1N0LXLSGl8bsVPXfbjXrmgvlRBoIo9+dczNF4 QsSw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:to:from; bh=N77q1Iy1D6+8lmzJgQS/3d0uzHy6ipgfIbY2dC2levg=; b=xbQ/d6RLFgUP+1xkIoQe2HK8JCn7gbh3l9fRCZbJ9x5bm0R+wsN3xATVkM8bsM75Kc BdzfTE0WiVMx57ozF8M0vF8XbQEEgNkYVDj6kvQMEuhXVPEG0u0HEXEqaTxd6EFL37Kg s8n666/zplzvVFxIQx+cN631gme9cVcaYGDNkKApKmVo3q8+WB35AWNJmM5RA+Hx3KzB HUtSl8TIzxl8X17kE7D+9M7QDWeNHGOlZVYgjXqcrddNPnHzX8kmxe/ZpwU7DSTIpsqz I3MjazC/w6rJJcIehXwbp7loItm3/4Z2tlO37H5rXLjcH51LE3DtGzByTnlYZrJNFjIE 79EQ== ARC-Authentication-Results: i=1; mx.google.com; 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 l63si10080466pge.264.2019.08.19.09.36.05; Mon, 19 Aug 2019 09:36:20 -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; 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 S1728341AbfHSQdn (ORCPT + 99 others); Mon, 19 Aug 2019 12:33:43 -0400 Received: from mx2.suse.de ([195.135.220.15]:55518 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727952AbfHSQcG (ORCPT ); Mon, 19 Aug 2019 12:32:06 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id CC133B61B; Mon, 19 Aug 2019 16:32:04 +0000 (UTC) From: Thomas Bogendoerfer To: Jonathan Corbet , Ralf Baechle , Paul Burton , James Hogan , Dmitry Torokhov , Lee Jones , "David S. Miller" , Srinivas Kandagatla , Alessandro Zummo , Alexandre Belloni , Greg Kroah-Hartman , Jiri Slaby , Evgeniy Polyakov , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mips@vger.kernel.org, linux-input@vger.kernel.org, netdev@vger.kernel.org, linux-rtc@vger.kernel.org, linux-serial@vger.kernel.org Subject: [PATCH v5 11/17] net: sgi: ioc3-eth: no need to stop queue set_multicast_list Date: Mon, 19 Aug 2019 18:31:34 +0200 Message-Id: <20190819163144.3478-12-tbogendoerfer@suse.de> X-Mailer: git-send-email 2.13.7 In-Reply-To: <20190819163144.3478-1-tbogendoerfer@suse.de> References: <20190819163144.3478-1-tbogendoerfer@suse.de> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org netif_stop_queue()/netif_wake_qeue() aren't needed for changing multicast filters. Use spinlocks instead for proper protection of private struct. Signed-off-by: Thomas Bogendoerfer --- drivers/net/ethernet/sgi/ioc3-eth.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/sgi/ioc3-eth.c b/drivers/net/ethernet/sgi/ioc3-eth.c index d862f28887f9..7f85a3bfef14 100644 --- a/drivers/net/ethernet/sgi/ioc3-eth.c +++ b/drivers/net/ethernet/sgi/ioc3-eth.c @@ -1542,8 +1542,7 @@ static void ioc3_set_multicast_list(struct net_device *dev) struct netdev_hw_addr *ha; u64 ehar = 0; - netif_stop_queue(dev); /* Lock out others. */ - + spin_lock_irq(&ip->ioc3_lock); if (dev->flags & IFF_PROMISC) { /* Set promiscuous. */ ip->emcr |= EMCR_PROMISC; writel(ip->emcr, ®s->emcr); @@ -1572,7 +1571,7 @@ static void ioc3_set_multicast_list(struct net_device *dev) writel(ip->ehar_l, ®s->ehar_l); } - netif_wake_queue(dev); /* Let us get going again. */ + spin_unlock_irq(&ip->ioc3_lock); } module_pci_driver(ioc3_driver); -- 2.13.7