geneve02.sh 792 B

1234567891011121314151617181920212223242526272829303132333435
  1. #!/bin/sh
  2. # SPDX-License-Identifier: GPL-2.0-or-later
  3. # Copyright (c) 2019 Oracle and/or its affiliates.
  4. TST_NEEDS_TMPDIR=1
  5. TST_OPTS="hi:d:"
  6. TST_PARSE_ARGS=virt_lib_parse_args
  7. TST_NEEDS_DRIVERS="geneve"
  8. virt_type="geneve"
  9. start_id=16700000
  10. # Setting GENEVE tunnel with 'ip' command is very similar to VxLAN
  11. # that is why using here 'vxlan_*' library functions.
  12. vxlan_dst_addr="uni"
  13. TST_TESTFUNC=do_test
  14. TST_CLEANUP=virt_cleanup
  15. TST_TEST_DATA="noudpcsum udp6zerocsumtx udp6zerocsumrx, udpcsum"
  16. TST_TEST_DATA_IFS=","
  17. VIRT_PERF_THRESHOLD_MIN=160
  18. . virt_lib.sh
  19. do_test()
  20. {
  21. virt_check_cmd virt_add ltp_v0 id 1 $2 remote \
  22. $(tst_ipaddr rhost) || return 1
  23. vxlan_setup_subnet_$vxlan_dst_addr "id 0xFFFFFE $2" "id 0xFFFFFE $2"
  24. virt_netperf_rand_sizes
  25. virt_cleanup_rmt
  26. return 0
  27. }
  28. tst_run