Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp2486969rdb; Mon, 5 Feb 2024 08:02:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IFkAj2jDkxsq1M9h2KX0gaKyUn6FG8WAjaC+S4X7ycID7TnPPe5KHcqDJpE4koyyMgJRaQ8 X-Received: by 2002:aa7:df14:0:b0:55f:c8d3:94b4 with SMTP id c20-20020aa7df14000000b0055fc8d394b4mr5803456edy.6.1707148973462; Mon, 05 Feb 2024 08:02:53 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707148973; cv=pass; d=google.com; s=arc-20160816; b=YLtUqWfZjai2uTXA3ANgrkPDpJWiHkx/V26ob4VBeBCGbqLyCdbX48zjx8Do72r8oL ZfAI+3b2d3Cko9M4BEt1CVfLKFFDESeSbetUKsSECIGtkMrpiIAfPh8bF7KCKEx4gPTE a2EgtyFguVNHrwr5r23+wbRBGROUFD29Ar2e1Cz2rVAu7Dpi2+OAEQDEtaynjXjkGqsg cDUcF3NphuxuDUPJLbblDXmAJPL/Gmkk9D5t5tI7xQvyRTY9lS6pTBppm9jtWNx+Gb1/ 8wx9XJYDGan4RGglrteMq6yL0RPj0cYS6bQud2aBRTN0lGo9ccx4oMCIcZwmVXR7NZzG 28xw== 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=aaweULYc+IP5LVPZmHDJmlg/NU2C9P98Mdj4U+e+Tgg=; b=Vrsq6mvZ1jlteUN8vsHiWaVe4QTnH6y6HaIYJvV5OwgKwTXsmT3F2wB/duz1eL/IxV 34Km09KiMT8WeYavdI4F/UTikAY+9s6PLzhFT2rZFNBjdS5tFVR/1WTbf6QLmQcQVhpQ PVfPp/A4zimm9P3XBXcYiVueRxLdfFObfWFKfi5noVUIWFZvSPSjZdOkYtB97NerMmdW ttwqUPkk/w59SRvoIyA/Z/bxz9R/yLe96IUJI6mCoP0gz/8lvnEoZgqgwz5AQWnEJTW1 BEsSq7C88wtwPc0mTghCRJd5VqIVvLYgIj1TJto9GLp49YY7awjOIlgOGC6wuEEcVD/K Pk4w==; 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-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52985-linux.lists.archive=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=1; AJvYcCU0OzBfoM3dqQZBTaxiT6xBJqvSmi+7cCXav7ZzH1/Z4axbZRPJbU/0QvwFz9P9EoEF5CJmTWTmZtmWaHgxV1G/zDd5HHWlR30vzK1hYQ== Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id cx19-20020a05640222b300b00560542792c7si21914edb.274.2024.02.05.08.02.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Feb 2024 08:02:53 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-52985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=davidv.dev); spf=pass (google.com: domain of linux-kernel+bounces-52985-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-52985-linux.lists.archive=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 am.mirrors.kernel.org (Postfix) with ESMTPS id 326E41F235FB for ; Mon, 5 Feb 2024 16:02:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 369333589C; Mon, 5 Feb 2024 15:58:57 +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 Content-Transfer-Encoding: 8bit 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 -- 2.39.2