Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp3182503ybv; Sat, 15 Feb 2020 13:19:32 -0800 (PST) X-Google-Smtp-Source: APXvYqzaA6q639Vcyfh5uOAAZrJlxr/ATM8DEzWAt8CkiNrv3lwOfQwX1NYil1rvmJNtJhbrOuyF X-Received: by 2002:a9d:7548:: with SMTP id b8mr7394902otl.74.1581801572018; Sat, 15 Feb 2020 13:19:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581801572; cv=none; d=google.com; s=arc-20160816; b=apI+wUu/lG/fkodikIAegm2YHPi53UKbbWgXtXwooGS3gILgH4QfWuSAqnxFhk8mKK wU+Wpv88x/dSIKPOE5pedtsJnczyvM9jGLXan1s8W+GJGs9Ju+QSHLf2xj73w8BtUrWc F4hDORN5yqsjT5PJxTac3d/adk8O1XlKJfoG4YrfXKhJvw0P1tcF2mKYy0ZvJaMWP5ih YWT21mtiyRxFxu6caOa3AozwpqWm/QMSEryQB/SxaZWh48iLll73wXoIBZMd+fnEvL+g gQtO3M23OTchg+zPuTZZesilrUWocZ3/idaZy/w5PF4V0qVe8pjxP3RyplmbXFSkEn5f s5sw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:date:subject:from:references:in-reply-to :message-id:cc:to; bh=Ey1t3C3vvOLfualhuSI8u/COQwYyiGP/W3swTltkv+Q=; b=W90R2dgFxguejH/JPqS+z/2zBnrQLGExtIei7BaGXF8CppRxZ6I/WGsgF0BpH/8ZMI XO2FbiR2U1+VsbHNx4Sw0DGP/U4qi+TCfPG511CQht5V9604A4optljywUIbbNDNUukK +xkgjiLImDD5LaxdRE0BxonlfnIAWPuLhgg7GYmdVcMrCBSjpQxFuBASlGRLCtHVmxMj +GAJ9AiH5Q3lDxPLX/TYFYgxI1mJNAPt0xg5wzhn7g94NOv57arD5NlPpTVDuTUpug8l H/w+176LiwMlKQqXFlEsjKBOIfkgFBYG5UfkQVEef5ya8DpkgGpkkHaJhg1N/ycuMe7c PY+A== 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 i2si5050566otc.130.2020.02.15.13.19.20; Sat, 15 Feb 2020 13:19:32 -0800 (PST) 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 S1727950AbgBOVS3 (ORCPT + 99 others); Sat, 15 Feb 2020 16:18:29 -0500 Received: from kvm5.telegraphics.com.au ([98.124.60.144]:34906 "EHLO kvm5.telegraphics.com.au" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726383AbgBOVSC (ORCPT ); Sat, 15 Feb 2020 16:18:02 -0500 Received: by kvm5.telegraphics.com.au (Postfix, from userid 502) id D1EA229B2E; Sat, 15 Feb 2020 16:18:01 -0500 (EST) To: "David S. Miller" Cc: Thomas Bogendoerfer , Chris Zankel , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Message-Id: In-Reply-To: References: From: Finn Thain Subject: [PATCH net-next 4/7] net/sonic: Remove redundant netif_start_queue() call Date: Sun, 16 Feb 2020 08:03:32 +1100 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The transmit queue must be running already otherwise sonic_send_packet() would not have been called. If the queue was stopped by the interrupt handler, the interrupt handler will restart it again. Tested-by: Stan Johnson Signed-off-by: Finn Thain --- drivers/net/ethernet/natsemi/sonic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/natsemi/sonic.c b/drivers/net/ethernet/natsemi/sonic.c index 9ecdd67e1410..1d6de6706875 100644 --- a/drivers/net/ethernet/natsemi/sonic.c +++ b/drivers/net/ethernet/natsemi/sonic.c @@ -327,7 +327,7 @@ static int sonic_send_packet(struct sk_buff *skb, struct net_device *dev) netif_dbg(lp, tx_queued, dev, "%s: stopping queue\n", __func__); netif_stop_queue(dev); /* after this packet, wait for ISR to free up some TDAs */ - } else netif_start_queue(dev); + } netif_dbg(lp, tx_queued, dev, "%s: issuing Tx command\n", __func__); -- 2.24.1