From patchwork Thu Feb 8 10:03:04 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David X-Patchwork-Id: 198271 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7300:50ea:b0:106:860b:bbdd with SMTP id r10csp62638dyd; Thu, 8 Feb 2024 02:08:50 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUYhjB9gr7gu22S5Sob8npNxQbmsvjxNbobsGMr3Fr+/up3PIHcfMRCpj2WypsyF3fwCutpIykI4H12x7LfCRD6OmeOnA== X-Google-Smtp-Source: AGHT+IEUm5WJ5hLdw2q/B6Gr3QQcxY9GyAJEX0ypCiPKXi9IllYVk7iWy/P3MUcASxjaFAeaHq4D X-Received: by 2002:a17:907:7711:b0:a35:fbc4:4c2f with SMTP id kw17-20020a170907771100b00a35fbc44c2fmr6099001ejc.25.1707386929957; Thu, 08 Feb 2024 02:08:49 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1707386929; cv=pass; d=google.com; s=arc-20160816; b=LMsL7ZgspuvWu04axAJwEpJebC4qsEFA3sZEWTIDHDDx5myfZz8qDCC5J/0S+DqZtq X1NWlRPlagre4dULNAC7IS6byVr6kDfG3bldW/4JYlwobmazXLNdLCIXEE0GjuVS1cr3 95aM187evtKZ5hCvRHJh5eH0eKXuBlTEVyRwjHJ0ZEBBpuCSlkNNUpDnfGkoTnzZLRpQ iwjIwrNmDcY4WPLkcK1NcUNt581J7g8vgq7xL7KvDekH3Bmc9ddoMVc9Oa+ZdT8Iy+fq Bhmdcs6nYmOSh5IjvwcHy4mSHnN4NqCYfscuOdmqyX37WHklIWs01/Bzt9tf3rjcDpP6 Eudw== 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=D1j+fb+EL4TjGtU7jpFQ7vzLIzUQmO3G3TEtKOhSCTE=; fh=Wrmlvz17Tn6pqLrfkJmPVIca59sQfBgGjo81+CYSSrQ=; b=BPF9mH+s9RG6w3LpETFb7auvPW4pLvniG9XmXl2bkWNA+GvkwgSmuzPr7gtZ6sIaJ0 tUZsBNyiKexDnGWTZvy8vWgwyr9WEikgnBtHddL4hSvJTulmxLkP6lQsDiM5bSBaeXbu aSE7RRTFa+1iKxkYkGAcUBpyADqjfA3StqV/cmI9GK035FqaQ9hRAX8k39OQ/yFaTJ0d 3QrCmOA3/8Vznk790OOFgYKaP/UvMhyEyRiV5+ErVqQf/f3I4MQvYQynhGurHEp9f50/ xre6WOB9CU1fS+IVHij9EddtHzz2k9gDTZbDUGYECy/5VPUwRYstmE0MJEKi9cYkB8Dz NQhA==; 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-57821-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57821-ouuuleilei=gmail.com@vger.kernel.org" X-Forwarded-Encrypted: i=2; AJvYcCVo0NCgpONAyp6ICSkDV78ahyOakwsrsPLc/lkUx/Dotg+n7kcfYr4PbrmYIXjMtq4olD5iBKYl58DRYxgl+N2dvZhP8Q== Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [147.75.80.249]) by mx.google.com with ESMTPS id lg10-20020a170906f88a00b00a35341252e6si2024531ejb.1037.2024.02.08.02.08.49 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 08 Feb 2024 02:08:49 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-57821-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) client-ip=147.75.80.249; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=davidv.dev); spf=pass (google.com: domain of linux-kernel+bounces-57821-ouuuleilei=gmail.com@vger.kernel.org designates 147.75.80.249 as permitted sender) smtp.mailfrom="linux-kernel+bounces-57821-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 902A31F23477 for ; Thu, 8 Feb 2024 10:08:49 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 01EAC74E29; Thu, 8 Feb 2024 10:03:17 +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 85CD56DCEA for ; Thu, 8 Feb 2024 10:03:13 +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=1707386595; cv=none; b=S2hCSOB/FRrlRGmWSc6dyZ32VV3zu5bgLTL+AV4PByTOWWoqcf7ew/8noh/3P2O83WCwbc4F1UTnJkKfp6HNmUTxnyQcgAETyzpfTjgvheOwlbeaOOyGFs8sxNL1YuDFRbiHE/+uVquu+XKs3J3giGk0ytIPvhcfGdM8O0cn648= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1707386595; c=relaxed/simple; bh=WTA+UDK0EaxEUPjb7YY9WTShoJNOU9Pzb4SP9T7Km8k=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=S6pDFM1RD9aF/WMJQjXqaTRjEihujuJvLqnhvRFUkuSxoXsOiQ1AskNp46FV2IK0UuUqgpQa8Ji3fgi7mKZ4IvSFvZn0naAiPIMsDhnsdxnEb8hCa7pxgGkutnLlK+bzGvJSzawnKuhNZYc6gyzx4QrTtRWqsh6k3A7UzedTtBg= 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") ; Thu, 08 Feb 2024 11:03:11 +0100 From: David Ventura To: david@davidv.dev Cc: Jonathan Corbet , "David S. Miller" , David Ahern , Eric Dumazet , Jakub Kicinski , Paolo Abeni , linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, netdev@vger.kernel.org Subject: [PATCH v2 2/2] net: Change default delay on IP autoconfig to 0ms Date: Thu, 8 Feb 2024 11:03:04 +0100 Message-Id: <20240208100304.253337-1-david@davidv.dev> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20240208093722.246930-1-david@davidv.dev> References: <20240208093722.246930-1-david@davidv.dev> 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: 1790324957637103160 X-GMAIL-MSGID: 1790324957637103160 Reduce the default settle time from 10ms to 0ms, based on previous discussions ( https://lore.kernel.org/netdev/1305696161-18277-1-git-send-email-micha@neli.hopto.org/t/ https://lore.kernel.org/netdev/580001e3-17ef-4f24-8fd8-bc14110e874e@lunn.ch/ ) ARP and DHCP retries are expected to handle any lost transmissions. 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