1#!/bin/sh 2# SPDX-License-Identifier: GPL-2.0-or-later 3# Copyright (c) 2018 Petr Vorel <[email protected]> 4# Copyright (c) 2016-2017 Oracle and/or its affiliates. 5# Author: Alexey Kodanev <[email protected]> 6 7TST_NEEDS_TMPDIR=1 8TST_OPTS="hi:d:" 9TST_PARSE_ARGS=virt_lib_parse_args 10TST_NEEDS_DRIVERS="geneve" 11TST_TESTFUNC=do_test 12TST_CLEANUP=virt_cleanup 13VIRT_PERF_THRESHOLD_MIN=160 14 15virt_type="geneve" 16start_id=16700000 17 18# Setting GENEVE tunnel with 'ip' command is very similar to VxLAN 19# that is why using here 'vxlan_*' library functions. 20vxlan_dst_addr="uni" 21 22do_test() 23{ 24 tst_res TINFO "the same VNI must work" 25 # VNI is 24 bits long, so max value, which is not reserved, is 0xFFFFFE 26 vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE" "id 0xFFFFFE" 27 virt_netperf_msg_sizes 28 virt_cleanup_rmt 29 30 tst_res TINFO "different VNI shall not work together" 31 vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE" "id 0xFFFFFD" 32 virt_minimize_timeout 33 virt_compare_netperf "fail" 34} 35 36. virt_lib.sh 37tst_run 38