• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/sh
2# SPDX-License-Identifier: GPL-2.0-or-later
3# Copyright (c) 2019 Oracle and/or its affiliates.
4
5TST_NEEDS_TMPDIR=1
6TST_OPTS="hi:d:"
7TST_PARSE_ARGS=virt_lib_parse_args
8TST_USAGE=virt_lib_usage
9TST_NEEDS_TMPDIR=1
10TST_TESTFUNC=do_test
11TST_CLEANUP=virt_cleanup
12TST_TEST_DATA="noudpcsum udp6zerocsumtx udp6zerocsumrx, udpcsum"
13TST_TEST_DATA_IFS=","
14
15virt_type="vxlan"
16start_id=16700000
17vxlan_dst_addr="uni"
18VIRT_PERF_THRESHOLD_MIN=160
19. virt_lib.sh
20
21do_test()
22{
23	if [ -z $ip_local -o -z $ip_remote ]; then
24		tst_brk TBROK "you must specify IP address"
25	fi
26
27	virt_check_cmd virt_add ltp_v0 id 0 $2 || continue
28
29	tst_res TINFO "the same VNI must work"
30	# VNI is 24 bits long, so max value, which is not reserved, is 0xFFFFFE
31	vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE $2" "id 0xFFFFFE $2"
32	virt_netperf_rand_sizes
33	virt_cleanup_rmt
34}
35
36tst_run
37