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 21VIRT_PERF_THRESHOLD_MIN=160 22. virt_lib.sh 23 24do_test() 25{ 26 if [ -z $ip_local -o -z $ip_remote ]; then 27 tst_brk TBROK "you must specify IP address" 28 fi 29 30 tst_res TINFO "the same VNI must work" 31 # VNI is 24 bits long, so max value, which is not reserved, is 0xFFFFFE 32 vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE" "id 0xFFFFFE" 33 virt_netperf_msg_sizes 34 virt_cleanup_rmt 35 36 tst_res TINFO "different VNI shall not work together" 37 vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE" "id 0xFFFFFD" 38 virt_minimize_timeout 39 virt_compare_netperf "fail" 40} 41 42tst_run 43