From nobody Sat Dec 11 01:34:56 2021 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 5AFCB18D9A7C; Sat, 11 Dec 2021 01:34:57 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J9r1F0nvXz3twc; Sat, 11 Dec 2021 01:34:57 +0000 (UTC) (envelope-from git@FreeBSD.org) 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 EEE3025040; Sat, 11 Dec 2021 01:34:56 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1BB1YuUu011439; Sat, 11 Dec 2021 01:34:56 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1BB1Yut7011438; Sat, 11 Dec 2021 01:34:56 GMT (envelope-from git) Date: Sat, 11 Dec 2021 01:34:56 GMT Message-Id: <202112110134.1BB1Yut7011438@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: efb381caf102 - stable/13 - EC2: Turn off IPv6 DAD 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: 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: efb381caf102938d24149f38e98881d282ded11a Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1639186497; 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=SzTyDw6ZzhiCsiXDfgcVJRFIxcdvkTrh8jE1lTp87nw=; b=vMO7bEBAQU2Dhn8LLX5oPV8RD61b0/hsG63APGYtKCXTj0/siYsKOTw2pm/rozmwjwk617 X1FXgh4oXmhOl2epbd1VDbicyUn8e2i3ZZBeFPVjFXGTuNKHtpYc1W3a6mP/JGWi0em1nw BmgwReqW6QC92Z2BxIuAtb6Ooc50hNLeLb89LPEG8g7gEB/yQtamI5P7JeS6bZAUnrCiRy fzHOscEYyI+H8+pA1UtmEw7/Jvz9ig6Lo6YdXM6vdQ/ujjYKv/CVeIt9RYX4cuEAA3O44V htE2ZtmcvE4/bnO7O/BfIwniJcZAkQzN06CCTN2DobZrfXwIelWWekBoLRQEMw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1639186497; a=rsa-sha256; cv=none; b=kK/s9lyBb8+pMHSeylnbQmBrrNX7CBHgLsAnl2SYvQnIJWZF3SgchbpEkO4+/R62OPVPZT pYpkgJTJox2Hc4Jhuisp50Xb52sh1SwBpCGdQE8ivP0oWWaeO4Qbb8OET4YGDIKtbI3Cdv FiTWkQQR5wSOVBGdAQxq+GBlOeqixaRdHrfPA879PxdACR3w8hjaolw5kTze4nLfam0YJF zQ02EiG2crrDyQFse6ySA1VFR9tq+RSv3/g3GyA3hEzVycJjaXTqUDGJB8Q33qKdlIfvez rkHGBplIGerSCCQPXvyxiiYZiICFPJhaHjrw7g/J83qB4uOg6rhhlAivbfgDdA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch stable/13 has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=efb381caf102938d24149f38e98881d282ded11a commit efb381caf102938d24149f38e98881d282ded11a Author: Colin Percival AuthorDate: 2021-11-23 04:16:34 +0000 Commit: Colin Percival CommitDate: 2021-12-11 01:34:23 +0000 EC2: Turn off IPv6 DAD Disable Duplicate Address Detection in EC2 instances. The networking configuration in EC2, with IPv6 addresses assigned by DHCPv6 and host egress filtering, makes "duplicate addresses" impossible. This speeds up the boot process in EC2 by 2 seconds. Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D33091 (cherry picked from commit 81075203a057c9ba3467a7f90ea1e9469d7f7723) --- release/tools/ec2.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf index 888a446659a5..bb972c456fbc 100644 --- a/release/tools/ec2.conf +++ b/release/tools/ec2.conf @@ -68,6 +68,10 @@ vm_extra_pre_umount() { echo 'rtsold_enable="YES"' >> ${DESTDIR}/etc/rc.conf echo 'rtsold_flags="-M /usr/local/libexec/rtsold-M -a"' >> ${DESTDIR}/etc/rc.conf + # Turn off IPv6 Duplicate Address Detection; the EC2 networking + # configuration makes it unnecessary. + echo 'net.inet6.ip6.dad_count=0' >> ${DESTDIR}/etc/sysctl.conf + # Provide a script which rtsold can use to launch DHCPv6 mkdir -p ${DESTDIR}/usr/local/libexec cat > ${DESTDIR}/usr/local/libexec/rtsold-M <<'EOF'