2013-07-08 08:58:40 +00:00
|
|
|
#
|
|
|
|
# \brief Test for using netperf
|
|
|
|
# \author Alexander Boettcher
|
2017-12-19 14:18:08 +00:00
|
|
|
# \author Martin Stein
|
2013-07-08 08:58:40 +00:00
|
|
|
# \date 2013-04-18
|
|
|
|
#
|
|
|
|
|
2017-12-19 14:18:08 +00:00
|
|
|
if {[expr $use_nic_bridge && $use_nic_router]} {
|
|
|
|
puts "Cannot test with both NIC bridge and NIC router.";
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2017-03-20 09:48:46 +00:00
|
|
|
if {[get_cmd_switch --autopilot] && [have_include "power_on/qemu"]} {
|
|
|
|
puts "\nRunning netperf in autopilot on Qemu is not recommended.\n"
|
2013-11-27 15:17:47 +00:00
|
|
|
exit
|
|
|
|
}
|
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
if {[have_include "power_on/qemu"] &&
|
|
|
|
[expr $use_nic_bridge || $use_nic_router || $use_usb_driver || $use_wifi_driver]} {
|
|
|
|
puts "Cannot test this configuration on qemu.";
|
|
|
|
exit 0
|
2015-05-06 14:13:04 +00:00
|
|
|
}
|
2013-07-11 09:14:57 +00:00
|
|
|
|
2019-06-27 17:42:01 +00:00
|
|
|
if {[expr [have_spec imx53] && [have_spec trustzone]]} {
|
2018-05-02 10:24:40 +00:00
|
|
|
puts "Run script is not supported on this platform."
|
2015-09-29 08:21:08 +00:00
|
|
|
exit 0
|
|
|
|
}
|
2013-07-08 08:58:40 +00:00
|
|
|
|
2017-08-25 15:28:43 +00:00
|
|
|
set bridge_mac "02:02:02:02:02:00"
|
|
|
|
|
|
|
|
# autopilot: configure disjoint mac-address ranges for x86_32, x86_64, and others
|
|
|
|
if {[get_cmd_switch --autopilot]} {
|
|
|
|
if {[have_spec x86_32]} { set bridge_mac "02:02:02:02:32:00" }
|
|
|
|
if {[have_spec x86_64]} { set bridge_mac "02:02:02:02:64:00" }
|
|
|
|
}
|
|
|
|
|
2013-07-08 08:58:40 +00:00
|
|
|
set version "2.6.0"
|
|
|
|
|
|
|
|
# sanity check that the right version is used
|
|
|
|
set wrong_version [catch {
|
|
|
|
spawn netperf-$version -V
|
|
|
|
expect {
|
|
|
|
{Netperf version 2.6.0} { }
|
|
|
|
eof { return }
|
|
|
|
timeout { return }
|
|
|
|
}
|
|
|
|
}]
|
|
|
|
|
|
|
|
if {$wrong_version} {
|
|
|
|
puts -nonewline "\nPlease compile a netperf client of version $version "
|
|
|
|
puts "for your host system."
|
2017-01-30 10:08:37 +00:00
|
|
|
puts "The sources are available in 'contrib/netperf-<hash>' (after you "
|
|
|
|
puts "prepared the port by calling 'tool/ports/prepare_port netperf')."
|
2013-07-08 08:58:40 +00:00
|
|
|
puts "Please name the binary netperf-$version\n"
|
|
|
|
exit 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
# netperf configuration
|
|
|
|
set packet_size 1024
|
|
|
|
set netperf_tests "TCP_STREAM TCP_MAERTS"
|
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
proc socket_fs_plugin {} {
|
|
|
|
global use_lxip
|
|
|
|
if { $use_lxip } { return lxip }
|
|
|
|
return lwip
|
2013-07-08 08:58:40 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
set packages "
|
|
|
|
[depot_user]/src/[base_src]
|
|
|
|
[depot_user]/pkg/[drivers_nic_pkg]
|
|
|
|
[depot_user]/src/init
|
|
|
|
[depot_user]/src/libc
|
|
|
|
[depot_user]/src/posix
|
|
|
|
[depot_user]/src/vfs
|
|
|
|
"
|
|
|
|
|
|
|
|
append_if [expr !$use_lxip] packages " [depot_user]/src/vfs_lwip "
|
|
|
|
append_if $use_lxip packages " [depot_user]/src/vfs_lxip "
|
|
|
|
append_if $use_nic_bridge packages " [depot_user]/src/nic_bridge "
|
|
|
|
append_if $use_nic_router packages " [depot_user]/src/nic_router "
|
|
|
|
append_if $use_usb_driver packages " [depot_user]/src/platform_drv "
|
|
|
|
append_if $use_usb_driver packages " [depot_user]/src/usb_drv "
|
|
|
|
append_if $use_wifi_driver packages " [depot_user]/src/fs_rom "
|
2020-04-20 12:00:57 +00:00
|
|
|
append_if $use_wifi_driver packages " [depot_user]/src/vfs_import "
|
2019-04-24 13:09:49 +00:00
|
|
|
append_if $use_wifi_driver packages " [depot_user]/src/report_rom "
|
|
|
|
append_if $use_wifi_driver packages " [depot_user]/src/wifi_drv "
|
|
|
|
append_if $use_wifi_driver packages " [depot_user]/src/libcrypto "
|
|
|
|
append_if $use_wifi_driver packages " [depot_user]/src/libssl "
|
|
|
|
append_if $use_wifi_driver packages " [depot_user]/src/vfs_jitterentropy "
|
|
|
|
append_if $use_wifi_driver packages " [depot_user]/raw/wifi_firmware "
|
|
|
|
|
|
|
|
import_from_depot $packages
|
|
|
|
|
|
|
|
build { app/netperf }
|
|
|
|
|
2013-07-08 08:58:40 +00:00
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
2013-09-18 14:24:25 +00:00
|
|
|
set lx_ip_addr "10.0.2.55"
|
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
source ${genode_dir}/repos/base/run/platform_drv.inc
|
|
|
|
proc platform_drv_policy {} {
|
|
|
|
global use_wifi_driver
|
|
|
|
if { $use_wifi_driver } {
|
|
|
|
return {<policy label_prefix="nic_drv"> <pci class="WIFI"/> </policy>}}
|
|
|
|
return {<policy label_prefix="nic_drv"> <pci class="USB"/> </policy>}
|
|
|
|
}
|
|
|
|
|
2013-07-08 08:58:40 +00:00
|
|
|
set config {
|
2018-03-28 12:14:42 +00:00
|
|
|
<config verbose="yes" prio_levels="2">
|
2013-07-08 08:58:40 +00:00
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2013-07-08 08:58:40 +00:00
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Timer"/> </provides>
|
|
|
|
</start> }
|
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
if { $use_wifi_driver } {
|
|
|
|
append_platform_drv_config
|
|
|
|
append config {
|
2015-02-20 12:39:10 +00:00
|
|
|
<start name="report_rom">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<provides> <service name="Report" /> <service name="ROM" /> </provides>
|
|
|
|
<config> <rom/> </config>
|
|
|
|
</start>
|
2019-04-24 13:09:49 +00:00
|
|
|
|
2015-02-20 12:39:10 +00:00
|
|
|
<start name="config_fs">
|
2020-04-20 12:00:57 +00:00
|
|
|
<binary name="vfs"/>
|
2015-02-20 12:39:10 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides> <service name="File_system"/> </provides>
|
|
|
|
<config>
|
2020-04-20 12:00:57 +00:00
|
|
|
<vfs>
|
|
|
|
<ram/>
|
|
|
|
<import>
|
|
|
|
<inline name="wifi_config">
|
2018-09-13 13:13:23 +00:00
|
|
|
<wifi_config connected_scan_interval="0" scan_interval="10" rfkill="no" verbose="no" verbose_state="no">}
|
2019-04-24 13:09:49 +00:00
|
|
|
append config "<network ssid=\"$wifi_ssid\" protection=\"WPA2\" passphrase=\"$wifi_psk\"/>"
|
|
|
|
append config { </wifi_config>
|
2020-04-20 12:00:57 +00:00
|
|
|
</inline>
|
|
|
|
</import>
|
|
|
|
</vfs>
|
|
|
|
<policy label_prefix="config_rom" root="/"/>
|
2015-02-20 12:39:10 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
2019-04-24 13:09:49 +00:00
|
|
|
|
2015-02-20 12:39:10 +00:00
|
|
|
<start name="config_rom">
|
|
|
|
<binary name="fs_rom"/>
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="ROM"/></provides>
|
|
|
|
<route>
|
|
|
|
<service name="File_system"> <child name="config_fs" /> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
2019-04-24 13:09:49 +00:00
|
|
|
|
|
|
|
<start name="nic_drv" caps="300">
|
|
|
|
<binary name="wifi_drv"/>
|
2018-07-31 14:02:07 +00:00
|
|
|
<resource name="RAM" quantum="24M"/>
|
2015-02-20 12:39:10 +00:00
|
|
|
<provides> <service name="Nic"/> </provides>
|
2018-07-31 14:02:07 +00:00
|
|
|
<config>
|
|
|
|
<libc stdout="/dev/null" stderr="/dev/log" rtc="/dev/rtc"/>
|
2017-01-30 10:08:37 +00:00
|
|
|
<vfs>
|
|
|
|
<dir name="dev">
|
2018-07-31 14:02:07 +00:00
|
|
|
<log/> <null/>
|
2017-01-30 10:08:37 +00:00
|
|
|
<jitterentropy name="random"/>
|
|
|
|
<jitterentropy name="urandom"/>
|
2017-12-20 11:11:11 +00:00
|
|
|
<inline name="rtc">2018-01-01 00:01</inline>
|
2017-01-30 10:08:37 +00:00
|
|
|
</dir>
|
|
|
|
</vfs>
|
2015-02-20 12:39:10 +00:00
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="Rtc"> <any-child/> </service>
|
|
|
|
<service name="File_system"> <child name="config_fs"/> </service>
|
2018-07-31 14:02:07 +00:00
|
|
|
<service name="ROM" label="wifi_config"> <child name="config_rom" /> </service>
|
2015-05-26 18:12:17 +00:00
|
|
|
<service name="Report"> <child name="report_rom"/> </service>
|
2015-02-20 12:39:10 +00:00
|
|
|
<any-service> <parent/> <any-child /> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>}
|
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
} elseif { $use_usb_driver } {
|
|
|
|
append_platform_drv_config
|
|
|
|
append config {
|
|
|
|
<start name="nic_drv" caps="120">
|
|
|
|
<binary name="usb_drv"/>
|
|
|
|
<resource name="RAM" quantum="18M"/>
|
|
|
|
<provides><service name="Nic"/></provides>
|
|
|
|
<config uhci="no" ehci="no" xhci="yes">
|
|
|
|
<nic mac="02:00:00:00:01:01" />
|
|
|
|
</config>
|
|
|
|
</start> }
|
|
|
|
} else {
|
|
|
|
append config {
|
|
|
|
<start name="nic_drv" caps="1000">
|
|
|
|
<resource name="RAM" quantum="32M" constrain_phys="yes"/>
|
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
|
|
|
<provides> <service name="Nic"/> </provides>
|
|
|
|
</start> }
|
|
|
|
}
|
|
|
|
|
|
|
|
append_if $use_nic_router config {
|
|
|
|
<start name="nic_router">
|
|
|
|
<resource name="RAM" quantum="5M"/>
|
|
|
|
<provides><service name="Nic"/></provides>
|
|
|
|
<config verbose_domain_state="yes">
|
|
|
|
|
|
|
|
<policy label_prefix="netserver_genode" domain="server"/>
|
|
|
|
<uplink domain="uplink"/>
|
|
|
|
|
|
|
|
<domain name="uplink"}
|
|
|
|
append_if [expr $use_nic_router && [have_spec linux]] config "
|
|
|
|
interface=\"$lx_ip_addr/24\" gateway=\"10.0.2.1\""
|
|
|
|
append_if $use_nic_router config {
|
|
|
|
>
|
|
|
|
<nat domain="server" tcp-ports="100" />
|
|
|
|
<tcp-forward port="12864" domain="server" to="10.0.3.2" />
|
|
|
|
<tcp-forward port="12865" domain="server" to="10.0.3.2" />
|
|
|
|
</domain>
|
|
|
|
|
|
|
|
<domain name="server" interface="10.0.3.1/24">
|
|
|
|
<dhcp-server ip_first="10.0.3.2"
|
|
|
|
ip_last="10.0.3.2"
|
|
|
|
ip_lease_time_sec="600"/>
|
|
|
|
</domain>
|
|
|
|
|
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="Nic"> <child name="nic_drv"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
}
|
|
|
|
|
|
|
|
append_if $use_nic_bridge config {
|
|
|
|
<start name="nic_bridge">
|
|
|
|
<resource name="RAM" quantum="5M"/>
|
|
|
|
<provides><service name="Nic"/></provides>
|
|
|
|
<config mac="} $bridge_mac {">}
|
|
|
|
append_if [expr $use_nic_bridge && [have_spec linux]] config "
|
|
|
|
<policy label_prefix=\"netserver_genode\" ip_addr=\"$lx_ip_addr\"/>"
|
|
|
|
append_if $use_nic_bridge config {
|
|
|
|
<default-policy/>
|
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="Nic"> <child name="nic_drv"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start> }
|
2013-07-08 08:58:40 +00:00
|
|
|
|
|
|
|
append config {
|
2019-02-11 10:00:52 +00:00
|
|
|
<start name="netserver_genode" caps="320" priority="-1">
|
2016-09-18 17:46:54 +00:00
|
|
|
<binary name="netserver"/>
|
2013-11-22 11:39:44 +00:00
|
|
|
<resource name="RAM" quantum="32M"/>
|
2013-07-08 08:58:40 +00:00
|
|
|
<config>
|
|
|
|
<arg value="netserver"/>
|
|
|
|
<arg value="-D"/>
|
|
|
|
<arg value="-4"/>
|
2013-09-23 13:58:45 +00:00
|
|
|
<arg value="-f"/>
|
2016-09-18 17:46:54 +00:00
|
|
|
<libc stdout="/dev/log" stderr="/dev/log" rtc="/dev/rtc" socket="/socket"/>
|
2017-12-20 11:11:11 +00:00
|
|
|
<vfs>
|
|
|
|
<dir name="dev">
|
|
|
|
<log/> <inline name="rtc">2018-01-01 00:01</inline>
|
|
|
|
</dir>
|
2016-09-18 17:46:54 +00:00
|
|
|
<dir name="socket">
|
|
|
|
<} [socket_fs_plugin] { }
|
|
|
|
if {[expr [have_spec linux] && !$use_nic_router]} {
|
|
|
|
append config " ip_addr=\"$lx_ip_addr\" netmask=\"255.255.255.0\" gateway=\"10.0.2.1\""
|
|
|
|
} else {
|
|
|
|
append config " dhcp=\"yes\""
|
|
|
|
}
|
|
|
|
append config {/>
|
|
|
|
</dir>
|
2017-12-20 11:11:11 +00:00
|
|
|
</vfs>
|
2013-07-08 08:58:40 +00:00
|
|
|
</config>}
|
|
|
|
append_if $use_nic_bridge config {
|
|
|
|
<route>
|
|
|
|
<service name="Nic"> <child name="nic_bridge"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>}
|
2017-12-19 14:18:08 +00:00
|
|
|
append_if $use_nic_router config {
|
|
|
|
<route>
|
|
|
|
<service name="Nic"> <child name="nic_router"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>}
|
2013-07-08 08:58:40 +00:00
|
|
|
append config {
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
build_boot_image { netserver }
|
2013-07-08 08:58:40 +00:00
|
|
|
|
|
|
|
#
|
|
|
|
# Execute test case
|
|
|
|
#
|
|
|
|
|
|
|
|
# qemu config
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args " -nographic "
|
2013-07-08 08:58:40 +00:00
|
|
|
|
2019-02-11 14:34:30 +00:00
|
|
|
proc qemu_nic_model {} {
|
|
|
|
if [have_spec x86] { return e1000 }
|
|
|
|
if [have_spec lan9118] { return lan9118 }
|
|
|
|
return nic_model_missing
|
|
|
|
}
|
2013-07-08 08:58:40 +00:00
|
|
|
|
2019-02-11 14:34:30 +00:00
|
|
|
append qemu_args " -netdev user,id=net0,hostfwd=tcp::12865-:12865,hostfwd=tcp::49153-:49153 "
|
|
|
|
append qemu_args " -net nic,model=[qemu_nic_model],netdev=net0 "
|
2013-07-08 08:58:40 +00:00
|
|
|
|
2019-04-24 13:09:49 +00:00
|
|
|
set ip_match_string ""
|
2017-12-19 14:18:08 +00:00
|
|
|
set force_ports ""
|
2019-04-24 13:09:49 +00:00
|
|
|
if $use_lxip {
|
|
|
|
set ip_match_string "ipaddr=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
|
|
|
|
} else {
|
|
|
|
set ip_match_string "address=(\[0-9\]+\.\[0-9\]+\.\[0-9\]+\.\[0-9\]+).*\n"
|
|
|
|
}
|
2017-12-19 14:18:08 +00:00
|
|
|
if $use_nic_router {
|
2018-07-02 10:24:20 +00:00
|
|
|
set ip_match_string "nic_router\\\] \\\[uplink\\\] dynamic IP config: interface (\[0-9]{1,3}.\[0-9]{1,3}.\[0-9]{1,3}.\[0-9]{1,3}).*\n"
|
2017-12-19 14:18:08 +00:00
|
|
|
set force_ports "-P 12864,12864"
|
|
|
|
}
|
|
|
|
|
2015-03-16 10:18:36 +00:00
|
|
|
if {[have_spec linux]} {
|
|
|
|
run_genode_until {.*family AF_INET.*\n} 60
|
|
|
|
} else {
|
|
|
|
run_genode_until $ip_match_string 60
|
|
|
|
}
|
|
|
|
|
2015-01-08 21:09:08 +00:00
|
|
|
set serial_id [output_spawn_id]
|
2013-07-08 08:58:40 +00:00
|
|
|
|
2015-01-08 21:09:08 +00:00
|
|
|
if {[have_include "power_on/qemu"]} {
|
2013-07-08 08:58:40 +00:00
|
|
|
set ip_addr "localhost"
|
|
|
|
set force_ports "-P 49153,49153"
|
2013-09-06 12:49:50 +00:00
|
|
|
} elseif [have_spec linux] {
|
|
|
|
set ip_addr $lx_ip_addr
|
2013-07-08 08:58:40 +00:00
|
|
|
} else {
|
2013-11-22 11:39:44 +00:00
|
|
|
regexp $ip_match_string $output all ip_addr
|
2013-07-08 08:58:40 +00:00
|
|
|
puts ""
|
|
|
|
}
|
|
|
|
|
2015-03-16 10:18:36 +00:00
|
|
|
# give the TCP/IP stack some time to settle down
|
|
|
|
sleep 3
|
|
|
|
|
2013-07-08 08:58:40 +00:00
|
|
|
# start netperf client connecting to netperf server running native on Genode
|
|
|
|
foreach netperf_test $netperf_tests {
|
|
|
|
puts "\n---------------------------- $netperf_test -----------------------"
|
|
|
|
|
2018-01-12 10:39:18 +00:00
|
|
|
spawn netperf-$version -4 -H $ip_addr -P 1 -v 2 -t $netperf_test -c -C -- $packet_size $force_ports
|
2013-07-08 08:58:40 +00:00
|
|
|
set netperf_id $spawn_id
|
|
|
|
|
2014-06-16 08:13:10 +00:00
|
|
|
set spawn_id_list [list $netperf_id $serial_id]
|
|
|
|
|
2015-06-04 14:17:43 +00:00
|
|
|
# reset output, so that we get on the second run not the result of the first
|
|
|
|
set output ""
|
2019-02-12 14:48:56 +00:00
|
|
|
run_genode_until "Segment" 120 $spawn_id_list
|
2013-07-08 08:58:40 +00:00
|
|
|
|
|
|
|
# get throughput from netperf output
|
|
|
|
set throughput [regexp -all -inline {([0-9]+[ ]+){3}[0-9]+\.[0-9]+[ ]+[0-9]+\.[0-9]+} $output]
|
|
|
|
set throughput [regexp -all -inline {[0-9]+\.[0-9]+} $throughput]
|
|
|
|
|
|
|
|
# calculate packets per second rate
|
|
|
|
set all_bytes [regexp -all -inline {([0-9]+[ ]+){5}} $output]
|
|
|
|
set all_bytes [lindex $all_bytes 0 4]
|
|
|
|
|
|
|
|
set elapsed_time [regexp -all -inline {([0-9]+[ ]+){3}[0-9]+\.[0-9]+[ ]+} $output]
|
|
|
|
set elapsed_time [lindex $elapsed_time 0 3]
|
|
|
|
set packets_second [expr $all_bytes / $packet_size / $elapsed_time]
|
|
|
|
|
|
|
|
puts "\ncalculation: overall bytes / size per packet / time = packets per second"
|
|
|
|
puts -nonewline " $all_bytes Bytes / $packet_size Bytes / $elapsed_time s = "
|
|
|
|
puts "[format %8.0f $packets_second] packets/s\n"
|
|
|
|
|
|
|
|
# format output parseable for post proccessing scripts
|
2013-11-22 08:21:21 +00:00
|
|
|
puts -nonewline "! PERF: $netperf_test"
|
|
|
|
if {$use_nic_bridge} { puts -nonewline "_bridge" }
|
2017-12-19 14:18:08 +00:00
|
|
|
if {$use_nic_router} { puts -nonewline "_router" }
|
2019-04-24 13:09:49 +00:00
|
|
|
if {$use_usb_driver} { puts -nonewline "_xhci" }
|
2013-11-22 08:21:21 +00:00
|
|
|
puts " [lindex $throughput 1] MBit/s ok"
|
2013-07-08 08:58:40 +00:00
|
|
|
}
|