• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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	tst_res TINFO "the same VNI must work"
27	# VNI is 24 bits long, so max value, which is not reserved, is 0xFFFFFE
28	vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE" "id 0xFFFFFE"
29	virt_netperf_msg_sizes
30	virt_cleanup_rmt
31
32	tst_res TINFO "different VNI shall not work together"
33	vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE" "id 0xFFFFFD"
34	virt_minimize_timeout
35	virt_compare_netperf "fail"
36}
37
38tst_run
39