From patchwork Mon Feb 5 15:55:43 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David X-Patchwork-Id: 196901 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:168b:b0:106:860b:bbdd with SMTP id ma11csp970811dyb; Mon, 5 Feb 2024 08:03:54 -0800 (PST) X-Google-Smtp-Source: AGHT+IGnn/GZMw5sMYaGLGzS5aDBzztC0xsarngdhNH9Te9oSqEH429FaCmxUGsNwjuyZx4TqDUA X-Received: by 2002:a37:e208:0:b0:785:3aff:bdba with SMTP id g8-20020a37e208000000b007853affbdbamr14639638qki.26.1707149034622; Mon, 05 Feb 2024 08:03:54 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707149034; cv=pass; d=google.com; s=arc-20160816; b=dRvWUUXs52UqyZiPTv0P3hhRslEddeC1W9ftj0plCdUUMODKYrM9l+TQ+tYjoeWjVy YlDCXWY/EEkROrhQ+OBgAEUDoAik5HZDVZSA85FVEzevMJedVa/HsdyyGSD/wu1ap4bm W63zrQx6qZm38r6KnJ4Dmey76zF4uW1zwxagIdredbnhQoM7hY9amQdZChEppSt4syLU NbaGV/BR6KMkQrXlCKkAuhPUsGqAx2ayqYXr2mBxlOGGMpz7zQ+Hq3Qh4sefFQ/lyIt1 Ld0t5oO0n23q4mJrb9Y77qeB9r0rE39tI8tSzJ912zZ/yMhIBfitwwpYoV/qpe1U02mc 4BCA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from; bh=CEd+tY1zVtwPL++4ZyuPfFA8QXE6WdX3B1k2t3GdA2Q=; fh=ri0KhAJaqcSaiCRDqIDayaQ0iQC8EqHSKN0hxzknxzY=; b=NMigB6/JFuOa1hqcaz5Tcx1EHfEEZCLbJ/zu1MldKhAdCFo8/Jux1wEHD9nJhZ4Af9 dOe/hMbwKObWTpe4lJ6bbFQ3V1ALOzQ65XYawufBokpJnUVB2ly8dMktpDE1qUuDQe07 WEeYAuIAFAC8UUbBFhUqfH+KA2mYDObBEThIHyn8Ynxb9AN+tI86IAl3lkW6V4tlVVfF +CC+AdCXVBOLscCxN3PK9RH2bZNf2DPm9OfZdzxjIpMNirah4c26/jDZEN5bU3dEj+Lq Mch6F9qvrGpJ4wOQi+PJ7DKY1fozaEw/xm7oodc1VlGPtMvAJveif8sZ043rTVUWzcIS YIIg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=davidv.dev); spf=pass (google.com: domain of linux-kernel+bounces-52985-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52985-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCU4o/PxANzKizSXRyd/WuonxwGcnt8/nwhhHOWhoL5NpYkr2zVA8SyRwyW1cAcusLeXkCPy/spWWLlm1ijocpYwXyW8fw== Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id dz2-20020a05620a2b8200b00783e46b2470si116289qkb.600.2024.02.05.08.03.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:03:54 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52985-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=davidv.dev); spf=pass (google.com: domain of linux-kernel+bounces-52985-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52985-ouuuleilei=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 64DDA1C24BA8 for ; Mon, 5 Feb 2024 16:02:59 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 453B84594D; Mon, 5 Feb 2024 15:58:58 +0000 (UTC) Received: from davidv.dev (mail.davidv.dev [78.46.233.60]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DD5BC3D99E for ; Mon, 5 Feb 2024 15:58:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=78.46.233.60 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707148736; cv=none; b=Cvc5m0uANs6wr2pMs5uso+NwYYtSwWUg5vWfJcGTQoxdj9bQbTfm/rGckOTc8b2rRbRUw/WYi+k4OShKE+OK3xwyTgcFSYDBu5/HYFcUGdf11NRXU29Gj22djnWpjjdRbBWu4gQ9ZizJlIq17Iw50jQ2t69WNVRHTpO4pLVECg4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707148736; c=relaxed/simple; bh=Pppg7VSwpwIuek6Wg6dxlq5yApM3fhfhfp70mFwuCPQ=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=APJ4dkZ2TcCaH862YxHTZO+7zErY+vcM5xb5ET/mZRonODMkRejSezRe/11o/he5EPeldv//9YZY/mH/MK0md4RCIGgCExV5ekD8A7CXElad49DS8I8v+DD0lYdPsVBy11Ua87LfAX2o15PLDlDo7AXR00I/07gVdpIUvE1xEXc= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=davidv.dev; spf=pass smtp.mailfrom=davidv.dev; arc=none smtp.client-ip=78.46.233.60 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=davidv.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=davidv.dev Received: from framework.labs by mail.davidv.dev (chasquid) with ESMTPSA tls TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (over submission+TLS, TLS-1.2, envelope from "david@davidv.dev") ; Mon, 05 Feb 2024 16:58:51 +0100 From: David Ventura To: david@davidv.dev Cc: Jonathan Corbet , "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Greg Kroah-Hartman , "Paul E. McKenney" , Randy Dunlap , Xiongwei Song , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH] net: Change default delay on IP autoconfig to 0ms Date: Mon, 5 Feb 2024 16:55:43 +0100 Message-Id: <20240205155717.484198-1-david@davidv.dev> X-Mailer: git-send-email 2.39.2 In-Reply-To: <580001e3-17ef-4f24-8fd8-bc14110e874e@lunn.ch> References: <580001e3-17ef-4f24-8fd8-bc14110e874e@lunn.ch> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1790075506193400187 X-GMAIL-MSGID: 1790075506193400187 As suggested, I'm updating the default to 0ms. This patch depends on 1f0aa0c947eeb4edb60add141a5bc2309f2dc8dd (" net: make driver settling time configurable"). Signed-off-by: David Ventura --- Documentation/admin-guide/nfs/nfsroot.rst | 2 +- net/ipv4/ipconfig.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Documentation/admin-guide/nfs/nfsroot.rst b/Documentation/admin-guide/nfs/nfsroot.rst index f26f7a342af6..fce610a4ec54 100644 --- a/Documentation/admin-guide/nfs/nfsroot.rst +++ b/Documentation/admin-guide/nfs/nfsroot.rst @@ -225,7 +225,7 @@ ip=::::::: Set the number of milliseconds to delay after opening the network device - which will be autoconfigured. Defaults to 10 milliseconds. + which will be autoconfigured. Defaults to 0 milliseconds. nfsrootdebug This parameter enables debugging messages to appear in the kernel diff --git a/net/ipv4/ipconfig.c b/net/ipv4/ipconfig.c index cbf35163b973..8b7d08649b09 100644 --- a/net/ipv4/ipconfig.c +++ b/net/ipv4/ipconfig.c @@ -99,7 +99,7 @@ /* Wait for carrier timeout default in seconds */ static unsigned int carrier_timeout = 120; -static unsigned int dev_wait_ms = 10; +static unsigned int dev_wait_ms = 0; /* * Public IP configuration