From 31566b98b8593f2fc51e4e86d764fae4accdff1a Mon Sep 17 00:00:00 2001 From: Kristof Provost Date: Tue, 15 Feb 2022 07:52:45 +0100 Subject: [PATCH] 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 \