Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1272149imm; Tue, 2 Oct 2018 05:46:56 -0700 (PDT) X-Google-Smtp-Source: ACcGV601lO7mE5VEQMoIe/IHLtBltxjZT4NSOnvUT2FKL18opkdPuDHr0Viz0WQeTdsVJ50QLvge X-Received: by 2002:a17:902:b28:: with SMTP id 37-v6mr16770834plq.337.1538484416653; Tue, 02 Oct 2018 05:46:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538484416; cv=none; d=google.com; s=arc-20160816; b=aKDl2AtPdNosXbR8QL750lUQKBoaOhRFXJ8o0QrZu+XG5d78nQrUWMLkXaAyIxWock 8kUgWU/VNXaHeGZxzWsqdJc9fEvE2pXlhvgratvKy+BJZxagbLsQk43+ykIhLIhQmQz+ jpFEoiU0baIRcRv3MYpGd6peaDUw2MFBllJdre8o3jDPXmiYi0pheYCXqOkSidy+FSR7 f4Ixkx5/X6KKIM1earZ305gv/POhB/S6deg1u686c6GwajqHQgCwGYGk5qh8ZjmHU8Dm EpT5DO3EQEcq9yH7WlBCeGdpLd9kBJf4zSB/ZbwPWY3O+fJ4asSDKVdI/Ac7iU4L7kpL elpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=QKsmzS6GocpsXY99GIbmO/r0yAAUe3kjlkidBBmiFSA=; b=vscEHNVj9rPAVwL72GRDSKmE8lSDOfEXuFmcXXTBJRkJY+2AGO5LVfYKpoYKfx0DQu 0ZdliaYF4FXULttuBAnxQYAaY7cBSVIBYZqbWpBrgbdXl9OlEqwm0hyx6w8j5m5HALUS 13bVdwAFLAaZpTyDXjE5FNnXsLwUw0tdSjQVpvEAeQODHJxhCLqdOT/M4DvvOFy9TWzF Y8CwS7sTkgF0iNUi6buWsvASGxJNMEThTueY/VVZClRUurtE8Ah0f8OVdOHODxSMPnz0 EOv3YsICaUHH300DSs0T+IXA57nINZDcXOBazL1JMYt9om7WPrdwdf0epxkGUhKrEpcn KJTw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b=jt5LQw5w; 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 33-v6si15880999pll.381.2018.10.02.05.46.40; Tue, 02 Oct 2018 05:46:56 -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=@lunn.ch header.s=20171124 header.b=jt5LQw5w; 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 S1727739AbeJBT3k (ORCPT + 99 others); Tue, 2 Oct 2018 15:29:40 -0400 Received: from vps0.lunn.ch ([185.16.172.187]:51952 "EHLO vps0.lunn.ch" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727582AbeJBT3k (ORCPT ); Tue, 2 Oct 2018 15:29:40 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date; bh=QKsmzS6GocpsXY99GIbmO/r0yAAUe3kjlkidBBmiFSA=; b=jt5LQw5wNxc/EKrCArSqf2TdHXN3w/vgrKND7T0FIzzG/ggAa0MDiU6Cn41Ao80wRm6Pquf6I3mwL61xOK/XHG5rQ4LmctL3M7VdZIWqXqZ6H1o2b5hWif/E0Q0u/8ofyTCIf3k5hoRMlEwuflEwAxZsp0eySXIM28LOfKtNkmE=; Received: from andrew by vps0.lunn.ch with local (Exim 4.84_2) (envelope-from ) id 1g7K4A-00037X-Oa; Tue, 02 Oct 2018 14:46:18 +0200 Date: Tue, 2 Oct 2018 14:46:18 +0200 From: Andrew Lunn To: Ben Dooks Cc: netdev@vger.kernel.org, oneukum@suse.com, davem@davemloft.net, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel@lists.codethink.co.uk Subject: Re: [PATCH 1/4] usbnet: smsc95xx: add kconfig for turbo mode Message-ID: <20181002124618.GD9155@lunn.ch> References: <20181002092645.1115-1-ben.dooks@codethink.co.uk> <20181002092645.1115-2-ben.dooks@codethink.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181002092645.1115-2-ben.dooks@codethink.co.uk> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Oct 02, 2018 at 10:26:42AM +0100, Ben Dooks wrote: > Add a configuration option for the default state of turbo mode > on the smsc95xx networking driver. Some systems it is better > to default this to off as it causes significant increases in > soft-irq load. > > Signed-off-by: Ben Dooks > --- > drivers/net/usb/Kconfig | 9 +++++++++ > drivers/net/usb/smsc95xx.c | 2 +- > 2 files changed, 10 insertions(+), 1 deletion(-) > > diff --git a/drivers/net/usb/Kconfig b/drivers/net/usb/Kconfig > index 418b0904cecb..a32f1a446ce9 100644 > --- a/drivers/net/usb/Kconfig > +++ b/drivers/net/usb/Kconfig > @@ -351,6 +351,15 @@ config USB_NET_SMSC95XX > This option adds support for SMSC LAN95XX based USB 2.0 > 10/100 Ethernet adapters. > > +config USB_NET_SMSC95XX_TURBO > + bool "Use turbo receive mode by default" > + depends on USB_NET_SMSC95XX > + default y > + help > + This options sets the default turbo mode settings for the > + driver's receive path. These can also be altered by the > + turbo_mode module parameter. > + Hi Ben Is it worth adding a comment here why you would want to turn it off? To reduce soft-irq load? Thanks Andrew