From nobody Sat Aug 10 00:00:38 2024 X-Original-To: dev-commits-src-main@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 4WggsL5x1Mz5SpPG; Sat, 10 Aug 2024 00:00:38 +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 4WggsL48mJz54Ky; Sat, 10 Aug 2024 00:00:38 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1723248038; 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=ovGNdHfx9A/eKB8yFzFaLtjfw6MGlMDTD/NKCk5lEk4=; b=Rgbgcx4ogMQ0sM06ceHt9KKGcF4AYdPuk+9IoyFkIwsE/9BX0xKSAKZNOZ2Jk8AZOvtjT7 y/5G9ddhn5aimABv662WbTcFrGzDCgDnyiFeowUcVDV3UxT/gmEVOb8TWTnVtveokU80Tb 8tNZCCUrzUE6XtjU6zZlU+83yropGEOWO7AJ+/IpvhGUH5gQ9wanK7sPxAwEn/83U11QnQ t+I6Kkxz7gtvuly4lEkotoPq48uAtkbpk3zsBTibbTFJejj1dIOtNPi7inimX+/m10VABk Bzn7HTevRoU5gXNkSljVpGsdruV8V1oeP5CkjK3jk8puy0saxO/3OZhnAd2dFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1723248038; a=rsa-sha256; cv=none; b=M48+eM8ajyTYMmB7t6fU2FRh8pkyoZrizLZvpW2vstB0fsrlyuRONTAMSZs44cqk6P7jc2 ZIl0w6sauiR1XLBeDBXhSYLgu03q19B8wchOVQVIK0aKgl3xr3pS+j3WqmaAiDzgQ5mcny L43dlmZOmDlSlv558bnWSSarGw3OqODnJr5wnoSdjlhqXMPwe+L64yinL68Txk4+kliSMc KiFj7sGYk38sXo/xJyfB/zqFgfvh0gbUshH2qDAMZdNvVA9rs+LZ5wx2LS1ha5wpEGkKkC bnlSEl2UqTnYocUd3RzT1P/XcFs3JoSi064XJl/rYt8x4UkEN4SdTLcUzvxejA== 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=1723248038; 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=ovGNdHfx9A/eKB8yFzFaLtjfw6MGlMDTD/NKCk5lEk4=; b=p0JLZu0d/nyCHTkb6BV7Jbb3UdHCoTrZ+OlEmWwZMZ7x0INvyIvdcDQ6n5lNUrscBaVfjN dH5i44CsTNR4JzEm9D+3K4sZhlh1MrJ7MGRkD0QafYU6XfeGjTiHicCP7cx7EYwo0hytb+ wOn1Oq3tiKf2qgdHT2U7VfAiKJrfDfRI0TL93mJnXqXJYGVx+iX9mdFCxcbTKGGyg3fmm2 0ulgjL8KUtstG9pa2F0ix6527Q4gntJgzFEnhQQzI+VPYeOK/fGvAbxVi7n5PUftvFrGl3 ZYb6FBCluNP06bGoiWTOrem5JCbajVb3p44gHQU3+SwIDvY4GhO1gTmysOiG3Q== 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 4WggsL3mtzzdH2; Sat, 10 Aug 2024 00:00:38 +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 47A00clC054727; Sat, 10 Aug 2024 00:00:38 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47A00c3i054724; Sat, 10 Aug 2024 00:00:38 GMT (envelope-from git) Date: Sat, 10 Aug 2024 00:00:38 GMT Message-Id: <202408100000.47A00c3i054724@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Colin Percival Subject: git: 54a543d5ea3a - main - EC2: Set dhclient_arpwait="NO" List-Id: Commit messages for the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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/main X-Git-Reftype: branch X-Git-Commit: 54a543d5ea3a58aee2f001498376127efea24bd2 Auto-Submitted: auto-generated The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=54a543d5ea3a58aee2f001498376127efea24bd2 commit 54a543d5ea3a58aee2f001498376127efea24bd2 Author: Colin Percival AuthorDate: 2024-08-09 23:55:30 +0000 Commit: Colin Percival CommitDate: 2024-08-09 23:55:30 +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 --- 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