1*49cdfc7eSAndroid Build Coastguard Worker#!/bin/sh 2*49cdfc7eSAndroid Build Coastguard Worker# SPDX-License-Identifier: GPL-2.0-or-later 3*49cdfc7eSAndroid Build Coastguard Worker# Copyright (c) 2018 Petr Vorel <[email protected]> 4*49cdfc7eSAndroid Build Coastguard Worker# Copyright (c) 2015 Oracle and/or its affiliates. All Rights Reserved. 5*49cdfc7eSAndroid Build Coastguard Worker# Author: Alexey Kodanev <[email protected]> 6*49cdfc7eSAndroid Build Coastguard Worker# 7*49cdfc7eSAndroid Build Coastguard Worker# Local test, check if we can create multiple VLAN interfaces. 8*49cdfc7eSAndroid Build Coastguard Worker 9*49cdfc7eSAndroid Build Coastguard Workerp0="protocol 802.1Q" 10*49cdfc7eSAndroid Build Coastguard Workerp1="protocol 802.1ad" 11*49cdfc7eSAndroid Build Coastguard Workerlb0="loose_binding off" 12*49cdfc7eSAndroid Build Coastguard Workerlb1="loose_binding on" 13*49cdfc7eSAndroid Build Coastguard Workerrh0="reorder_hdr off" 14*49cdfc7eSAndroid Build Coastguard Workerrh1="reorder_hdr on" 15*49cdfc7eSAndroid Build Coastguard Worker 16*49cdfc7eSAndroid Build Coastguard Workervirt_type="vlan" 17*49cdfc7eSAndroid Build Coastguard Worker 18*49cdfc7eSAndroid Build Coastguard WorkerTST_TEST_DATA=",$p0 $lb0 $rh0,$p0 $lb0 $rh1,$p0 $lb1 $rh0,$p0 $lb1 $rh1,\ 19*49cdfc7eSAndroid Build Coastguard Worker$p1 $lb0 $rh0,$p1 $lb0 $rh1,$p1 $lb1 $rh0,$p1 $lb1 $rh1" 20*49cdfc7eSAndroid Build Coastguard WorkerTST_TEST_DATA_IFS="," 21*49cdfc7eSAndroid Build Coastguard WorkerTST_TESTFUNC=virt_test_01 22*49cdfc7eSAndroid Build Coastguard Worker 23*49cdfc7eSAndroid Build Coastguard Worker. virt_lib.sh 24*49cdfc7eSAndroid Build Coastguard Workertst_run 25