From nobody Tue Aug 20 05:02:18 2024 X-Original-To: dev-commits-src-all@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 4Wny4p6Pdkz5VFxc; Tue, 20 Aug 2024 05:02:18 +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 4Wny4p2jkDz4QrW; Tue, 20 Aug 2024 05:02:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1724130138; 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=opiTWNfkJRDsSZiy02n+T9WkyEKo+HDnZw4LG1M6hSY=; b=HPB4/lUXAvjgLq4aiq2CZggkLDyxoskixh/HXX+97I/yNlT0kR8fuH+ErPv6oomGvdCX+g PioGKfOo2jwneAKAShRJf06CGPUkzq0aoNd6I4me0aCA30igOjDISU7nbdbQ/qdwywiSCC iV+WFyIKn90sgPlbok0peSVctJEk16+uAgeJU55YPNcBHaUPPsKwvwa66SqGsP3cI6pXOQ pZN5Oj/BwsoH+juC/SoCq4/SFZhK94BrF/4wTOMmOCEzfFBSxsSapZMZVA7j4YMThAtl5E qIqsiWbHCmkW2oPm+l6mkIXNX4XhRoDVzUGCNQiz8lsXxLNOpjL0SDgjwR3vUQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1724130138; a=rsa-sha256; cv=none; b=a0yE3N6w7U8ndRXy2q0O5u5P+bbZoTLJugI8IIZayBLAWgaB7SPJLLq1BrfqSRDKMlouM2 QWE9cQdTdWO4OCLWTOu0mvV4nlKlSdu08y4UBEk605AOVwPSAF3RUKjd0cUxUnm4vcKRgZ LO+PypE1lN3N3Ylg5EYPhRBigxFFcVUgKndEq2o77z+MmzYItQy4aGfLf+Cu/8w7LQAJ+x P5rErT13ObBYMkuiVeKrKwUVF5ApSIEQDlwHRycoOTAPCiJUc6nleAT3QZ8NQQRyAfddOk 8Sj9LQulWkfRv5eYNQv4lSk8FMRHaWztvtUqmT1ICZTDqKJ+Od57LdsFY7htuQ== 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=1724130138; 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=opiTWNfkJRDsSZiy02n+T9WkyEKo+HDnZw4LG1M6hSY=; b=ohPVwxeWNBEWlfH0zDfky8tFizxcSalIv1Xr7DMPDEqkiAtE80jkMn9Xlb4cBIqjsqyWkm 6tcCvZ7xIazP7RKQa7MNCGYpp9e7GDiPqYmT+61Q2asPr81ZPddjg4Acgr+CdoLMF6tawY j6FIlKCQXhQpZMC2AFnLATm4ixhgy9u3Tbs/V9q2HUDDzUR86C8Ch8Qc66uUOdytf+yw5x 5MHmzkRhZkH0ndOEJXDqecua1u1ZHb0T+JCEnZFH89nZliDReLTJfZ/uhWFZ44HN4pe7dq nWQQRy/wGGGxzqqYcI+/kKRO7ENxysMSIJtI7J5/z3C4P27FSinMb559G9SKfA== 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 4Wny4p0wXXznH1; Tue, 20 Aug 2024 05:02:18 +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 47K52IuD072379; Tue, 20 Aug 2024 05:02:18 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 47K52IWY072376; Tue, 20 Aug 2024 05:02:18 GMT (envelope-from git) Date: Tue, 20 Aug 2024 05:02:18 GMT Message-Id: <202408200502.47K52IWY072376@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: bc29564feef6 - stable/13 - EC2: Set dhclient_arpwait="NO" List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@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/13 X-Git-Reftype: branch X-Git-Commit: bc29564feef6667593a60503cae014096341145e Auto-Submitted: auto-generated The branch stable/13 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=bc29564feef6667593a60503cae014096341145e commit bc29564feef6667593a60503cae014096341145e Author: Colin Percival AuthorDate: 2024-08-09 23:55:30 +0000 Commit: Colin Percival CommitDate: 2024-08-20 05:01:34 +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.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf index 96e628f2c497..86706e21513c 100644 --- a/release/tools/ec2.conf +++ b/release/tools/ec2.conf @@ -64,6 +64,11 @@ vm_extra_pre_umount() { # via EC2 user-data. echo 'firstboot_pkgs_list="devel/py-awscli"' >> ${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