From nobody Thu Jul 21 16:36:49 2022 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 4LpdWP6TCJz4X1pg; Thu, 21 Jul 2022 16:36:49 +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 4LpdWP594Mz4Nkc; Thu, 21 Jul 2022 16:36:49 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658421409; 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=jLldEYFczYPGjpsD/53/HitOn/aZiQs0hX6Ait+t3JM=; b=pBI7dA0mrPN/y2CylXQi+fRHDdP2Te4sIUFofwflHQgslciJ6ToghtuInRGYuGVvkMj71E 8qsRsumkBovA8nPpLxHaWvqffulMX6kKxZ57XyAxQM8JZV7k7ZaAiMC5VV6YQnQZ0XGocq lguy861Xa6gts/Nv+oddruxv9F5n5MUyGnqW942FxsEF9sXc2/KOmjWdS1YYQrEChr8QXR nv32Edhn5ji/eIG70PTclpxsKVnabDhpy/Cz0M9ddUO7ZqQGKMdoiGI0p+JUdztbAnJQao fDQwnayPBoDyFEh5+3sNttcdGpm3RIoVLbqPJ2yCP75g5FzTP9lSGHFxk1a+pQ== 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 4LpdWP45VszSk1; Thu, 21 Jul 2022 16:36:49 +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 26LGanDO034450; Thu, 21 Jul 2022 16:36:49 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26LGanx3034449; Thu, 21 Jul 2022 16:36:49 GMT (envelope-from git) Date: Thu, 21 Jul 2022 16:36:49 GMT Message-Id: <202207211636.26LGanx3034449@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Kristof Provost Subject: git: cfee1417fbc2 - main - if_vlan tests: Test changing vlan ID 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: kp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: cfee1417fbc2455da144b32ba0e03e626c540859 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658421409; 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=jLldEYFczYPGjpsD/53/HitOn/aZiQs0hX6Ait+t3JM=; b=ceroyeAKEdiSqHNrPf80SEnRll7hRMkPNylyiFLXB/gRvKGeFIm5iWIzKRwV63DlTPD8Ji Wk4rehGJ0uoYw2Hb6j10OTLMALnf5L6ijM2SXiXAsJviMjqd0bhakgzJ4Z0Lz135aRRBhX TiOyeQ3N5qAi7o1P4wg5wAbPmXyIqzCMCIP0LC6HzCv9LVrsIAgrwnU1Yj4SL4NVpSDo6c G7X3q1EUaGTC9KxJrloX82mHXmnvm61SPKt09OmAmnVn3qa9Y4cBJDzfRf7SFCAP8G3K5X VpvoH8MmoqGwJMrEy87mgDfV92QojxMUsK8JQrdFOd4JNClJtzjvmrLyOVckYw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658421409; a=rsa-sha256; cv=none; b=OOt2Xihme0rQbdf2trtUyvc81GAY5+NIOLdb1E3PXKAQgU8athHgXpKRKiINfhbhn3p48z VIMtsGPGQW880Ojm5g7L+x24GTgqMpZa+JAP3HmRHznWBwzM1Bt7GAn56EaA5nX+LBxpIj M9qscg7QjXypysUOsXILkkbOxS5idofxMpjSiPTebGx/453OrBN8KOb/a4u1mYl3DxNc8+ Sh5kjeSjJ0NO2ewdLCgAgFG6LuWqjot4EHEkJtlRVpOdlg/x17KlDYp4zVkp8lN9PYK7aU sFQYk1boXN1x/kwEA5bVXSjhhQK3LFD5k2d8hi4g8apVIVTsdCWAMjYfdw/i8g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by kp: URL: https://cgit.FreeBSD.org/src/commit/?id=cfee1417fbc2455da144b32ba0e03e626c540859 commit cfee1417fbc2455da144b32ba0e03e626c540859 Author: Kristof Provost AuthorDate: 2022-07-18 22:49:30 +0000 Commit: Kristof Provost CommitDate: 2022-07-21 16:36:01 +0000 if_vlan tests: Test changing vlan ID We can now change the vlan ID of an if_vlan interface without disassociating it from the parent interface. Test that this works. Sponsored by: Rubicon Communications, LLC ("Netgate") Differential Revision: https://reviews.freebsd.org/D35847 --- tests/sys/net/if_vlan.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/sys/net/if_vlan.sh b/tests/sys/net/if_vlan.sh index be1ec788c11d..96426254bb6d 100755 --- a/tests/sys/net/if_vlan.sh +++ b/tests/sys/net/if_vlan.sh @@ -29,6 +29,17 @@ basic_body() jexec singsing ifconfig ${vlan1} 10.0.0.2/24 up atf_check -s exit:0 -o ignore jexec singsing ping -c 1 10.0.0.1 + + # Test changing the vlan ID + atf_check -s exit:0 \ + jexec singsing ifconfig ${vlan1} vlandev ${epair_vlan}b vlan 43 + atf_check -s exit:2 -o ignore jexec singsing ping -c 1 10.0.0.1 + + # And change back + # Test changing the vlan ID + atf_check -s exit:0 \ + jexec singsing ifconfig ${vlan1} vlandev ${epair_vlan}b vlan 42 + atf_check -s exit:0 -o ignore jexec singsing ping -c 1 10.0.0.1 } basic_cleanup()