From nobody Fri Nov 26 03:10:24 2021 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 06D3418AB0C9; Fri, 26 Nov 2021 03:10:26 +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 4J0frJ4HK6z4TwK; Fri, 26 Nov 2021 03:10:24 +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 72C4E2933F; Fri, 26 Nov 2021 03:10:24 +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 1AQ3AO8q005029; Fri, 26 Nov 2021 03:10:24 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1AQ3AOXs005028; Fri, 26 Nov 2021 03:10:24 GMT (envelope-from git) Date: Fri, 26 Nov 2021 03:10:24 GMT Message-Id: <202111260310.1AQ3AOXs005028@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: 81075203a057 - main - EC2: Turn off IPv6 DAD 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: Sender: owner-dev-commits-src-main@freebsd.org X-BeenThere: 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: 81075203a057c9ba3467a7f90ea1e9469d7f7723 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1637896224; 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=yX3q5FkbWAuFlyMSW3Gcn9j+tq/ILDGD4OOINN57A3w=; b=reRIN6fqefS4SVA/kYImaF+PnHb7Sf1rcmc5iui6mAOmdupphnR/2IZn2A//Xk60oLUuF6 ow2tMJ38uLEQ7vecLn+12jBdJ+8oh96zV9kQ0MEqY12kDWagygvHf8gKbf5437hk6YRD76 i7fuFldswleQ9m0USVtY2SlsM0fXKosvZHFEBy3zVsUkFe9zvATmIRqSKQbGnoBXRC0lza LSNyFlH2OZojmMMwKeCmH6vr64C1JhQF/AoJbbYCIMPP21cCwRsWV0C5Uc0rT/+dGe5lrn Q6uYwZnENTfqDgAOKfbws1tn+k9X+PG3mmy5/47P5HREN8PfDraHBo6ayeb2BQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1637896224; a=rsa-sha256; cv=none; b=a081U4QE+q75gh24B/IvST6JmTXKMpfrtKABNP2212XINz35dab50K7uAUwEVOoRwgnP0I V96EvgSwLqiU9pGX+VkkdnK+sPyrfToIDxT87Zk/mrtrPH5/g7m1jI2YDkl87pxs3orL7b dulQdhjpGYBmy8vtRwtFR/KtoJeuC+U/7daaR7mxabCqL+UaKjZ6vr4s1ceP9K2K0sFT4P ufRlMx7Akpp8RN3xU6zo7uZDmt++iO+2ydfDGjHHNxuhi+VULGnya7o2t0S57hMl49U/P6 COMzvq/ZFwfbVioi+sIYmPzL0xZf0IlEI2wxJ63FpK1j3rt2zM9G8dKxdIOa3w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by cperciva: URL: https://cgit.FreeBSD.org/src/commit/?id=81075203a057c9ba3467a7f90ea1e9469d7f7723 commit 81075203a057c9ba3467a7f90ea1e9469d7f7723 Author: Colin Percival AuthorDate: 2021-11-23 04:16:34 +0000 Commit: Colin Percival CommitDate: 2021-11-26 03:08:48 +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. Reviewed by: kp, imp, bz MFC after: 2 weeks Sponsored by: https://www.patreon.com/cperciva Differential Revision: https://reviews.freebsd.org/D33091 --- release/tools/ec2.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/release/tools/ec2.conf b/release/tools/ec2.conf index 2bf47b01077d..f0665646088b 100644 --- a/release/tools/ec2.conf +++ b/release/tools/ec2.conf @@ -70,6 +70,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'