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