#!/bin/sh
p0="protocol 802.1Q"
p1="protocol 802.1ad"
lb0="loose_binding off"
lb1="loose_binding on"
rh0="reorder_hdr off"
rh1="reorder_hdr on"
virt_type="vlan"
TST_NEEDS_TMPDIR=1
TST_TEST_DATA=",$p0 $lb0 $rh1,$p1 $lb1 $rh1"
TST_TEST_DATA_IFS=","
TST_TESTFUNC=do_test
TST_SETUP=virt_lib_setup
TST_CLEANUP=virt_cleanup
do_test()
{
virt_check_cmd virt_add ltp_v0 id 0 $2 || return
tst_res TINFO "networks with the same VLAN ID must work"
virt_setup "id 4094 $2" "id 4094 $2"
virt_netperf_msg_sizes
virt_cleanup_rmt
tst_res TINFO "different VLAN ID shall not work together"
virt_setup "id 4093 $2" "id 4094 $2"
virt_minimize_timeout
virt_compare_netperf "fail"
virt_cleanup_rmt
}
. virt_lib.sh
tst_run