• 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	virt_check_cmd virt_add ltp_v0 id 0 $2 || return
24
25	tst_res TINFO "the same VNI must work"
26	# VNI is 24 bits long, so max value, which is not reserved, is 0xFFFFFE
27	vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE $2" "id 0xFFFFFE $2"
28	virt_netperf_rand_sizes
29	virt_cleanup_rmt
30}
31
32tst_run
33