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_NEEDS_DRIVERS="geneve" 9virt_type="geneve" 10start_id=16700000 11 12# Setting GENEVE tunnel with 'ip' command is very similar to VxLAN 13# that is why using here 'vxlan_*' library functions. 14vxlan_dst_addr="uni" 15 16TST_TESTFUNC=do_test 17TST_CLEANUP=virt_cleanup 18TST_TEST_DATA="noudpcsum udp6zerocsumtx udp6zerocsumrx, udpcsum" 19TST_TEST_DATA_IFS="," 20VIRT_PERF_THRESHOLD_MIN=160 21. virt_lib.sh 22 23do_test() 24{ 25 virt_check_cmd virt_add ltp_v0 id 1 $2 remote \ 26 $(tst_ipaddr rhost) || return 1 27 28 vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE $2" "id 0xFFFFFE $2" 29 virt_netperf_rand_sizes 30 virt_cleanup_rmt 31 32 return 0 33} 34 35tst_run 36