Received: by 2002:ac0:a582:0:0:0:0:0 with SMTP id m2-v6csp1087427imm; Tue, 2 Oct 2018 02:27:35 -0700 (PDT) X-Google-Smtp-Source: ACcGV63wFNnX8kS4N73NAiy+jHtqMGy/ldg4IjpDdj9JhRQLhifjWveHKsdzzTxk+5XTQflcxl0o X-Received: by 2002:a62:71c4:: with SMTP id m187-v6mr15390843pfc.232.1538472454962; Tue, 02 Oct 2018 02:27:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1538472454; cv=none; d=google.com; s=arc-20160816; b=meUiV0uYEDVcoMYyRh6Y67C0Wog0ooFjtfF4b+x7jteZHxIe08dLqa1rfTfcWai5Yx 6xTOTi9j0Xd/T7PoR4lwCp1wYLZKwwDaS7au/bEQo5QlJKP7DFw9urpBsE6sR6oZ0Lkr dMqx8g8acCVKQNgzM58KtV5jVG1yjmFq3pt7cU4De9jfX4Lt07OM0LS6DhSVt2u4iWhK DO41h8PjU1EOxYRWLRNgz+Z8ZYyLXg1W5MguZKfERSoXkHtSb/04O8h1vnl2O5UhCaQ5 Yx8stfx4U/Th8IZTkmtO9iYFT9a7OvYiExsyGpxNGLeB49QaW0G6DW1MloH0VUK9jKw2 mmYw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=kH/hilWFV6wqW8BRGHpJk/sYeUUSYpT6mCg+9R0vqJY=; b=W1Ok/6+xJz11n9RE/I1klO/t6Xz9Aa5K2aZu7gdYW/Al8eqGUbvHf3zaTDH5Yu6lod 9PoAZKMntmx1dZFvkLCmiGPq/P/dp9ua7c94ujv3EiSPPXqe1w1+s7sqI3lDDkYhN1Ow ejE9BApLpeKkaVrrvaa155ivYL7/CfzDjGoUDU2TUnq3WO+m2IRrx0c48KwN4HfX0LOo mEymsam/kbR65i9MYlJUcJBghQ+MPjf71giSvQptgu6ina8VBhQ/cWdqkNlKCMm6s6D6 S1OhWSCk9mJs1R/NeAm7iJ83jgK2H/xnTYaCTjY81fyJWnMx0Uz3HConLHYSEyji05fz C0Ew== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w124-v6si9737670pfw.145.2018.10.02.02.27.19; Tue, 02 Oct 2018 02:27:34 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=codethink.co.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727489AbeJBQJN (ORCPT + 99 others); Tue, 2 Oct 2018 12:09:13 -0400 Received: from imap1.codethink.co.uk ([176.9.8.82]:50406 "EHLO imap1.codethink.co.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726293AbeJBQJM (ORCPT ); Tue, 2 Oct 2018 12:09:12 -0400 Received: from [148.252.241.226] (helo=rainbowdash) by imap1.codethink.co.uk with esmtpsa (Exim 4.84_2 #1 (Debian)) id 1g7Gx6-0002zZ-BU; Tue, 02 Oct 2018 10:26:48 +0100 Received: from ben by rainbowdash with local (Exim 4.91) (envelope-from ) id 1g7Gx6-0000Ja-3D; Tue, 02 Oct 2018 10:26:48 +0100 From: Ben Dooks To: netdev@vger.kernel.org Cc: oneukum@suse.com, davem@davemloft.net, linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, linux-kernel@lists.codethink.co.uk, Ben Dooks Subject: [PATCH 1/4] usbnet: smsc95xx: add kconfig for turbo mode Date: Tue, 2 Oct 2018 10:26:42 +0100 Message-Id: <20181002092645.1115-2-ben.dooks@codethink.co.uk> X-Mailer: git-send-email 2.19.0 In-Reply-To: <20181002092645.1115-1-ben.dooks@codethink.co.uk> References: <20181002092645.1115-1-ben.dooks@codethink.co.uk> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. + config USB_NET_GL620A tristate "GeneSys GL620USB-A based cables" depends on USB_USBNET diff --git a/drivers/net/usb/smsc95xx.c b/drivers/net/usb/smsc95xx.c index 06b4d290784d..fe13bef9579e 100644 --- a/drivers/net/usb/smsc95xx.c +++ b/drivers/net/usb/smsc95xx.c @@ -78,7 +78,7 @@ struct smsc95xx_priv { struct usbnet *dev; }; -static bool turbo_mode = true; +static bool turbo_mode = IS_ENABLED(CONFIG_USB_NET_SMSC95XX_TURBO); module_param(turbo_mode, bool, 0644); MODULE_PARM_DESC(turbo_mode, "Enable multiple frames per Rx transaction"); -- 2.19.0