From nobody Tue Aug 20 04:58:23 2024 X-Original-To: dev-commits-src-branches@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Wny0H5zQTz5VFrl; Tue, 20 Aug 2024 04:58:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Wny0H26GLz4NZf; Tue, 20 Aug 2024 04:58:23 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724129903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p45zZdR+hlPBJ8u3ABxHTFdHgrL5LORlw12Y+76s9iU=; b=a5JvPbHEIEloQ/Q/nzIuqx+0zHN8092YXtdIwAnwU8ZoV3eglmnZE93aPPor7ca2L+m/xX psFpGwoxsQ1wFkm7EtWRlmZ5gPHZru8pqpmh3PpDn2eu4OLZykCJE8rYyh9naikRjh6AhS cbzxaoApyjmum3kbuj6/ACYCWrYpEjrDW/GaadnPlKZnJvEhlT7wI7hc71FMSJ6J/fBudc GPHNblWBR/xKjPw3uaH56BjHHFeLSatiPFmNVATRct9UHFBrG/jXwi3ijdoirc1t11f3dr 7jO6elo0KWYfyJuQIlLkvhcNseB8G4DoVdt0zxyckhhsicaZgiEC+NtFLl0iFA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724129903; a=rsa-sha256; cv=none; b=cHYUW+Udqrv7fY0zlvTINV8+rYYS6fizsgbWlbBi3YSiHmRcBqJkYwi6YGB1aZSoenK/MP Za6zGzhAdhVnL0ypf6Y7x5BHKyQDxsWLm05QGQo42vYSawDA/IATTlLYihWc9H/+s8c30G Pw4WHALP5/cAinV7VNR8WrG0GTMsANwHSeHEJgKxSd1B/IShyb/WTmJ+/8VdJjL1j9tS8z Qaw9PDQkVnS6uQ5pZSJY0ewAgIeFA8atGp6cWHh2xQCM59hDK47NsKieFHPQZQ60Bje+Pp KBZJwxSplVD7OkOC17UXQ2saXdUznt2RFEkiClVDR4jCSMGjOFe+phT2xYSXyQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724129903; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p45zZdR+hlPBJ8u3ABxHTFdHgrL5LORlw12Y+76s9iU=; b=SX8wra1NQ45BhyF3A84IWTVei4jGnCM5/yWHPZlCsl2Lvy8r8uYM1MrJkTvQCXa226mgLl dt0C+91/dXQ/XGc1LXmDqvZyy7CmdgdLzVTOS0eaNKZFeu0C6NvHmRwss96qFMgH5RQi+v csMi3RMVC/keFNm02F/F6tKP7tdB8jNiwmQ0H+JU8uO+loPsFEl1r2dhZg0jsMNH1I3fHe sy7oNMxcQ2MSXjDpAbqGthmwDCqHfQiqHmh26+nyrnkqWwik3iTy5aUKOVYMbIQbTVqi8+ YdmjS0bEAbpBTt5SWeMJ5CfE9EgHcBYBZJG5lnwJw0mVf762ZhB/pIgdmVx+AA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Wny0H1kbtzmKk; Tue, 20 Aug 2024 04:58:23 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 47K4wNp3054441; Tue, 20 Aug 2024 04:58:23 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47K4wNE7054438; Tue, 20 Aug 2024 04:58:23 GMT (envelope-from git) Date: Tue, 20 Aug 2024 04:58:23 GMT Message-Id: <202408200458.47K4wNE7054438@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Colin Percival Subject: git: 7300dec10a0b - stable/14 - EC2: Set dhclient_arpwait="NO" List-Id: Commits to the stable branches of the FreeBSD src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-branches List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-branches@freebsd.org Sender: owner-dev-commits-src-branches@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: cperciva X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 7300dec10a0bfd25bc1163a577a66666ab1d97ab Auto-Submitted: auto-generated The branch stable/14 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=7300dec10a0bfd25bc1163a577a66666ab1d97ab commit 7300dec10a0bfd25bc1163a577a66666ab1d97ab Author: Colin Percival AuthorDate: 2024-08-09 23:55:30 +0000 Commit: Colin Percival CommitDate: 2024-08-20 04:57:09 +0000 EC2: Set dhclient_arpwait="NO" The DHCP server in EC2 knows exactly which system should be using which IP address (and in fact EC2 has source IP filtering on by default) so there's no point ARPing an address before using it. The preceding commits (changing the ARP wait time from 2 s to 250 ms) and this one (eliminating the wait entirely in EC2) reduce the time required for a newly launched FreeBSD/EC2 instance to launch by 2 seconds. Discussed with: icattard MFC after: 10 days Sponsored by: Amazon (cherry picked from commit 54a543d5ea3a58aee2f001498376127efea24bd2) --- release/tools/ec2-base.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/release/tools/ec2-base.conf b/release/tools/ec2-base.conf index f4c46fe285cd..d80035e11ed7 100644 --- a/release/tools/ec2-base.conf +++ b/release/tools/ec2-base.conf @@ -26,6 +26,11 @@ vm_extra_pre_umount() { # requires accept_rtadv. echo 'ifconfig_DEFAULT="SYNCDHCP accept_rtadv"' >> ${DESTDIR}/etc/rc.conf + # The EC2 DHCP server can be trusted to know whether an IP address is + # assigned to us; we don't need to ARP to check if anyone else is using + # the address before we start using it. + echo 'dhclient_arpwait="NO"' >> ${DESTDIR}/etc/rc.conf + # Enable IPv6 on all interfaces, and spawn DHCPv6 via rtsold echo 'ipv6_activate_all_interfaces="YES"' >> ${DESTDIR}/etc/rc.conf echo 'rtsold_enable="YES"' >> ${DESTDIR}/etc/rc.conf