git: 31566b98b859 - main - vlan tests: fix bpf_pcp test

From: Kristof Provost <kp_at_FreeBSD.org>
Date: Tue, 15 Feb 2022 07:53:54 UTC
The branch main has been updated by kp:

URL: https://cgit.FreeBSD.org/src/commit/?id=31566b98b8593f2fc51e4e86d764fae4accdff1a

commit 31566b98b8593f2fc51e4e86d764fae4accdff1a
Author:     Kristof Provost <kp@FreeBSD.org>
AuthorDate: 2022-02-15 06:52:45 +0000
Commit:     Kristof Provost <kp@FreeBSD.org>
CommitDate: 2022-02-15 06:53:30 +0000

    vlan tests: fix bpf_pcp test
    
    We now allow net.link.vlan.mtag_pcp to be set per-vnet, so we must set
    it in the correct vnet, not on the host.
---
 tests/sys/net/if_vlan.sh | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/tests/sys/net/if_vlan.sh b/tests/sys/net/if_vlan.sh
index 517206cb55c7..be1ec788c11d 100755
--- a/tests/sys/net/if_vlan.sh
+++ b/tests/sys/net/if_vlan.sh
@@ -214,7 +214,6 @@ atf_test_case "bpf_pcp" "cleanup"
 bpf_pcp_head()
 {
 	atf_set descr 'Set VLAN PCP through BPF'
-	atf_set require.config 'allow_sysctl_side_effects'
 	atf_set require.user root
 	atf_set require.progs scapy
 }
@@ -233,7 +232,7 @@ bpf_pcp_body()
 	jexec alcatraz ifconfig ${vlan} up
 	jexec alcatraz ifconfig ${epair}b up
 
-	sysctl net.link.vlan.mtag_pcp=1
+	jexec alcatraz sysctl net.link.vlan.mtag_pcp=1
 
 	jexec alcatraz dhclient ${vlan} &
 	atf_check -s exit:1 -o ignore -e ignore $(atf_get_srcdir)/pcp.py \